Browse Source

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 năm trước cách đây
mục cha
commit
f72867a64f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);