14 #ifndef WS_LDAP_CONNECTOR_H__
15 #define WS_LDAP_CONNECTOR_H__
45 int authentify(
const std::string& uid,
const std::string& pass =
"",
const std::string& ip =
"");
WsBasicAuth()
Constructor.
std::string getEmail()
Get the email of the user.
std::set< std::string > getUserGroups()
get the groups of the user
bool ipValid(std::string ip)
return true or false whether the ip is valid (ie match the mask in the configuration file ...
WsBasicAuth * buildModule()
std::set< std::string > m_allGroups
WsGlobalProperties * m_properties
int authentify(const std::string &uid, const std::string &pass="", const std::string &ip="")
authenticate the user this function is a basic function and will authenticate any user and add the gr...
std::string getFirstName()
Get the first name of the user.
std::set< std::string > getAllGroups()
get all the groups in the ldap
std::set< std::string > m_groups
void WsBasicAuthInit(void) __attribute__((constructor))
std::string getSurname()
Get the surname of the user.
Basic authentication module.
Abstract class for authentification.
std::string getUid()
Get the uid of the user.