| 1 |
// $OpenLDAP$ |
| 2 |
/* |
| 3 |
* Copyright 2000-2024 The OpenLDAP Foundation, All Rights Reserved. |
| 4 |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef LDAP_REBIND_H |
| 8 |
#define LDAP_REBIND_H |
| 9 |
|
| 10 |
#include <string> |
| 11 |
#include <LDAPRebindAuth.h> |
| 12 |
|
| 13 |
/** |
| 14 |
* Just an abstract class to provide a mechanism for rebind to another |
| 15 |
* server when chasing referrals. Clients have to implement a class |
| 16 |
* derived from this. To use authentication other than anonymous for |
| 17 |
* referral chasing |
| 18 |
*/ |
| 19 |
|
| 20 |
class LDAPRebind{ |
| 21 |
public: |
| 22 |
virtual ~LDAPRebind() {} |
| 23 |
virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname, |
| 24 |
int port) const = 0; |
| 25 |
}; |
| 26 |
#endif //LDAP_REBIND_H |
| 27 |
|