Maybe someone can help with the setup https://...
# troubleshooting
t
Maybe someone can help with the setup https://github.com/matheusfillipe/ldap-signup with LLDAP, please? When i try reg a new user, i get this error: >>Could not bind to 100.102.36.53 to add user<< Error in search query: Insufficient access This my config: $HOST = 'ipaddres'; $PORT = 3890; $USER = "admin"; $PASSWORD = "password"; $BASE_DN = 'cn={},ou=people,dc=orm,dc=red'; Logs from LLDAP
Copy code
2023-06-23T14:26:58.828056011Z 2023-06-23T14:26:58.827749678+00:00  INFO     LDAP session [ 132µs | 36.48% / 100.00% ]
2023-06-23T14:26:58.828092760Z 2023-06-23T14:26:58.827824077+00:00  INFO     ┕━ LDAP request [ 83.8µs | 63.52% ]
2023-06-23T14:27:28.934786093Z 2023-06-23T14:27:28.934394980+00:00  INFO     LDAP session [ 139µs | 41.82% / 100.00% ]
2023-06-23T14:27:28.934815087Z 2023-06-23T14:27:28.934439383+00:00  INFO     ┕━ LDAP request [ 81.0µs | 58.18% ]
2023-06-23T14:27:58.995096371Z 2023-06-23T14:27:58.994754992+00:00  INFO     LDAP session [ 90.7µs | 54.23% / 100.00% ]
2023-06-23T14:27:58.995124264Z 2023-06-23T14:27:58.994870438+00:00  INFO     ┕━ LDAP request [ 41.5µs | 45.77% ]
2023-06-23T14:28:29.065510048Z 2023-06-23T14:28:29.065129175+00:00  INFO     LDAP session [ 112µs | 42.42% / 100.00% ]
2023-06-23T14:28:29.065540065Z 2023-06-23T14:28:29.065162067+00:00  INFO     ┕━ LDAP request [ 64.6µs | 57.58% ]
2023-06-23T14:28:59.172986701Z 2023-06-23T14:28:59.172582513+00:00  INFO     LDAP session [ 183µs | 35.42% / 100.00% ]
2023-06-23T14:28:59.173018601Z 2023-06-23T14:28:59.172628279+00:00  INFO     ┕━ LDAP request [ 118µs | 64.58% ]
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
n
Can you turn on verbose logging in LLDAP?
verbose: true
in the config
or
LLDAP_VERBOSE=true
in the env
t
Copy code
2023-06-23T14:34:33.547708765Z 2023-06-23T14:34:33.543836884+00:00  DEBUG    │  ┝━ do_search [ 2.20µs | 0.67% ]
2023-06-23T14:34:33.547714255Z 2023-06-23T14:34:33.543849058+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | response: SearchResultDone(LdapResult { code: InsufficentAccessRights, matcheddn: "", message: "No user currently bound", referral: [] })
2023-06-23T14:34:33.547720657Z 2023-06-23T14:34:33.547227734+00:00  INFO     ┕━ LDAP request [ 8.47µs | 2.57% ]
2023-06-23T14:34:33.547726077Z 2023-06-23T14:34:33.547233846+00:00  DEBUG       ┕━ 🐛 [debug]:  | msg: LdapMsg { msgid: 3, op: UnbindRequest, ctrl: [] }
2023-06-23T14:34:48.707874015Z 2023-06-23T14:34:48.707712793+00:00  INFO     HTTP request [ 12.5µs | 100.00% ]
2023-06-23T14:34:48.707896797Z 2023-06-23T14:34:48.707714407+00:00  INFO     ┝━ i [info]:  | uri: /health
2023-06-23T14:34:48.707899943Z 2023-06-23T14:34:48.707726639+00:00  INFO     ┕━ i [info]:  | status_code: 200
2023-06-23T14:34:48.707902518Z 2023-06-23T14:34:48.707464539+00:00  INFO     LDAP session [ 169µs | 34.92% / 100.00% ]
2023-06-23T14:34:48.707904913Z 2023-06-23T14:34:48.707562442+00:00  INFO     ┕━ LDAP request [ 110µs | 65.08% ]
2023-06-23T14:34:48.707907457Z 2023-06-23T14:34:48.707574905+00:00  DEBUG       ┝━ 🐛 [debug]:  | msg: LdapMsg { msgid: 0, op: SearchRequest(LdapSearchRequest { base: "", scope: Base, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: Present("objectClass"), attrs: ["supportedExtension"] }), ctrl: [] }
2023-06-23T14:34:48.707910473Z 2023-06-23T14:34:48.707578301+00:00  DEBUG       ┝━ 🐛 [debug]: rootDSE request
full logs from start container
n
I don't see an attempt to create a user here, am I missing something?
t
I figured it out, i have to use in the user field like :"admin,ou=people" Thanks!
I plugged it in, but it still doesn't add the user, here's the error🥲 Not able to load user logs from lldap:
Copy code
2023-06-23T15:03:47.735867572Z 2023-06-23T15:03:47.728037120+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | response: BindResponse(LdapBindResponse { res: LdapResult { code: Success, matcheddn: "", message: "", referral: [] }, saslcreds: None })
2023-06-23T15:03:47.735870366Z 2023-06-23T15:03:47.732046286+00:00  INFO     ┝━ LDAP request [ 86.0µs | 0.07% ]
2023-06-23T15:03:47.735873753Z 2023-06-23T15:03:47.732062256+00:00  DEBUG    │  ┝━ 🐛 [debug]:  | msg: LdapMsg { msgid: 2, op: AddRequest(LdapAddRequest { dn: "uid=testreg,ou=people,dc=orm,dc=red", attributes: [LdapPartialAttribute { atype: "givenName", vals: [[84, 101, 115, 116]] }, LdapPartialAttribute { atype: "sn", vals: [[82, 101, 103]] }, LdapPartialAttribute { atype: "uid", vals: [[116, 101, 115, 116, 114, 101, 103]] }, LdapPartialAttribute { atype: "mail", vals: [[108, 101, 64, 115, 104, 97, 108, 101, 110, 107, 111, 118, 46, 100, 101, 118]] }, LdapPartialAttribute { atype: "displayName", vals: [[84, 101, 115, 116, 32, 82, 101, 103]] }, LdapPartialAttribute { atype: "cn", vals: [[116, 101, 115, 116, 114, 101, 103]] }, LdapPartialAttribute { atype: "userPassword", vals: ["********"] }, LdapPartialAttribute { atype: "objectclass", vals: [[116, 111, 112], [112, 101, 114, 115, 111, 110], [105, 110, 101, 116, 79, 114, 103, 80, 101, 114, 115, 111, 110], [111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 97, 108, 80, 101, 114, 115, 111, 110]] }] }), ctrl: [] }
2023-06-23T15:03:47.735878542Z 2023-06-23T15:03:47.732078377+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | response: AddResponse(LdapResult { code: ConstraintViolation, matcheddn: "", message: "Expected a single value for attribute objectclass", referral: [] })
I was in a hurry to say that everything works😅
n
oh, interesting, it sends several objectClass
yeah, that should not be a problem. Can you create an issue asking to handle several objectClass when creating a user?
t
yep, i'll create an issue, thanks!