Assuming OpenLDAP is being used you can try:

This page starts you on the OpenLDAP API, as would `man 3 ldap`
http://www.openldap.org/software/man.cgi?query=ldap

Then you'll write something similar to:

#include <ldap.h>

LDAP lh;

lh = ldap_open("ldap_server", port);
ldap_bind(lh, who, cred, method);
ldap_search_st(lh, base, scope, filter, attrs, attrsonly, result);
ldap_result(lh, msgid, all, timeout, result);

YMMV

/B


----- Original Message -----
From: "史绪良" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 17:39
Subject: Re: helphelp


> solaris gcc!
>
>
>
> ----- Original Message -----
> From: "David Busby" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 15, 2003 9:26 AM
> Subject: Re: helphelp
>
>
> > Source code in what language?
> > C?
> > C++?
> > PERL?
> > PHP?
> > Shell Script?
> > VB?
> > C#?
> > JAVA?
> > Python?
> >
> >
> > ----- Original Message -----
> > From: "史绪良" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 14, 2003 16:37
> > Subject: helphelp
> >
> >
> > > who have the source code example of connect ldap server??
> > >
> > >
> > >
> > > --
> > > redhat-list mailing list
> > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> >
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to