bharath0208 edited a comment on issue #8129: LDAP Connection Superset
URL: 
https://github.com/apache/incubator-superset/issues/8129#issuecomment-575351208
 
 
   Hi @ziusware @dpgaspar ,
   
   I have modified the superset_config.py to connect to my ldap server. When i 
run this as a docker pod i m able to connect to the LDAP server and the logging 
is working fine. But when i deploy this on a Kubernetes cluster using helm 
charts it throws the below error.
   
   ```Traceback (most recent call last):
     File 
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", 
line 909, in auth_user_ldap
       if not self._bind_ldap(ldap, con, username, password):
     File 
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", 
line 825, in _bind_ldap
       self._bind_indirect_user(ldap, con)
     File 
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", 
line 810, in _bind_indirect_user
       con.bind_s(indirect_user, indirect_password)
     File "/usr/local/lib/python3.6/site-packages/ldap/ldapobject.py", line 
397, in bind_s
       msgid = self.bind(who,cred,method)
     File "/usr/local/lib/python3.6/site-packages/ldap/ldapobject.py", line 
391, in bind
       return self.simple_bind(who,cred)
     File "/usr/local/lib/python3.6/site-packages/ldap/ldapobject.py", line 
376, in simple_bind
       return 
self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
     File "/usr/local/lib/python3.6/site-packages/ldap/ldapobject.py", line 
263, in _ldap_call
       result = func(*args,**kwargs)
   ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}
   ```
   **Note:** The ldap server is up and running and we are able to contact it 
from other kube pods not sure why it is not working from superset pod.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to