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

fun with aliases



Hi There,

We have a problem with understanding that alias-stuff. I hope, anybody can
help me with that.
Ok, the story is:

there is this structur on ldap://fink.imise.uni-leipzig.de/o=org,c=de

                     ou=unit,o=org,c=de (BaseDN of the Searches)
           cn=alias1,ou=unit,o=org,c=de (An Alias to cn=me,ou=People,o=org,c=de)
          ou=subunit,ou=unit,o=org,c=de (a sub-unit)
cn=alias2,ou=subunit,ou=unit,o=org,c=de (An alias to cn=you,ou=People,o=org,c=de)

i perform these commands to test aliasing:

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -a never dn
dn: ou=unit,o=org, c=de
dn: ou=subunit,ou=unit,o=org, c=de
dn: cn=alias1,ou=unit,o=org, c=de
dn: cn=alias2,ou=subunit,ou=unit,o=org, c=de

ok, its looks like ok

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -a always dn
dn: ou=unit,o=org, c=de
dn: ou=subunit,ou=unit,o=org, c=de
dn: cn=me,ou=People,o=org, c=de
dn: cn=you,ou=People,o=org, c=de

fine, alias is a cool thing ...

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -s one -a find dn
dn: ou=subunit,ou=unit,o=org, c=de
dn: cn=alias1,ou=unit,o=org, c=de

What is this? 2 output-Elements are ok, because the the scope is "one"
but the alias is not solved! ok, maybe it is the wrong -a option:

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -s one -a search dn
dn: ou=subunit,ou=unit,o=org, c=de

?? either the alias not the solved object? ok, i test a -a always:

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -s one -a always dn
dn: ou=subunit,ou=unit,o=org, c=de

help, where are my aliases? ok, i try a -a never

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -s one -a never dn
dn: ou=subunit,ou=unit,o=org, c=de
dn: cn=alias1,ou=unit,o=org, c=de

Huh, here they are. But why i can not solve them with scope-level one?

maybe i must use scope-level sub for solving? but how can i query only the
objects direct under ou=unit?

> ldapsearch -h fink -b "ou=unit,o=org,c=de" -LLL -s one -a never "(objectClass=alias)" dn
dn: cn=alias1,ou=unit,o=org, c=de

OK, and the final question: How can i solve this selection?


long text, hope there is a master out there who can help me.
of course you can view the entry on
ldap://fink.imise.uni-leipzig.de/o=org,c=de



bye

   Sebastian Dietzold

---
Sebastian Dietzold - phone: +49-341-97-16114 - fax: +49-341-97-16109
Institute  for  Medical  Informatics,  Statistics  and  Epidemiology
University  of  Leipzig  -  Liebigstr. 27 - 04103  Leipzig,  Germany