Added a way to create the admin account linked to the PAM backend password authentication. ref #65
This commit is contained in:
@@ -164,6 +164,7 @@ checkUserPassword(const std::string& loginName, const std::string& password)
|
||||
{
|
||||
try
|
||||
{
|
||||
LMS_LOG(AUTH, DEBUG) << "Checking PAM password for user '" << loginName << "'";
|
||||
PAMContext pamContext {loginName};
|
||||
|
||||
pamContext.authenticate(password);
|
||||
|
||||
Reference in New Issue
Block a user