mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Take out group objectclassing since we are not yet storing groups in ldap
This commit is contained in:
parent
d0fe382982
commit
4d93655896
@ -422,12 +422,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ($account_type == "g")
|
||||
{
|
||||
$tmpentry["objectclass"][0] = 'top';
|
||||
$tmpentry["objectclass"][1] = 'posixGroup';
|
||||
}
|
||||
else
|
||||
// if ($account_type == "g")
|
||||
// {
|
||||
// $tmpentry["objectclass"][0] = 'top';
|
||||
// $tmpentry["objectclass"][1] = 'posixGroup';
|
||||
// }
|
||||
// else
|
||||
if ($account_type == "u")
|
||||
{
|
||||
$tmpentry["objectclass"][0] = 'top';
|
||||
$tmpentry["objectclass"][1] = 'person';
|
||||
@ -440,15 +441,15 @@
|
||||
|
||||
ldap_modify($ds, $allValues[0]["dn"], $tmpentry);
|
||||
} else {
|
||||
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
||||
|
||||
if ($account_type == "g")
|
||||
{
|
||||
$entry["objectclass"][0] = 'top';
|
||||
$entry["objectclass"][1] = 'posixGroup';
|
||||
}
|
||||
else
|
||||
// if ($account_type == "g")
|
||||
// {
|
||||
// $entry["objectclass"][0] = 'top';
|
||||
// $entry["objectclass"][1] = 'posixGroup';
|
||||
// }
|
||||
// else
|
||||
if ($account_type == "u")
|
||||
{
|
||||
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
||||
$entry["objectclass"][0] = 'top';
|
||||
$entry["objectclass"][1] = 'person';
|
||||
$entry["objectclass"][2] = 'organizationalPerson';
|
||||
@ -456,9 +457,10 @@
|
||||
$entry["objectclass"][4] = 'account';
|
||||
$entry["objectclass"][5] = 'posixAccount';
|
||||
$entry["objectclass"][6] = 'shadowAccount';
|
||||
}
|
||||
|
||||
ldap_add($ds, $dn, $entry);
|
||||
ldap_add($ds, $dn, $entry);
|
||||
}
|
||||
//ldap_add($ds, $dn, $entry);
|
||||
}
|
||||
//print ldap_error($ds);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user