Skip to content

Add uid to LDAP_WHITELISTED_ATTRIBUTES #1790

@homeserverhq

Description

@homeserverhq

The uid field is most commonly used for usernames in OpenLDAP. The request is for it to be added to the LDAP_WHITELISTED_ATTRIBUTES in application/config/constants.php, i.e.:

...
    'name',
    'samaccountname',
    'samaccounttype',
    'objectcategory',
    'memberof',
    'distinguishedname',
    'uid',   <----------------------- Add uid
];
...

Then you could map "username": "uid", and speed up the import process.

Also, a related issue, if the password is left blank, can a long random one just automatically be assigned, since the auth process falls back to the LDAP password (which is great)? Or put differently, is this extra password even necessary? I suppose if the LDAP DN were removed from a user, it would matter, but then just create a new password at that point?

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions