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