Possibly - it depends on what type of server you are querying. For instance in the Netscape/iPlanet/Sun world you could query against cn=schema. This will dump the entire contents of the schema - but you could then parse it to find the objectclass you need to know about. An easier way - if you don't need to do this programmatically would be to look up the RFC for the objectclass if it is available (custom ones would not be). Since you are looking at a Unix / Linux LDAP authentication repository - you could look at RFC 2307 to find those particulars ...
HTH, -Chris Larivee -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 4:19 PM To: [EMAIL PROTECTED] Subject: Accessing all possible attributes based on dn? Hi, Is there an easy way to access the list of possible attributes any given dn can have based on the objecClass settings? For example, when I browse my LDAP server with gq, I can see that dn: uid=juser,ou=people,dc=foo,dc=com consists of attributes which come from the object classes: posixAccount, shadowAccount, and inetOrgPerson. Is there an easy way within Net::LDAP to access a list of these attributes? I can get a list of attributes which have values, but I'd like to get a list of what's available, not only what is currently set. Thanks, -- Seeya, Paul GPG Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE If you're not having fun, you're not doing it right! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
