1 // $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPRebind.h,v 1.3.10.1 2008/04/14 23:09:26 quanah Exp $ 2 /* 3 * Copyright 2000, 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 mechnism 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 28