From 7731832751ab9f3c6ddeb66f186d3d7fa1934a6d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 13:11:40 +0200 Subject: Adding upstream version 2.4.57+dfsg. Signed-off-by: Daniel Baumann --- contrib/ldapc++/src/LDAPRebind.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 contrib/ldapc++/src/LDAPRebind.h (limited to 'contrib/ldapc++/src/LDAPRebind.h') diff --git a/contrib/ldapc++/src/LDAPRebind.h b/contrib/ldapc++/src/LDAPRebind.h new file mode 100644 index 0000000..1db7b46 --- /dev/null +++ b/contrib/ldapc++/src/LDAPRebind.h @@ -0,0 +1,27 @@ +// $OpenLDAP$ +/* + * Copyright 2000-2021 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + +#ifndef LDAP_REBIND_H +#define LDAP_REBIND_H + +#include +#include + +/** + * 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 std::string& hostname, + int port) const = 0; +}; +#endif //LDAP_REBIND_H + -- cgit v1.2.3