To create an alias, you need to create an entry with the objectClass's alias and extensibleObject. The extensibleObject allows you to include the part of the DN in the alias, which is required before one can be added.
An example LDIF(5) file is
dn: uid=alias,ou=People,dc=example,dc=net
objectclass: alias
objectclass: extensibleObject
uid: alias
aliasedobjectname: uid=target,ou=Retired People,dc=example,dc=com
When searching for objects, if dereferencing is enabled and an alias entry is found with the search scope, the aliased object will be returned. That is,
ldapsearch -x -a search -b "ou=People,dc=example,dc=net"
would return the "uid=target,ou=Retired People,dc=example,dc=com" object.
|