Ldap authentication module.
More...
#include <WsLdapAuth.h>
|
| bool | ipValid (std::string ip) |
| | return true or false whether the ip is valid (ie match the mask in the configuration file More...
|
| |
Ldap authentication module.
Definition at line 28 of file WsLdapAuth.h.
| Enumerator |
|---|
| notLoaded |
|
| loaded |
|
| onError |
|
Definition at line 30 of file WsLdapAuth.h.
| WsLdapAuth::WsLdapAuth |
( |
| ) |
|
| int WsLdapAuth::authentify |
( |
const std::string & |
uid, |
|
|
const std::string & |
pass = "", |
|
|
const std::string & |
ip = "" |
|
) |
| |
|
virtual |
authenticate the user by retrieving his info from ldap
- Parameters
-
| uid | the uid of the user |
| pass | the password of the user |
| ip | the ip of the user |
- Returns
- SUCCESS or FAILURE
Implements WsAbstractAuth.
Definition at line 36 of file WsLdapAuth.cpp.
| set< string > WsLdapAuth::getAllGroups |
( |
| ) |
|
|
virtual |
| string WsLdapAuth::getEmail |
( |
| ) |
|
|
virtual |
| string WsLdapAuth::getFirstName |
( |
| ) |
|
|
virtual |
| string WsLdapAuth::getSurname |
( |
| ) |
|
|
virtual |
| string WsLdapAuth::getUid |
( |
| ) |
|
|
virtual |
| set< string > WsLdapAuth::getUserGroups |
( |
| ) |
|
|
virtual |
| bool WsLdapAuth::ipValid |
( |
std::string |
ip | ) |
|
|
protected |
return true or false whether the ip is valid (ie match the mask in the configuration file
- Parameters
-
Definition at line 220 of file WsLdapAuth.cpp.
| std::set<std::string> WsLdapAuth::m_allGroups |
|
private |
| std::string WsLdapAuth::m_dn |
|
private |
| std::string WsLdapAuth::m_email |
|
private |
| std::set<std::string> WsLdapAuth::m_groups |
|
private |
| std::string WsLdapAuth::m_ip |
|
private |
| std::string WsLdapAuth::m_name |
|
private |
| std::string WsLdapAuth::m_surname |
|
private |
| std::string WsLdapAuth::m_uid |
|
private |
The documentation for this class was generated from the following files:
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/WsAuthModules/LdapAuth/src/WsLdapAuth.h
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/WsAuthModules/LdapAuth/src/WsLdapAuth.cpp