allow to create Kolab entries without Unix part
This commit is contained in:
parent
23e78e73a9
commit
bf96653dc0
|
@ -3,8 +3,10 @@ January 2009 2.5.0
|
||||||
-> supports rfc2307bis schema for Unix groups (RFE 2111694)
|
-> supports rfc2307bis schema for Unix groups (RFE 2111694)
|
||||||
-> added alias manangement (object classes alias + uidObject) (RFE 1912779)
|
-> added alias manangement (object classes alias + uidObject) (RFE 1912779)
|
||||||
- Shadow: module is now optional when creating new accounts
|
- Shadow: module is now optional when creating new accounts
|
||||||
- Kolab: account extension is now optional
|
- Kolab:
|
||||||
- Kolab: Self service uses no extra LDAP suffix but uses global setting
|
-> 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
|
- DHCP: added PDF support and minor fixes
|
||||||
- Samba 3:
|
- Samba 3:
|
||||||
-> self service sets attribute "sambaPwdLastSet" on password change (LAM Pro)
|
-> self service sets attribute "sambaPwdLastSet" on password change (LAM Pro)
|
||||||
|
|
|
@ -591,10 +591,10 @@ class kolabUser extends baseModule {
|
||||||
function module_complete() {
|
function module_complete() {
|
||||||
if (isset($this->attributes['objectClass']) && in_array('kolabInetOrgPerson', $this->attributes['objectClass'])) {
|
if (isset($this->attributes['objectClass']) && in_array('kolabInetOrgPerson', $this->attributes['objectClass'])) {
|
||||||
$attrsI = $this->getAccountContainer()->getAccountModule('inetOrgPerson')->getAttributes();
|
$attrsI = $this->getAccountContainer()->getAccountModule('inetOrgPerson')->getAttributes();
|
||||||
$attrsP = $this->getAccountContainer()->getAccountModule('posixAccount')->getAttributes();
|
|
||||||
if (!$attrsI['mail'][0]) return false;
|
if (!$attrsI['mail'][0]) return false;
|
||||||
if ($this->getAccountContainer()->isNewAccount) {
|
if ($this->getAccountContainer()->isNewAccount) {
|
||||||
if ($this->getAccountContainer()->getAccountModule('posixAccount') != null) {
|
if ($this->getAccountContainer()->getAccountModule('posixAccount') != null) {
|
||||||
|
$attrsP = $this->getAccountContainer()->getAccountModule('posixAccount')->getAttributes();
|
||||||
if (!$attrsP['userPassword'][0]) return false;
|
if (!$attrsP['userPassword'][0]) return false;
|
||||||
}
|
}
|
||||||
elseif ($this->getAccountContainer()->getAccountModule('inetOrgPerson') != null) {
|
elseif ($this->getAccountContainer()->getAccountModule('inetOrgPerson') != null) {
|
||||||
|
|
Loading…
Reference in New Issue