2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_BIND_REQUEST_H
|
|
|
|
|
#define LDAP_BIND_REQUEST_H
|
|
|
|
|
|
|
|
|
|
#include "LDAPRequest.h"
|
|
|
|
|
|
|
|
|
|
class LDAPBindRequest : LDAPRequest {
|
|
|
|
|
private:
|
2000-10-03 14:25:34 -04:00
|
|
|
string m_dn;
|
|
|
|
|
string m_cred;
|
|
|
|
|
string m_mech;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
LDAPBindRequest(const LDAPBindRequest& req);
|
|
|
|
|
//just for simple authentication
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPBindRequest(const string&, const string& passwd,
|
|
|
|
|
LDAPAsynConnection *connect, const LDAPConstraints *cons,
|
2000-09-01 14:46:32 -04:00
|
|
|
bool isReferral=false);
|
|
|
|
|
virtual ~LDAPBindRequest();
|
|
|
|
|
virtual LDAPMessageQueue *sendRequest();
|
2000-10-03 14:25:34 -04:00
|
|
|
virtual LDAPRequest* followReferral(LDAPMsg* urls);
|
2000-09-01 14:46:32 -04:00
|
|
|
};
|
|
|
|
|
#endif //LDAP_BIND_REQUEST_H
|
|
|
|
|
|