2008-03-28 07:05:10 -04:00
|
|
|
// $OpenLDAP$
|
2000-10-03 14:50:44 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_REBIND_H
|
|
|
|
|
#define LDAP_REBIND_H
|
|
|
|
|
|
|
|
|
|
#include <string>
|
2001-03-15 06:07:58 -05:00
|
|
|
#include <LDAPRebindAuth.h>
|
2000-10-03 14:50:44 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Just an abstract class to provide a mechnism for rebind to another
|
|
|
|
|
* server when chasing referrals. Clients have to implement a class
|
|
|
|
|
* derived from this. To use authentication other than anonymous for
|
|
|
|
|
* referral chasing
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class LDAPRebind{
|
|
|
|
|
public:
|
|
|
|
|
virtual ~LDAPRebind() {}
|
2001-09-28 12:39:58 -04:00
|
|
|
virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname,
|
2000-10-03 14:50:44 -04:00
|
|
|
int port) const = 0;
|
|
|
|
|
};
|
|
|
|
|
#endif //LDAP_REBIND_H
|
|
|
|
|
|