[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: userId v uid



At 04:44 PM 6/12/00 -0400, Mike Douglass wrote:
>I added the entry
>
>attribute	userID		uid	ces
>
>to my slapd.at.conf file and I have the index entry
>
>index	userID	pres,eq
>
>in slapd.conf
>
>I added some entries which have the userID attribute set and a search of 
>the form
>
>ldapsearch ... "(&(objectclass=posixaccount)(userid=myid))"
>
>succeeds and displays the attributes for that entry. A seach of the form
>
>ldapsearch ... "(&(objectclass=posixaccount)(uid=myid))"
>
>gives no response. Shouldn't uid just be a synonym for userid?

Well, that's what you'd expect, but that's not how 1.x treats
the alternative name.  Basically, it allows either userID or
uid to satisify an objectclass allows/requires demand but otherwise
treats them as being two separate attribute types.

Bottom line, use only short names when using OpenLDAP 1.x.