Hi there,
I installed PrivacyIdea version 3.3.1 and privacyidea-ldap-proxy on CentOS 7. I could retrieve user accounts from a ldap server installed not on the privacyidea server and tested token on Privacyidea admin console using “Test token” button successfully. However, I got below error when tring to test ldap-proxy using this command ldapsearch -x -H ldap://192.168.1.1:1389 -D uid=test.ds,ou=people,dc=my-domain,dc=com -w ‘password030072’ “mail=*” .
Error message:
2020-08-21T18:31:10+0800 [pi_ldapproxy.proxy#info] BindRequest for ‘uid=test.ds,ou=people,dc=my-domain,dc=com’ received …
2020-08-21T18:31:10+0800 [twisted.internet.endpoints.OneShotFactory#info] Starting factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca226cf8>
2020-08-21T18:31:10+0800 [pi_ldapproxy.proxy#info] Resolved ‘uid=test.ds,ou=people,dc=my-domain,dc=com’ to ‘test.ds’@’’ (’’)
2020-08-21T18:31:10+0800 [twisted.web.client._HTTP11ClientFactory#info] Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f66ca1d9a28>
2020-08-21T18:31:10+0800 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca226cf8>
2020-08-21T18:31:10+0800 [pi_ldapproxy.proxy#info] Sending BindResponse “invalid credentials”: Failed to authenticate. Wrong HTTP response (400)
2020-08-21T18:31:10+0800 [twisted.web.client._HTTP11ClientFactory#info] Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f66ca1d9a28>
2020-08-21T18:31:10+0800 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca2267e8>
2020-08-21T18:31:17+0800 [twisted.internet.endpoints.OneShotFactory#info] Starting factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca25bb00>
2020-08-21T18:31:17+0800 [pi_ldapproxy.proxy#info] BindRequest for ‘uid=test.ds,ou=people,dc=my-domain,dc=com’ received …
2020-08-21T18:31:17+0800 [twisted.internet.endpoints.OneShotFactory#info] Starting factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca1cb440>
2020-08-21T18:31:17+0800 [pi_ldapproxy.proxy#info] Resolved ‘uid=test.ds,ou=people,dc=my-domain,dc=com’ to ‘test.ds’@’’ (’’)
2020-08-21T18:31:17+0800 [twisted.web.client._HTTP11ClientFactory#info] Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f66ca1f8ab8>
2020-08-21T18:31:17+0800 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca1cb440>
2020-08-21T18:31:17+0800 [pi_ldapproxy.proxy#info] Sending BindResponse “invalid credentials”: Failed to authenticate. Wrong HTTP response (400)
2020-08-21T18:31:17+0800 [twisted.web.client._HTTP11ClientFactory#info] Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f66ca1f8ab8>
2020-08-21T18:31:17+0800 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f66ca25bb00>
PrivacyIdea site: https://192.168.1.1
Config.ini setting:
[privacyidea]
instance = http://127.0.0.1:443
[ldap-backend]
endpoint = tcp:host=192.168.1.2:port=389
test-connection = true
[service-account]
dn = “uid=zimbra,cn=admins,cn=zimbra”
password = TOPSECRET
[ldap-proxy]
endpoint = tcp:port=1389
passthrough-binds = “”
bind-service-account = true
allow-search = true
allow-connection-reuse = true
ignore-search-result-references = false
forward-anonymous-binds = false
[user-mapping]
strategy = lookup
attribute = uid
[realm-mapping]
strategy = static
realm =
[bind-cache]
enabled = false
timeout = 3
[app-cache]
enabled = false
Any idea and solution? Thanks!
Best,
Keith