xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPRebind.h (revision 53d1339bf7f9c7367b35a9e1ebe693f9b047a47b)
1 /*	$NetBSD: LDAPRebind.h,v 1.2 2020/08/11 13:15:34 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2020 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 mechnism 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:
24         virtual ~LDAPRebind() {}
25         virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname,
26                 int port) const = 0;
27 };
28 #endif //LDAP_REBIND_H
29 
30