I hope i did not break too much. ldap-support should now be mostly

complette. Some things are still to do.
This commit is contained in:
Lars Kneschke 2000-11-11 15:30:37 +00:00
parent 0e967d2b64
commit 7a855bfd7e
2 changed files with 20 additions and 10 deletions

View File

@ -273,8 +273,18 @@
{
global $phpgw_info, $phpgw, $ldap;
#ldap_delete($ldap,"appl=email, ou=phpgwpreferences,".$account_id);
#ldap_delete($ldap,"ou=phpgwpreferences,".$account_id);
//delete sub dn's
$sri = ldap_search($ldap, $phpgw_info["server"]["ldap_context"], "objectclass=phpgw_*");
$allValues = ldap_get_entries($ldap, $sri);
for ($i=0; $i < $allValues["count"]; $i++)
{
#print "<br> delete".$allValues[$i]["dn"];
ldap_delete($ldap,$allValues[$i]["dn"]);
#print ldap_error($ldap);
}
ldap_delete($ldap,$account_id);
}

View File

@ -155,24 +155,24 @@
<?php
} else {
$phpgw->common->preferences_delete("byappnotheme",$phpgw_info["user"]["account_id"],"common");
$phpgw->preferences->preferences_delete("byappnotheme",$phpgw_info["user"]["account_id"],"common");
$phpgw->db->lock("preferences");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"lang","common");
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"default_app","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"lang","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"default_app","common");
if ($navbar_text) {
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common");
}
if ($phpgw_info["user"]["apps"]["admin"]) {
if ($show_currentusers) {
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");
}
}