Hi,
I want to get unique ids for each ldap entry, but i don't know whether ldap provides unique id for each entry or not. In case of RDBMS each entry(tuple) has a OID(Object id) through which we can access uniquely this Entry. In case of LDAP, i need such (OID) kind of object identifier.
Please tell me whether ldap provides some kind of unique id(Other than DN) for it's entries or not. If yes then please tell me how we can get these unique ids?
Rakesh Yadav wrote:
I want to get unique ids for each ldap entry, but i don't know whether ldap provides unique id for each entry or not.
Well, it also depends on the scope within which the ID has to be unique.
You might want to look at attribute entryUUID which is generated by the LDAP server. The entryUUID never changes even when renaming the entry. Not all LDAP servers support this though. OpenLDAP does.
See also http://www.ietf.org/rfc/rfc4530.txt
Ciao, Michael.
Hi,
I got your idea about entryUUID, but can u give me some idea about how can i retrieve the value of entryUUID for each entry if it is supported by LDAP system.
I m using "*openldap-2.3.38*", but i don't know whether it supports entryUUID or not.
Please tell me how can i get the values of entryUUID in case of "* openldap-2.3.38*"
Thanks Rakesh Yadav
On Jan 22, 2008 3:56 PM, Michael Ströder michael@stroeder.com wrote:
Rakesh Yadav wrote:
I want to get unique ids for each ldap entry, but i don't know whether ldap provides unique id for each entry or not.
Well, it also depends on the scope within which the ID has to be unique.
You might want to look at attribute entryUUID which is generated by the LDAP server. The entryUUID never changes even when renaming the entry. Not all LDAP servers support this though. OpenLDAP does.
See also http://www.ietf.org/rfc/rfc4530.txt
Ciao, Michael.
-- Michael Ströder E-Mail: michael@stroeder.com http://www.stroeder.com
On Fri, 2008-01-25 at 12:05 +0530, Rakesh Yadav wrote:
Hi,
I got your idea about entryUUID, but can u give me some idea about how can i retrieve the value of entryUUID for each entry if it is supported by LDAP system.
I m using "openldap-2.3.38", but i don't know whether it supports entryUUID or not.
Please tell me how can i get the values of entryUUID in case of "openldap-2.3.38"
Search, listing that attribute as the attribute you are interested in?
Andrew Bartlett
Rakesh Yadav wrote:
I got your idea about entryUUID, but can u give me some idea about how can i retrieve the value of entryUUID for each entry if it is supported by LDAP system.
Since it's an operational attribute it is not returned by default from OpenLDAP. You have to explicitly request it or request all operational attributes with +.
Example (lines might be wrapped): ldapsearch -b "dc=stroeder,dc=de" -s base "(objectClass=*)" "*" entryUUID
or
ldapsearch -b "dc=stroeder,dc=de" -s base "(objectClass=*)" "*" +
Ciao, Michael.
openldap-technical@openldap.org