1/*	$NetBSD: LDAPRebind.h,v 1.1.1.2 2010/03/08 02:14:14 lukem Exp $	*/
2
3// OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPRebind.h,v 1.3.10.1 2008/04/14 23:09:26 quanah Exp
4/*
5 * Copyright 2000, 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
22class 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