瀏覽代碼

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);