[GH-ISSUE #912] [INTEGRATION] uidNumber: missing on nslcd authentication #331

Closed
opened 2026-02-27 08:16:41 +03:00 by kerem · 5 comments
Owner

Originally created by @coldsobolev on GitHub (May 28, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/912

Describe the bug
Unable to login via nslcd.

To Reproduce
Steps to reproduce the behavior:

  1. Setup an LLDAP server inside Docker
  2. Install nslcd, and configure to use the LLDAP server
  3. Try to login to a user provided only by the LLDAP server

Expected behavior
Login works.
Logs
nslcd gives the following error:
uid=tuser,ou=people,dc=example,dc=com: uidNumber: missing

If there are any other way to authenticate users into linux machines without local accounts, please provide alternatives.

Originally created by @coldsobolev on GitHub (May 28, 2024). Original GitHub issue: https://github.com/lldap/lldap/issues/912 **Describe the bug** Unable to login via nslcd. **To Reproduce** Steps to reproduce the behavior: 1. Setup an LLDAP server inside Docker 2. Install nslcd, and configure to use the LLDAP server 3. Try to login to a user provided only by the LLDAP server **Expected behavior** Login works. **Logs** nslcd gives the following error: `uid=tuser,ou=people,dc=example,dc=com: uidNumber: missing` If there are any other way to authenticate users into linux machines without local accounts, please provide alternatives.
kerem 2026-02-27 08:16:41 +03:00
Author
Owner

@nitnelave commented on GitHub (May 28, 2024):

uidNumber is not provided by default. If you use the latest LLDAP, you can create a custom user attribute uidNumber and set the value for each user.
The web UI doesn't fully support custom attributes yet (you can create them but not set values), but you can use lldap-cli as a friendlier interface than GraphQL.

<!-- gh-comment-id:2135885545 --> @nitnelave commented on GitHub (May 28, 2024): uidNumber is not provided by default. If you use the latest LLDAP, you can create a custom user attribute uidNumber and set the value for each user. The web UI doesn't fully support custom attributes yet (you can create them but not set values), but you can use lldap-cli as a friendlier interface than GraphQL.
Author
Owner

@coldsobolev commented on GitHub (May 29, 2024):

I am actually not sure what is causing the issue here, but I used the community CLI to add this and it didn't work. This is what I got:

lldap-cli $ ./lldap-cli schema attribute user add uidNumber integer
ERROR: Unknown type \AttributeType\
Unknown field \addUserAttribute\ on type \Mutation\

Any idea what is causing this? How does one do this directly via the API?

<!-- gh-comment-id:2136378851 --> @coldsobolev commented on GitHub (May 29, 2024): I am actually not sure what is causing the issue here, but I used the community CLI to add this and it didn't work. This is what I got: ``` lldap-cli $ ./lldap-cli schema attribute user add uidNumber integer ERROR: Unknown type \AttributeType\ Unknown field \addUserAttribute\ on type \Mutation\ ``` Any idea what is causing this? How does one do this directly via the API?
Author
Owner

@nitnelave commented on GitHub (May 29, 2024):

That's likely because you're using the stable version of LLDAP instead of the latest. User attributes have not technically been released yet (we're just waiting on the UI)

<!-- gh-comment-id:2136526206 --> @nitnelave commented on GitHub (May 29, 2024): That's likely because you're using the stable version of LLDAP instead of the latest. User attributes have not technically been released yet (we're just waiting on the UI)
Author
Owner

@coldsobolev commented on GitHub (Jun 12, 2024):

Thank you. Could you give me an ETA?

<!-- gh-comment-id:2162394570 --> @coldsobolev commented on GitHub (Jun 12, 2024): Thank you. Could you give me an ETA?
Author
Owner

@nitnelave commented on GitHub (Aug 16, 2024):

Sorry for the (very) late answer. I don't have an ETA for a stable release (it's blocked on the web UI), but you can use the nightly releases.

<!-- gh-comment-id:2294369014 --> @nitnelave commented on GitHub (Aug 16, 2024): Sorry for the (very) late answer. I don't have an ETA for a stable release (it's blocked on the web UI), but you can use the nightly releases.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#331
No description provided.