summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wickert <wickert@kolabsys.com>2011-04-15 13:58:58 (GMT)
committerChristoph Wickert <wickert@kolabsys.com>2011-04-15 20:03:15 (GMT)
commitd6ae6b24dbb1f6cce1bd9fa9d4c854fcfdc64cca (patch)
tree79189baffe5689d012b7a7ea8ab0852bf4ddc5f8
parented92e204e0eb1dfaa17fbc6d6fa8783aebe32648 (diff)
downloadserver-d6ae6b24dbb1f6cce1bd9fa9d4c854fcfdc64cca.tar.gz
kolab-webadmin: kolab/issue1549 (Patch to change dn: cn=... -> dn: mail=...)
-rw-r--r--kolab-webadmin/kolab-webadmin/www/admin/user/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/kolab-webadmin/kolab-webadmin/www/admin/user/user.php b/kolab-webadmin/kolab-webadmin/www/admin/user/user.php
index 7c00de3..7ba9d27 100644
--- a/kolab-webadmin/kolab-webadmin/www/admin/user/user.php
+++ b/kolab-webadmin/kolab-webadmin/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]);
}