Преглед изворни кода

HPCC-15954 ESP crash with 389DS LDAP and creating default OU

When ESP starts, the LDAP security manager creates the base OU structure
on the LDAP server. If the LDAP is 389DS and the base OU does not already
exist, ESP security manager will core derefrerencing a NULL pointer. This
PR sets the securty manager config pointer before calling initialize.

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>
Russ Whitehead пре 9 година
родитељ
комит
f72867a64f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      system/security/LdapSecurity/ldapsecurity.cpp

+ 1 - 1
system/security/LdapSecurity/ldapsecurity.cpp

@@ -528,8 +528,8 @@ void CLdapSecManager::init(const char *serviceName, IPropertyTree* cfg)
     else
         throwUnexpected();
 
-    ldap_client->init(pp);
     pp->setLdapClient(ldap_client);
+    ldap_client->init(pp);
 
     m_ldap_client.setown(ldap_client);
     m_pp.setown(pp);