mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
binding with user credentials instead of preset LDAP user/pass
This commit is contained in:
parent
b6ed658cbd
commit
501c5292ab
@ -148,7 +148,8 @@ class User(db.Model):
|
|||||||
l.set_option( ldap.OPT_DEBUG_LEVEL, 255 )
|
l.set_option( ldap.OPT_DEBUG_LEVEL, 255 )
|
||||||
l.protocol_version = ldap.VERSION3
|
l.protocol_version = ldap.VERSION3
|
||||||
|
|
||||||
l.simple_bind_s(LDAP_USERNAME, LDAP_PASSWORD)
|
#l.simple_bind_s(LDAP_USERNAME, LDAP_PASSWORD)
|
||||||
|
l.simple_bind_s(self.username,self.password)
|
||||||
ldap_result_id = l.search(baseDN, searchScope, searchFilter, retrieveAttributes)
|
ldap_result_id = l.search(baseDN, searchScope, searchFilter, retrieveAttributes)
|
||||||
result_set = []
|
result_set = []
|
||||||
while 1:
|
while 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user