Browse Source

Merge pull request #12623 from RussWhitehead/389DSFix72x

HPCC-22270 Cannot create LDAP group using 389DirectoryServer

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 years ago
parent
commit
59a3fe5db1
1 changed files with 5 additions and 2 deletions
  1. 5 2
      system/security/LdapSecurity/ldapconnection.cpp

+ 5 - 2
system/security/LdapSecurity/ldapconnection.cpp

@@ -4294,8 +4294,11 @@ public:
         
         attrs[ind++] = &cn_attr;
         attrs[ind++] = &oc_attr;
-        if (groupOwner && *groupOwner)
-            attrs[ind++] = &owner_attr;
+        if(m_ldapconfig->getServerType() == ACTIVE_DIRECTORY)
+        {
+            if (groupOwner && *groupOwner)
+                attrs[ind++] = &owner_attr;
+        }
         if (groupDesc && *groupDesc)
             attrs[ind++] = &desc_attr;
         attrs[ind] = NULL;