authentik icon indicating copy to clipboard operation
authentik copied to clipboard

How to use `dn` as "Object uniqueness field"

Open septatrix opened this issue 2 years ago • 6 comments

Describe your question/ I am currently evaluating using authentik with an LDAP source. The LDAP server however is custom software and does not have any objectSid, ipaUniqueID or similar field. Thus we would like to simply use the dn of each object as its unique identifier.

Version and Deployment (please complete the following information):

  • authentik version: 2023.1.2
  • Deployment: docker-compose

septatrix avatar Jan 26 '23 20:01 septatrix

Why does one even have to set up a uniqueness field? distinguishedName should be sufficient pretty much always. However, the way it is currently set up seems to make it impossible to use this.

septatrix avatar Dec 05 '23 00:12 septatrix

@septatrix Why don't you set the Object uniqueness field option under Directory -> Federation -> Source -> Edit to distinguishedName ? That shoud solve your problem

haupas avatar Jan 25 '24 13:01 haupas

@septatrix Why don't you set the Object uniqueness field option under Directory -> Federation -> Source -> Edit to distinguishedName ? That shoud solve your problem

Because it does not work, neither dn nor distinguishedName work

septatrix avatar Mar 10 '24 18:03 septatrix

Plus one here. Currently, my workaround is to setup two ldap sources, one for users and one for groups setting different object uniqueness fields. While that does work, using the DN would be more elegant. The CN is suggested elsewhere as the uniqueness field for both but as that's just the clear name in our case for the users it will eventually cause collisions.

By the way, how can I find out which attributes I can set for that and which not?

eickeh avatar Mar 19 '24 11:03 eickeh

My users have a suitable id field, but my groups don't. Isn't there a way to use an expression instead of a field name? =/

rbq avatar Mar 22 '24 11:03 rbq

How can I use gidNumber as a group object uniqueness field?

doraeric avatar May 02 '24 03:05 doraeric