Code

Detect type of LDAP server (Sun LDAP and OpenLDAP for now) on login
[gosa.git] / trunk / gosa-core / include / class_plugin.inc
index d517efd5bd5465425a3c7acc09b1f00a8c740f60..75690a7f5d7e04ddc91a73eb1ad7bf6363aac3e6 100644 (file)
@@ -957,7 +957,12 @@ class plugin
     /* Walk through all objectGroups and check if there are 
         members matching the source dn 
      */
-    $src_dn=str_replace('\\,', '\\2C', LDAP::fix($src_dn));
+    if ($this->config->comma_escape_style == "comma" ||
+        $this->config->comma_escape_style == "unknown") {
+      $src_dn=LDAP::fix($src_dn);
+    } else {
+      $src_dn=str_replace('\\,', '\\2C', LDAP::fix($src_dn));
+    }
     foreach($ogroups as $ogroup){
       if(isset($ogroup['member'])){