소스 검색

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