phpldapadmin seems to do this when adding new attributes to an existing entry (will only list the attributes valid for the objectclasses the entry contains). You might want to check the source to see how they do it.


On Tue, Feb 18, 2014 at 2:43 PM, Umar Draz <unix.co@gmail.com> wrote:
HI All

I want a list of valid attributes for specific objectClass e.g.

I have a user abc with the dn of this user is

cn=Abc User,ou=accounts,dc=mydom,dc=com

the abc user has these object classes

posixAccount
shadowAccount
OrginizatinalPerson
yubikeyUser

now I want to get the valid schema attribute of yubikeyUser for only the above mentioned user.

Is this possible?

Umar