This topic has 5 replies, 4 voices, and was last updated 1 year, 7 months ago by Andy Cory.
-
AuthorPosts
-
September 15, 2020 at 11:03 pm #28280
aortiz
ParticipantHi Everyone. Today’s inquire is very simple, is there any way to map EntryUUID to UID attribute when i create the user through Rest2Ldap?
The goal here is to create users using an autogenerated alphanumeric value.
And in case it is not possible, is there any way to generate a random alphanumeric value in the creation to use as UID?My Environment is DS 6.5 using Rest2Ldap Gateway
September 16, 2020 at 3:47 pm #28284Jatinder Singh
ParticipantThe value of
entryuuid
is generated byEntry UUID Plugin
at the directory prior to core add processing. So this value will not be available torest2ldap
gateway at the time CREATE request is actually sent to DS. And I am not sure if UID auto-generation is supported out-of-the-box in the gateway. One suggestion is to have the value of UID auto-generated in your client code before the request is actually sent torest2ldap
gateway.September 16, 2020 at 4:50 pm #28286Jatinder Singh
ParticipantThe above suggestion implies there’s an LDAP lookup involved to check if
UID
exists. The other suggestion would be to write a plugin similar toEntry UUID Plugin
but that’s going a bit extereme when this can be handled on the client side entirely.October 21, 2020 at 4:03 am #28325sireeshanp
ParticipantSimilar issue I have, I need to auto generate username while using AM userRegistration API to create user objects into DS. Is there any solution within AM that can auto generate username (Which is mapped to uid in the identity store) after calling the userRegistation API?
October 23, 2020 at 11:53 pm #28332Jatinder Singh
Participant@sireeshanp I can see the case for such
uid
auto generation. AFAIK, AM’s User Self-Service Registration doesn’t have this feature OOB.November 13, 2020 at 11:24 am #28363Andy Cory
ParticipantWe’ve had this use-case come up (autogeneration of UID using AM’s USS registration) a couple of times. In each case the path of least resistance was to have the client code generate the UID. Because the customer was using their own UI to drive the flow using AM’s REST API this was easy in that there was actually client code in place – solving this for those who use XUI isn’t something we have yet faced, happily.
-
AuthorPosts
You must be logged in to reply to this topic.