2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 #ifndef LDAP_REBIND_AUTH_H
7 #define LDAP_REBIND_AUTH_H
12 * This class represent Authenication information for the case that the
13 * library is chasing referrals.
15 * The LDAPRebind::getRebindAuth() method returns an object of this type.
16 * And the library uses it to authentication to the destination server of a
18 * @note currently only SIMPLE authentication is supported by the library
23 * @param dn The DN that should be used for the authentication
24 * @param pwd The password that belongs to the DN
26 LDAPRebindAuth(const std::string& dn="", const std::string& pwd="");
31 LDAPRebindAuth(const LDAPRebindAuth& lra);
36 virtual ~LDAPRebindAuth();
39 * @return The DN that was set in the constructor
41 const std::string& getDN() const;
44 * @return The password that was set in the constructor
46 const std::string& getPassword() const;
50 std::string m_password;
53 #endif //LDAP_REBIND_AUTH_H