allow to create Kolab entries without Unix part

This commit is contained in:
Roland Gruber 2008-12-30 16:41:39 +00:00
parent 23e78e73a9
commit bf96653dc0
2 changed files with 5 additions and 3 deletions

View File

@ -3,8 +3,10 @@ January 2009 2.5.0
-> supports rfc2307bis schema for Unix groups (RFE 2111694)
-> added alias manangement (object classes alias + uidObject) (RFE 1912779)
- Shadow: module is now optional when creating new accounts
- Kolab: account extension is now optional
- Kolab: Self service uses no extra LDAP suffix but uses global setting
- Kolab:
-> account extension is now optional
-> can be used without Unix module
-> self service uses no extra LDAP suffix but uses global setting
- DHCP: added PDF support and minor fixes
- Samba 3:
-> self service sets attribute "sambaPwdLastSet" on password change (LAM Pro)

View File

@ -591,10 +591,10 @@ class kolabUser extends baseModule {
function module_complete() {
if (isset($this->attributes['objectClass']) && in_array('kolabInetOrgPerson', $this->attributes['objectClass'])) {
$attrsI = $this->getAccountContainer()->getAccountModule('inetOrgPerson')->getAttributes();
$attrsP = $this->getAccountContainer()->getAccountModule('posixAccount')->getAttributes();
if (!$attrsI['mail'][0]) return false;
if ($this->getAccountContainer()->isNewAccount) {
if ($this->getAccountContainer()->getAccountModule('posixAccount') != null) {
$attrsP = $this->getAccountContainer()->getAccountModule('posixAccount')->getAttributes();
if (!$attrsP['userPassword'][0]) return false;
}
elseif ($this->getAccountContainer()->getAccountModule('inetOrgPerson') != null) {