Take out group objectclassing since we are not yet storing groups in ldap

This commit is contained in:
Miles Lott 2001-04-15 21:40:26 +00:00
parent d0fe382982
commit 4d93655896

View File

@ -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 {
// 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"];
if ($account_type == "g")
{
$entry["objectclass"][0] = 'top';
$entry["objectclass"][1] = 'posixGroup';
}
else
{
$entry["objectclass"][0] = 'top';
$entry["objectclass"][1] = 'person';
$entry["objectclass"][2] = 'organizationalPerson';
@ -456,10 +457,11 @@
$entry["objectclass"][4] = 'account';
$entry["objectclass"][5] = 'posixAccount';
$entry["objectclass"][6] = 'shadowAccount';
}
ldap_add($ds, $dn, $entry);
}
//ldap_add($ds, $dn, $entry);
}
//print ldap_error($ds);
}