#include <Authn.h>
◆ BuiltInAuthn()
dmlite::BuiltInAuthn::BuiltInAuthn |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
◆ ~BuiltInAuthn()
dmlite::BuiltInAuthn::~BuiltInAuthn |
( |
| ) |
|
◆ createSecurityContext() [1/2]
Create a security context from the credentials.
- Parameters
-
cred | The security credentials. |
- Returns
- A newly created SecurityContext.
Reimplemented from dmlite::Authn.
◆ createSecurityContext() [2/2]
◆ deleteGroup()
void dmlite::BuiltInAuthn::deleteGroup |
( |
const std::string & |
groupName | ) |
|
|
virtual |
◆ deleteUser()
void dmlite::BuiltInAuthn::deleteUser |
( |
const std::string & |
userName | ) |
|
|
virtual |
◆ getGroup() [1/3]
GroupInfo dmlite::BuiltInAuthn::getGroup |
( |
gid_t |
gid | ) |
|
◆ getGroup() [2/3]
GroupInfo dmlite::BuiltInAuthn::getGroup |
( |
const std::string & |
groupName | ) |
|
|
virtual |
Get a specific group.
- Parameters
-
- Returns
- The group.
Reimplemented from dmlite::Authn.
◆ getGroup() [3/3]
GroupInfo dmlite::BuiltInAuthn::getGroup |
( |
const std::string & |
key, |
|
|
const boost::any & |
value |
|
) |
| |
|
virtual |
Get a specific group using an alternative key.
- Parameters
-
key | The key name. |
value | They value to search for. |
- Returns
- The group.
- Note
- The implementation will throw an exception if the field can not be used as key.
Reimplemented from dmlite::Authn.
◆ getGroups()
std::vector<GroupInfo> dmlite::BuiltInAuthn::getGroups |
( |
void |
| ) |
|
|
virtual |
◆ getIdMap()
void dmlite::BuiltInAuthn::getIdMap |
( |
const std::string & |
userName, |
|
|
const std::vector< std::string > & |
groupNames, |
|
|
UserInfo * |
user, |
|
|
std::vector< GroupInfo > * |
groups |
|
) |
| |
|
virtual |
Get the mapping of a user/group. Additionaly, new users and groups MAY be created by the implementation.
- Parameters
-
userName | The user name. |
groupNames | The different groups. Can be empty. |
user | Pointer to an UserInfo struct where to put the data. |
groups | Pointer to a vector where the group mapping will be put. |
- Note
- If groupNames is empty, grid mapfile will be used to retrieve the default group.
Reimplemented from dmlite::Authn.
◆ getImplId()
std::string dmlite::BuiltInAuthn::getImplId |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
String ID of the user DB implementation.
Implements dmlite::Authn.
◆ getUser() [1/3]
UserInfo dmlite::BuiltInAuthn::getUser |
( |
const std::string & |
userName | ) |
|
|
virtual |
Get a specific user.
- Parameters
-
- Returns
- The user.
Reimplemented from dmlite::Authn.
◆ getUser() [2/3]
UserInfo dmlite::BuiltInAuthn::getUser |
( |
const std::string & |
userName, |
|
|
gid_t * |
group |
|
) |
| |
◆ getUser() [3/3]
UserInfo dmlite::BuiltInAuthn::getUser |
( |
const std::string & |
key, |
|
|
const boost::any & |
value |
|
) |
| |
|
virtual |
Get a specific user using an alternative key.
- Parameters
-
key | The key name. |
value | They value to search for. |
- Returns
- The user.
- Note
- The implementation will throw an exception if the field can not be used as key.
Reimplemented from dmlite::Authn.
◆ getUsers()
std::vector<UserInfo> dmlite::BuiltInAuthn::getUsers |
( |
void |
| ) |
|
|
virtual |
◆ newGroup()
GroupInfo dmlite::BuiltInAuthn::newGroup |
( |
const std::string & |
groupName | ) |
|
|
virtual |
Create a new group.
- Parameters
-
- Returns
- The new group.
Reimplemented from dmlite::Authn.
◆ newUser()
UserInfo dmlite::BuiltInAuthn::newUser |
( |
const std::string & |
userName | ) |
|
|
virtual |
Create a new user.
- Parameters
-
- Returns
- The new user.
Reimplemented from dmlite::Authn.
◆ updateGroup()
void dmlite::BuiltInAuthn::updateGroup |
( |
const GroupInfo & |
group | ) |
|
|
virtual |
Update group info. 'name' identify uniquely the group.
- Parameters
-
group | The group metadata to update. |
Reimplemented from dmlite::Authn.
◆ updateUser()
void dmlite::BuiltInAuthn::updateUser |
( |
const UserInfo & |
user | ) |
|
|
virtual |
Update user info. 'name' identify uniquely the user.
- Parameters
-
user | The user metadata to update. |
Reimplemented from dmlite::Authn.
◆ nobody_
std::string dmlite::BuiltInAuthn::nobody_ |
|
private |
◆ nogroup_
std::string dmlite::BuiltInAuthn::nogroup_ |
|
private |
The documentation for this class was generated from the following file: