]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPBindRequest.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPBindRequest.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_BIND_REQUEST_H
7 #define LDAP_BIND_REQUEST_H
8
9 #include "LDAPRequest.h"
10
11 class LDAPBindRequest : LDAPRequest {
12     private:
13         char *m_dn;
14         BerValue *m_cred;
15         char *m_mech;
16
17     public:
18         LDAPBindRequest(const LDAPBindRequest& req);
19         //just for simple authentication
20         LDAPBindRequest(const char *dn, const char *passwd, 
21                 const LDAPAsynConnection *connect, const LDAPConstraints *cons, 
22                 bool isReferral=false);
23         virtual ~LDAPBindRequest();
24         virtual LDAPMessageQueue *sendRequest();
25         virtual LDAPRequest* followReferral(LDAPUrlList *urls);
26 };
27 #endif //LDAP_BIND_REQUEST_H
28