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 at calpers.ca.gov> 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 at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux