openldap/contrib/ldapc++/src/LDAPRebindAuth.h

56 lines
1.4 KiB
C
Raw Normal View History

2008-03-28 07:05:10 -04:00
// $OpenLDAP$
/*
2024-03-26 15:45:07 -04:00
* Copyright 2000-2024 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#ifndef LDAP_REBIND_AUTH_H
#define LDAP_REBIND_AUTH_H
#include<string>
/**
ITS#8605 - spelling fixes * javascript * kernel * ldap * length * macros * maintained * manager * matching * maximum * mechanism * memory * method * mimic * minimum * modifiable * modifiers * modifying * multiple * necessary * normalized * objectclass * occurrence * occurring * offered * operation * original * overridden * parameter * permanent * preemptively * printable * protocol * provider * really * redistribution * referenced * refresh * regardless * registered * request * reserved * resource * response * sanity * separated * setconcurrency * should * specially * specifies * structure * structures * subordinates * substitution * succeed * successful * successfully * sudoers * sufficient * superiors * supported * synchronization * terminated * they're * through * traffic * transparent * unsigned * unsupported * version * absence * achieves * adamson * additional * address * against * appropriate * architecture * associated * async * attribute * authentication * authorized * auxiliary * available * begin * beginning * buffered * canonical * certificate * charray * check * class * compatibility * compilation * component * configurable * configuration * configure * conjunction * constraints * constructor * contained * containing * continued * control * convenience * correspond * credentials * cyrillic * database * definitions * deloldrdn * dereferencing * destroy * distinguish * documentation * emmanuel * enabled * entry * enumerated * everything * exhaustive * existence * existing * explicitly * extract * fallthru * fashion * february * finally * function * generically * groupname * happened * implementation * including * initialization * initializes * insensitive * instantiated * instantiation * integral * internal * iterate
2017-02-26 02:49:31 -05:00
* This class represent Authentication information for the case that the
* library is chasing referrals.
*
* The LDAPRebind::getRebindAuth() method returns an object of this type.
* And the library uses it to authentication to the destination server of a
* referral.
* @note currently only SIMPLE authentication is supported by the library
*/
class LDAPRebindAuth{
public:
/**
* @param dn The DN that should be used for the authentication
* @param pwd The password that belongs to the DN
*/
LDAPRebindAuth(const std::string& dn="", const std::string& pwd="");
/**
* Copy-constructor
*/
LDAPRebindAuth(const LDAPRebindAuth& lra);
/**
* Destructor
*/
virtual ~LDAPRebindAuth();
/**
* @return The DN that was set in the constructor
*/
const std::string& getDN() const;
/**
* @return The password that was set in the constructor
*/
const std::string& getPassword() const;
private:
std::string m_dn;
std::string m_password;
};
#endif //LDAP_REBIND_AUTH_H