Hi,
I have a person object with the following entry in LDIF:
dn: uid=ccy,ou=person,dc=estream,dc=com,dc=my objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person objectClass: top cn: ccy sn: ccy uid: ccy
I then create another posix object for the above person using alias:
dn: uid=ccy,ou=posix,dc=estream,dc=com,dc=my objectClass: alias objectClass: extensibleObject objectClass: posixAccount objectClass: top aliasedObjectName: uid=ccy,ou=person,dc=estream,dc=com,dc=my cn: ccy gidNumber: 500 homeDirectory: /home/ccy uid: ccy uidNumber: 500
I have another ou then use alias to refer to the posixAccount:
dn: uid=ccy,ou=deer,dc=estream,dc=com,dc=my objectClass: alias objectClass: extensibleObject objectClass: top aliasedObjectName: uid=ccy,ou=posix,dc=estream,dc=com,dc=my uid: ccy
But when I search the entry, I get nothing for the posixAccount:
ldapsearch -a always -x -b "ou=deer,dc=estream,dc=com,dc=my" objectClass=posixAccount
I expect the alias dereference will return correct result for me. It seems like the alias object class cannot mix with other object class in OpenLDAP.
If I mix all the object classes into one object, the ldapsearch will success:
dn: uid=ccy,ou=test,dc=estream,dc=com,dc=my objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person objectClass: posixAccount objectClass: top ...
The reason I refactor to that details is I wish to create more than one posixAccount for same person in different server. Please advice on how to achieve that or if it is not encourage to construct the DIT in such manner.
Thank you very much
openldap-software@openldap.org