mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-18 12:54:09 -05:00
27 lines
645 B
C
27 lines
645 B
C
|
|
/*
|
||
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
||
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef LDAP_REBIND_H
|
||
|
|
#define LDAP_REBIND_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include "LDAPRebindAuth.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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() {}
|
||
|
|
virtual LDAPRebindAuth* getRebindAuth(const string& hostname,
|
||
|
|
int port) const = 0;
|
||
|
|
};
|
||
|
|
#endif //LDAP_REBIND_H
|
||
|
|
|