Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
407fee7ad4
Modificáronse 1 ficheiros con 0 adicións e 12 borrados
  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;