Skip to content

[Bug]: RDN select list doesnt include other required attributes of objectclasses added to an entry being created #382

@mrdrmmn

Description

@mrdrmmn

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- OS: docker comtainer via podman
- PHP: frakenphp
- LDAP Server: openldap

PLA Code

Docker hub

PLA Version

v2.3.0-rel-ff24ceac

Current Behavior

The UI does not allow me to set the rdn to 'uid' when creating a user. The following LDIF works, but cannot be replicated in the UI:

version: 1
dn: uid=test,ou=people,dc=example,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: uidObject
uid: test
cn: Test User
sn: User

Expected Behavior

I should be able to create a user via the UI with uid as the RDN when the object classes include inetOrgPerson and uidObject. Currently this is not possible.

Steps To Reproduce

Create a new entry.
Select inetOrgUser as the structural objectClass
Add uidObject as an additional objectClass.
Try to select uid as the RDN attribute. It is not an option yet is perfectly allowable.

Relevant log output

No logs as this is a UI problem.

Anything else?

Seaching google for 'ldif to create user with objectclasses inetOrgPerson and uidObject' gives a lot of results that all use the uid attribute as the RDR. Here are a few examples:
https://ledinhcuong99.medium.com/create-new-user-in-ldap-using-ldif-905c6f537f38
https://www.digitalocean.com/community/tutorials/how-to-use-ldif-files-to-make-changes-to-an-openldap-system
https://simp.readthedocs.io/en/latest/user_guide/User_Management/LDAP/OpenLDAP/manage_users.html

So it seems this creating a user with uid as the rdn is pretty standard and not just me trying to do something unexpected. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions