fixed problem with new groups.

Additional groupmembers did not work
for new groups.
This commit is contained in:
katagia 2003-12-15 08:48:25 +00:00
parent 8f1741dc1e
commit 480cfccf88
1 changed files with 1 additions and 1 deletions

View File

@ -2661,7 +2661,7 @@ function creategroup($values, $uselamdaemon=true) {
if ($values->smb_displayName) $attr['displayName'] = utf8_encode($values->smb_displayName);
}
// Write additional group members
if (is_array($values->unix_memberUid)) $attr['memberUid'][] = $values->unix_memberUid;
if (is_array($values->unix_memberUid)) $attr['memberUid'] = $values->unix_memberUid;
// Create LDAP group account
$success = ldap_add($_SESSION['ldap']->server(),$values->general_dn, $attr);
// Continue if now error did ocour