c0w6-q
Last Updated: February 25, 2016
·
2.844K
· phaus
902a4faaa4de6f6aebd6fd7a9fbab46a

create LDAP Aliases in Openldap

Sometimes you need to have a User Entry a several levels of your LDAP Directory.
You can do this very easy, while using LDAP Aliases:


version: 1

# this is the user

dn: uid=user,ou=Accounts,dc=domain,dc=de,dc=world
objectClass: extensibleObject
objectClass: ldapPublicKey
objectClass: account
objectClass: top
objectClass: posixAccount
cn: ida
gidNumber: 1000
homeDirectory: /home/user
uid: user
uidNumber: 1000

# this is the alias

dn: uid=user,ou=Accounts,dc=domain,dc=biz,dc=world
changetype: add
objectClass: alias
objectClass: top
objectClass: extensibleObject
uid: user
aliasedObjectName: uid=user,ou=Accounts,dc=haussleiter,dc=de,dc=world

You now have the same user at two different places (all data is the same, except the DN Attribute)

Say Thanks
Respond