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