You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
server = Server(config['LDAP_URL'] + ':' + config['LDAP_PORT'], get_info=ALL)
conn = Connection(server, config['LDAP_BIND_DN'], config['LDAP_BIND_SECRET'])
conn.bind()
except LDAPSocketOpenError as e:
print("error in bind", conn.result)
It is giving this error:
LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out'
Here is the stacktrace:
error in bind inside exception None
File "ldap_connection.py", line 11, in create_ldap_connection
conn.bind()
File ".local/lib/python3.6/site-packages/ldap3/core/connection.py", line 524, in bind
self.open(read_server_info=False)
File ".local/lib/python3.6/site-packages/ldap3/strategy/sync.py", line 56, in open
BaseStrategy.open(self, reset_usage, read_server_info)
File ".local/lib/python3.6/site-packages/ldap3/strategy/base.py", line 147, in open
raise LDAPSocketOpenError('unable to open socket', exception_history)
ldap3.core.exceptions.LDAPSocketOpenError: ('unable to open socket', [(LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',), ('10.0.29.78', 636))])
why does the bind fail? The server is up and running fine.
conn.result returns None, not much helpful. What does it mean?
The text was updated successfully, but these errors were encountered:
"Connection Timed out" means that there was no response from the server. The result is None because no LDAP session was established. Are you sure you can reach the server?
@cannatag Yeah, I was able to reach the server, and then suddenly this error would come up. I'm now wondering if it was because of some pool of connections or something, I got around this error by rebooting the server machine and the service machine. I'll reopen if I get this error again.
@cannatag Yeah, I was able to reach the server, and then suddenly this error would come up. I'm now wondering if it was because of some pool of connections or something, I got around this error by rebooting the server machine and the service machine. I'll reopen if I get this error again.
Kindly support i too having same issue,
ldap3.core.exceptions.LDAPSocketOpenError: socket connection error while opening: [Errno 110] Connection timed out
I am starting a connection like this:
It is giving this error:
LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out'
Here is the stacktrace:
The text was updated successfully, but these errors were encountered: