Create configured default relationships from all drivers as well as for internal auth (closes: #75)

previously, this was only usable with the LDAP driver
This commit is contained in:
Florian Schlichting 2017-01-06 14:59:04 +01:00
parent 2c0c65d08a
commit 4d689f8539
6 changed files with 6 additions and 0 deletions

View File

@ -361,6 +361,7 @@ EOERRMSG;
else {
$principal->Create($usr);
CreateHomeCollections($username);
CreateDefaultRelationships($username);
}
/**

View File

@ -108,6 +108,7 @@ function IMAP_PAM_check($username, $password ){
return false;
}
CreateHomeCollections($username);
CreateDefaultRelationships($username);
}
return $principal;
}

View File

@ -80,6 +80,7 @@ function PWAUTH_PAM_check($username, $password) {
return false;
}
CreateHomeCollections($username);
CreateDefaultRelationships($username);
}
return $principal;
break;

View File

@ -100,6 +100,7 @@ function RIMAP_check($username, $password ){
return false;
}
CreateHomeCollections($username);
CreateDefaultRelationships($username);
}
return $principal;
}

View File

@ -71,6 +71,7 @@ function SQUID_PAM_check($username, $password ){
return false;
}
CreateHomeCollections($username);
CreateDefaultRelationships($username);
}
return $principal;
}

View File

@ -238,6 +238,7 @@ function principal_editor() {
/** We only add the default calendar if it isn't a group, and this is a create action */
require_once('auth-functions.php');
CreateHomeCollections($editor->Value('username'));
CreateDefaultRelationships($editor->Value('username'));
}
if ( $session->AllowedTo('Admin') ) {
if ( $_POST['is_admin'] == 'on' ) {