Yep you will do something like

o ldap_init
o ldap_bind_s  (or alternatively ldap_simple_bind_s since rootdse can be
hit with anonymous access)
o ldap_search_s
        search base: NULL
        search filter: (objectclass=*)
        search scope: LDAP_SCOPE_BASE

Then simply enumerate through the returned values or if you know
specific ones you want pull them directly. Gil's book will walk you
through this very simply and is a good reference. 

  joe


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Reva S
Sent: Monday, June 30, 2003 6:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP API


Joe,
Yes. It is using C on Windows platform.
I'm trying to read all attribute values for RootDSE object.
I guess I should use ldap_search.
Thanks for the book name.



>From: "Joe" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [ActiveDir] LDAP API
>Date: Sun, 29 Jun 2003 23:12:16 -0400
>
>I am sure there are several on this list that know how to.
>
>Could you give specifics on how you are trying to do it. Platform, 
>Language, etc.  Probably best to start that way versus guessing what 
>you are able to do or need to do.
>
>If c/c++ on Windows I highly recommend picking up Active Directory 
>Programming by Gil Kirkpatrick.
>
>   joe
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Reva S
>Sent: Sunday, June 29, 2003 6:31 PM
>To: [EMAIL PROTECTED]
>Subject: [ActiveDir] LDAP API
>
>
>
>Hi,
>    Does anyone know how to bind to RootDSE object of a server and get 
>all attribute values using LDAP APIs?
>Thanks,
>Reva
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE* 
>http://join.msn.com/?page=features/junkmail
>
>List info   : http://www.activedir.org/mail_list.htm
>List FAQ    : http://www.activedir.org/list_faq.htm
>List archive: 
>http://www.mail-archive.com/activedir%40mail.activedir.org/
>
>List info   : http://www.activedir.org/mail_list.htm
>List FAQ    : http://www.activedir.org/list_faq.htm
>List archive: 
>http://www.mail-archive.com/activedir%40mail.activedir.org/

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to