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 17:23:59 (GMT)
commit04012190cc9884b312b8df477cf7f63d2068dfcb (patch)
treea52f2e4cfba80fa4517e189e4804dc867f81782b
parent48e991d412f937ac9cfd0c35eff4106f21dae1e5 (diff)
downloadserver-04012190cc9884b312b8df477cf7f63d2068dfcb.tar.gz
kolab-webadmin: kolab/issue1549 (Patch to change dn: cn=... -> dn: mail=...)2.3.0
-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]);
}