Fixed LDAP connection to custom port
This commit is contained in:
parent
bd7f6f60e8
commit
6740fbf479
|
@ -69,7 +69,7 @@ class PcfAnnuaire(BaseContent):
|
|||
ldapdir = aq_base(portal.acl_users.ldap)
|
||||
luf = ldapdir._getLDAPUserFolder()
|
||||
server = luf._delegate.getServers()[0]
|
||||
ldap_conn = ldap.initialize('%(protocol)s://%(host)s' % server)
|
||||
ldap_conn = ldap.initialize('%(protocol)s://%(host)s:%(port)s' % server)
|
||||
ldap_conn.simple_bind_s(luf._binduid, luf._bindpwd)
|
||||
return ldap_conn
|
||||
|
||||
|
|
Reference in New Issue