3 * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_REBIND_AUTH_H
8 #define LDAP_REBIND_AUTH_H
13 * This class represent Authenication information for the case that the
14 * library is chasing referrals.
16 * The LDAPRebind::getRebindAuth() method returns an object of this type.
17 * And the library uses it to authentication to the destination server of a
19 * @note currently only SIMPLE authentication is supported by the library
24 * @param dn The DN that should be used for the authentication
25 * @param pwd The password that belongs to the DN
27 LDAPRebindAuth(const std::string& dn="", const std::string& pwd="");
32 LDAPRebindAuth(const LDAPRebindAuth& lra);
37 virtual ~LDAPRebindAuth();
40 * @return The DN that was set in the constructor
42 const std::string& getDN() const;
45 * @return The password that was set in the constructor
47 const std::string& getPassword() const;
51 std::string m_password;
54 #endif //LDAP_REBIND_AUTH_H