Forráskód Böngészése

FIX: Cannot add LDAP group with same name as existing user

Tested using ADSI Edit on private domain controller, and found that
sAMAccountName should not be specified. Corrected in the code and tested

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
William Whitehead 13 éve
szülő
commit
407fee7ad4
1 módosított fájl, 0 hozzáadás és 12 törlés
  1. 0 12
      system/security/LdapSecurity/ldapconnection.cpp

+ 0 - 12
system/security/LdapSecurity/ldapconnection.cpp

@@ -3155,14 +3155,6 @@ public:
             oc_values
         };
 
-        char *act_values[] = {(char*)groupname, NULL};
-        LDAPMod act_attr = 
-        {
-            LDAP_MOD_ADD,
-            "sAMAccountName",
-            act_values
-        };
-
         char *member_values[] = {"", NULL};
         LDAPMod member_attr = 
         {
@@ -3176,10 +3168,6 @@ public:
         
         attrs[ind++] = &cn_attr;
         attrs[ind++] = &oc_attr;
-        if(m_ldapconfig->getServerType() == ACTIVE_DIRECTORY)
-        {
-            attrs[ind++] = &act_attr;
-        }
         if(m_ldapconfig->getServerType() == OPEN_LDAP)
         {
             attrs[ind++] = &member_attr;