summaryrefslogtreecommitdiff
path: root/www/admin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org>2011-04-19 16:11:48 (GMT)
committerJeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org>2011-04-19 16:12:39 (GMT)
commit7c0aaddd7cde72b7b17e8a1762d78d6f230924bd (patch)
treec0c87143d57827f5eba9e125754964029e705de2 /www/admin
parentfdc0e32a6a66a721b36fbb9f8502db7ba5708e5d (diff)
downloadkolab-webadmin-7c0aaddd7cde72b7b17e8a1762d78d6f230924bd.tar.gz
Check in server.git changes to cn->uid naming attribute
Diffstat (limited to 'www/admin')
-rw-r--r--www/admin/user/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/admin/user/user.php b/www/admin/user/user.php
index 7c00de3..7ba9d27 100644
--- a/www/admin/user/user.php
+++ b/www/admin/user/user.php
@@ -662,7 +662,7 @@ switch( $action ) {
if ($action == "save") {
if (!$errors) {
- if (!empty($ldap_object['cn'])) $newdn = "cn=".$ldap->dn_escape($ldap_object['cn']).",".$domain_dn;
+ if (!empty($ldap_object['uid'])) $newdn = "uid=".$ldap->dn_escape($ldap_object['uid']).",".$domain_dn;
else $newdn = $dn;
if (strcmp($dn,$newdn) != 0) {
// Check for distribution lists with this user as member
@@ -771,7 +771,7 @@ switch( $action ) {
} else {
// firstsave
if (!$errors) {
- $dn = "cn=".$ldap->dn_escape($ldap_object['cn']).$dn_add.",".$domain_dn;
+ $dn = "uid=".$ldap->dn_escape($ldap_object['uid']).$dn_add.",".$domain_dn;
foreach( $ldap_object as $k => $v ) {
if( $v == array() ) unset($ldap_object[$k]);
}