ldap no cn attribute

ldap no cn attribute

by Mike McKee -
Number of replies: 1
I can connect to the ldap server fine but for attributes all it has is givenName,sn,mail.  How do I get the commonName?  cn is a entry but not a attribute.  So the structure is like this cn=username, ou=students, ou=school, o=district.  So under the cn of username there should be an attribute of cn correct?  How do I get the cn attribute or what would I have to setup with novell netware 6.5 to get the cn attribute to show up so that I can do searches?  I can bind with a user and password I just won't return any search results because of the missing attribute.  Please help. Thanks
Average of ratings: -
In reply to Mike McKee

Re: ldap no cn attribute

by Petri Asikainen -
cn attribute is actualy here, it is just part or dn.

So you have access to *nix box and you have openldap tools installed,  try
ldapsearch -x -W -D 'cn=administrator,o=yourorg' '(cn=username)' cn

it should give result like
# peasika, Users, SKTO
dn: cn=peasika,ou=Users,o=SKTO
cn: peasika

If above command doesnt give results, check server ldap-group objects attribute mappings.

Cheers,
Petri