[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: newbie: how to discover the valid attributes for a given DN



On Tue, 2004-08-31 at 10:05, Bruno Negrão wrote:
> Hi all,
> 
> I'm making some tests with the example server www.nldap.com, and i created
> a DN for me:
> "dn: cn=bnegrao,ou=Bnegrao,ou=user,o=NOVELL"
> 
> So, i'd like to know what attributes this DN is capable to store. I already
> know how to retrieve the stored attributes with the command:
> 
> ldapsearch -x -b "ou=user, o=novell" -h www.nldap.com cn=bnegrao
> 
> But, i want to know what are all the attributes could I fill for this DN?
> 
> If this DN is from the objectClasses: objectClass: inetOrgPerson,
> organizationalPerson, person, top, ndsLoginProperties, what attributes do
> these classes support?
> 
> thanks,
> bruno

This should list out the schema for you -- look for the objectclasses
you are interested in.

ldapsearch -x -H ldap://nldap.com -b "cn=schema" -s base objectClasses

HTH,
-Matt
-- 
Matthew J. Smith <matt.smith@uconn.edu>
University of Connecticut ITS
PGP Key: http://web.uconn.edu/dotmatt/matt.asc

Attachment: signature.asc
Description: This is a digitally signed message part