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

checkPassword should fail if service doesn't exist? #2

Open
sztamas opened this issue May 11, 2015 · 0 comments
Open

checkPassword should fail if service doesn't exist? #2

sztamas opened this issue May 11, 2015 · 0 comments

Comments

@sztamas
Copy link

sztamas commented May 11, 2015

The checkPassword documentation says:

"This function provides a simple way to verify that a user name and password match
those normally used for Kerberos authentication. It does this by checking that the
supplied user name and password can be used to get a ticket for the supplied service.
If the user name does not contain a realm, then the default realm supplied is used.
..."

Shouldn't this function return False if the service doesn't exist?

>>> import kerberos
>>> kerberos.checkPassword('demo', 'demo', '', 'DOCKERDOMAIN')
True
>>> kerberos.checkPassword('demo', 'demo', 'doesNotExist/kerberos.dockerdomain', 'DOCKERDOMAIN')
True

I would expect the second call to return False.
Is this a bug or am I wrong?

Thanks

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