forked from extern/egroupware
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")
|
// if ($account_type == "g")
|
||||||
{
|
// {
|
||||||
$tmpentry["objectclass"][0] = 'top';
|
// $tmpentry["objectclass"][0] = 'top';
|
||||||
$tmpentry["objectclass"][1] = 'posixGroup';
|
// $tmpentry["objectclass"][1] = 'posixGroup';
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
|
if ($account_type == "u")
|
||||||
{
|
{
|
||||||
$tmpentry["objectclass"][0] = 'top';
|
$tmpentry["objectclass"][0] = 'top';
|
||||||
$tmpentry["objectclass"][1] = 'person';
|
$tmpentry["objectclass"][1] = 'person';
|
||||||
@ -440,15 +441,15 @@
|
|||||||
|
|
||||||
ldap_modify($ds, $allValues[0]["dn"], $tmpentry);
|
ldap_modify($ds, $allValues[0]["dn"], $tmpentry);
|
||||||
} else {
|
} else {
|
||||||
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
// if ($account_type == "g")
|
||||||
|
// {
|
||||||
if ($account_type == "g")
|
// $entry["objectclass"][0] = 'top';
|
||||||
{
|
// $entry["objectclass"][1] = 'posixGroup';
|
||||||
$entry["objectclass"][0] = 'top';
|
// }
|
||||||
$entry["objectclass"][1] = 'posixGroup';
|
// else
|
||||||
}
|
if ($account_type == "u")
|
||||||
else
|
|
||||||
{
|
{
|
||||||
|
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
||||||
$entry["objectclass"][0] = 'top';
|
$entry["objectclass"][0] = 'top';
|
||||||
$entry["objectclass"][1] = 'person';
|
$entry["objectclass"][1] = 'person';
|
||||||
$entry["objectclass"][2] = 'organizationalPerson';
|
$entry["objectclass"][2] = 'organizationalPerson';
|
||||||
@ -456,9 +457,10 @@
|
|||||||
$entry["objectclass"][4] = 'account';
|
$entry["objectclass"][4] = 'account';
|
||||||
$entry["objectclass"][5] = 'posixAccount';
|
$entry["objectclass"][5] = 'posixAccount';
|
||||||
$entry["objectclass"][6] = 'shadowAccount';
|
$entry["objectclass"][6] = 'shadowAccount';
|
||||||
}
|
|
||||||
|
|
||||||
ldap_add($ds, $dn, $entry);
|
ldap_add($ds, $dn, $entry);
|
||||||
|
}
|
||||||
|
//ldap_add($ds, $dn, $entry);
|
||||||
}
|
}
|
||||||
//print ldap_error($ds);
|
//print ldap_error($ds);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user