mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-26 02:44:29 +00:00
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:
parent
2c0c65d08a
commit
4d689f8539
@ -361,6 +361,7 @@ EOERRMSG;
|
||||
else {
|
||||
$principal->Create($usr);
|
||||
CreateHomeCollections($username);
|
||||
CreateDefaultRelationships($username);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -108,6 +108,7 @@ function IMAP_PAM_check($username, $password ){
|
||||
return false;
|
||||
}
|
||||
CreateHomeCollections($username);
|
||||
CreateDefaultRelationships($username);
|
||||
}
|
||||
return $principal;
|
||||
}
|
||||
|
||||
@ -80,6 +80,7 @@ function PWAUTH_PAM_check($username, $password) {
|
||||
return false;
|
||||
}
|
||||
CreateHomeCollections($username);
|
||||
CreateDefaultRelationships($username);
|
||||
}
|
||||
return $principal;
|
||||
break;
|
||||
|
||||
@ -100,6 +100,7 @@ function RIMAP_check($username, $password ){
|
||||
return false;
|
||||
}
|
||||
CreateHomeCollections($username);
|
||||
CreateDefaultRelationships($username);
|
||||
}
|
||||
return $principal;
|
||||
}
|
||||
|
||||
@ -71,6 +71,7 @@ function SQUID_PAM_check($username, $password ){
|
||||
return false;
|
||||
}
|
||||
CreateHomeCollections($username);
|
||||
CreateDefaultRelationships($username);
|
||||
}
|
||||
return $principal;
|
||||
}
|
||||
|
||||
@ -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' ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user