jackdaw icon indicating copy to clipboard operation
jackdaw copied to clipboard

Unable to connect via ldap

Open sandwich-destroyer opened this issue 5 years ago • 2 comments

Not sure what is happening, I am using the right password.

root@kali:/opt/jackdaw# python3 jackdaw.py --sql sqlite:////opt/jackdaw/test.db ldap 'ldap://DOMAIN\user:password@domaincontroller'
Traceback (most recent call last):
  File "jackdaw.py", line 4, in <module>
    main()
  File "/opt/jackdaw/jackdaw/__main__.py", line 260, in main
    run(args)
  File "/opt/jackdaw/jackdaw/__main__.py", line 86, in run
    ldap_conn.connect()
  File "/usr/local/lib/python3.7/dist-packages/msldap-0.2.5-py3.7.egg/msldap/connection.py", line 66, in connect
    auto_bind=True
  File "/usr/lib/python3/dist-packages/ldap3/core/connection.py", line 321, in __init__
    self.do_auto_bind()
  File "/usr/lib/python3/dist-packages/ldap3/core/connection.py", line 349, in do_auto_bind
    raise LDAPBindError(self.last_error)
ldap3.core.exceptions.LDAPBindError: automatic bind not successful - invalidCredentials
'''

sandwich-destroyer avatar Jan 06 '20 20:01 sandwich-destroyer

Could be a parsing error in the code. Can you verify in wireshark that the ldap actually sends out the user/password that you specified? (sometimes the special chars messing the parser up depending on the shell you are using)

skelsec avatar Jan 06 '20 22:01 skelsec

Looks like everything is being sent over the wire correctly, username and password are correct and not mangled.

sandwich-destroyer avatar Jan 07 '20 16:01 sandwich-destroyer