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

SSPI-backed JAAS LoginModule #773

Open
cebaa opened this issue Sep 8, 2019 · 4 comments
Open

SSPI-backed JAAS LoginModule #773

cebaa opened this issue Sep 8, 2019 · 4 comments

Comments

@cebaa
Copy link

cebaa commented Sep 8, 2019

The JAAS LoginModue that is currently provided does not use SSPI, only username and password. My impression is that the end goal of majority of the users using Waffle is a complete SSO, without the need to supply username and password. It would be good to have such a module implemented into Waffle.

@hazendaz
Copy link
Member

hazendaz commented Sep 8, 2019 via email

@cebaa
Copy link
Author

cebaa commented Sep 8, 2019

@hazendaz I might have missed the docs on this - do you have any pointers I can look at?

In case you are talking about WindowsAuthProviderImpl, is there a way to plug that in into WindowsLoginModule somehow?

@dblock
Copy link
Collaborator

dblock commented Sep 9, 2019

I wrote the JAAS module as a demo, mostly because I could and because that's how we originally tried to do Windows auth. We used to have code that checked whether a username/password was valid, then tried to enumerate user groups in Active Directory.

https://code.dblock.org/2010/05/24/windowsactive-directory-authentication-tomcat-jaas-w-waffle.html

This is actually a simple demonstration (as opposed to the Single Sign-On Negotiate/NTLM/Kerberos valve) of Waffle and is how we originally used it.

@dblock
Copy link
Collaborator

dblock commented Sep 9, 2019

Also I am pretty sure I tried to make a JAAS module that did SSO and failed. I don't remember why, but I suspect this is because it doesn't allow for any 2-step exchange, or a session or something like that, which is required for any successful SSO on Windows.

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

3 participants