14 #ifndef WS_LDAP_CONNECTOR_H__
15 #define WS_LDAP_CONNECTOR_H__
21 #include <gdcore/gdLdap.h>
46 int authentify(
const std::string& uid,
const std::string& pass =
"",
const std::string& ip =
"");
bool ipValid(std::string ip)
return true or false whether the ip is valid (ie match the mask in the configuration file ...
int authentify(const std::string &uid, const std::string &pass="", const std::string &ip="")
authenticate the user by retrieving his info from ldap
Ldap authentication module.
std::set< std::string > getUserGroups()
get the groups of the user
std::set< std::string > m_allGroups
WsGlobalProperties * m_properties
std::string getSurname()
Get the surname of the user.
void WsLdapAuthInit(void) __attribute__((constructor))
Abstract class for authentification.
std::string getUid()
Get the uid of the user.
std::string getFirstName()
Get the first name of the user.
std::set< std::string > getAllGroups()
get all the groups in the ldap
std::string getEmail()
Get the email of the user.
WsLdapAuth * buildModule()
std::set< std::string > m_groups