Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access local administrator account #167

Open
prakashkumar264 opened this issue Jun 25, 2021 · 0 comments
Open

Unable to access local administrator account #167

prakashkumar264 opened this issue Jun 25, 2021 · 0 comments

Comments

@prakashkumar264
Copy link

I am trying to develop my own plugin in pGina and i followed this steps till authenticateUser http://pgina.org/docs/v3.0/plugins.html

public BooleanResult AuthenticateUser(SessionProperties properties)
{
UserInformation userInfo = properties.GetTrackedSingle();

if (userInfo.Username.Contains("hello") )
{
    // Successful authentication
    return new BooleanResult() { Success = false, Message="Login not allowed"};
}
// Authentication failure
return new BooleanResult() { Success = true };

}
So in this I modified if any user with username hello should be denied entry. I have a local admin account on my win 10 with name:hello. So in pgina application, in simulation it denies entry but when I try with windows login, it allows hello to login. But really it should deny the entry. Am i missing something? I want any local user account with string "hello" should be denied entry even if the password is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant