Re: Questions regarding the Alias Attribute for OU's and ldapsearch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/25/07, Anderson, Cary <Cary_Anderson@xxxxxxxxxxxxxx> wrote:
I am trying to get a handle on using the alias attribute for OU's to set
up something like this:

  ou=posixacct, ou=account, dc=calpers, dc=ca, dc=gov
And have the following ou be an alias to the one I have above
  ou=people, dc=calpers, dc=ca, dc=gov

I thought that if I included ou=posixacct, ou=account, dc=calpers,
dc=ca, dc=gov in the alias attribute of the ou=people this would be
correct.

However I don't seem to be able to find any users when I do an
ldapsearch of the ou people.  Am I not setting up my ldapsearch
correctly? ldapsearch -x "(&(ou=people)(uid=*))"

I actually think I may not be using the correct syntax for ldapsearch
because a search using ldapsearch -x "(&(ou=posixacct)(uid=*)" also does
not return any of my uid's, the most basic ldapsearch does work,
ldapsearch -x uid=*, but that is searching the entire tree...

I could use some assistance in if I setup the alias correctly and what
may be wrong with how I am using ldapsearch.

Both your searches are semantically wrong. They are looking for
objects that have attributes ou=something and uid="anything". What you
want to achieve I guess is to look for objects that are under
ou=people branch. You can do that by using extensible matching:
(ou:dn:=people) or (ou:dn:=posixacct). The other (simple) way of doing
this is to set the search base: ldapsearch -x -b "ou=account,
dc=calpers, dc=ca, dc=gov" "(uid=*)"


Thanks


--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users


--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux