https://github.com/lldap/lldap logo
Test with curl fails
# troubleshooting
s
Hi Folks, I just set up LLDAP in a docker container. The web GUI works and I crated an aditional user. For a first test I wanted to try a call via curl. As LLDAP_LDAP_BASE_DN I gave it: dc=unraid,dc=fritz,dc=box I tried around, for example: curl -u admin:password ldap://unraid.fritz.box:3890/ curl -u admin:password ldap://unraid.fritz.box:3890/dc=unraid,dc=fritz,dc=box But always get the response: curl: (38) LDAP: cannot bind In Wireshark I saw in the response: "Missing DN value". Agaist this puplic testserver my curl request was successfull: https://www.forumsys.com/2022/05/10/online-ldap-test-server/ Can someone help me what I am doing wrong or how I have to write my curl command?
LLDAPs logging (verbose) doesn't help much either. Both requests give the same output. I also tried the URI in quotes, same result. 2024-12-15T17:43:54.796415125+00:00 INFO ๏ฝ‰ [info]: LDAP session start: 9b80662a-4f21-4d28-a226-902300b5b782 2024-12-15T17:43:54.814805784+00:00 INFO LDAP request [ 37.9ยตs | 93.89% / 100.00% ] session_id: 9b80662a-4f21-4d28-a226-902300b5b782 2024-12-15T17:43:54.814812578+00:00 DEBUG โ”โ” ๐Ÿ› [debug]: | msg: LdapMsg { msgid: 1, op: BindRequest(LdapBindRequest { dn: "admin", cred: LdapBindCred::Simple }), ctrl: [] } 2024-12-15T17:43:54.814814131+00:00 DEBUG โ”โ” do_bind [ 2.32ยตs | 6.11% ] dn: admin 2024-12-15T17:43:54.814822313+00:00 DEBUG โ”•โ” ๐Ÿ› [debug]: | response: BindResponse(LdapBindResponse { res: LdapResult { code: NamingViolation, matcheddn: "", message: "Missing DN value", referral: [] }, saslcreds: None }) 2024-12-15T17:43:54.842592389+00:00 INFO LDAP request [ 8.26ยตs | 100.00% ] session_id: 9b80662a-4f21-4d28-a226-902300b5b782 2024-12-15T17:43:54.842598829+00:00 DEBUG โ”โ” ๐Ÿ› [debug]: | msg: LdapMsg { msgid: 2, op: UnbindRequest, ctrl: [] } 2024-12-15T17:43:54.842600969+00:00 DEBUG โ”•โ” ๐Ÿ› [debug]: Unbind request for 2024-12-15T17:43:54.842618267+00:00 INFO ๏ฝ‰ [info]: LDAP session end: 9b80662a-4f21-4d28-a226-902300b5b782