-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
How to configure jaas.conf to use mysql backend authentication? #1286
Comments
The sample config provided in jaas.conf uses LDAP. I am sure there are other modules that use MySQL database (ex: https://developer.jboss.org/thread/42212). Could you try using this module or others available for your use case? |
I can set up an ldap server, but it would be nice to have some documentation on how to configure other authentication methods. I suppose that the purpose of adding the jaas feature is to use multiple authentication methods. |
Some links that may be useful |
I have configured an LDAP server now, and I have added it to the .env file in a docker container deployment. This is how it looks like: LDAPWHZ_LDAP_URL=ldap://172.17.0.1:389 When I do the docker-compose up I don't think that this configuration is taken up. I have the following in the logs when I try to login from the frontend UI: wherehows-frontend_1 | 2018/08/02 22:28:18 Received 200 from http://wherehows-elasticsearch:9200 |
Where am I supposed to add the ldap servr configuration in the docker deployment? Is it in the jaas.conf? But if I do it there, then how do I restart the server to have the configuration taken up? |
Yes, the ldap server is configured in jaas.conf. The error "No LoginModules configured for WHZ-Authentication" is probably because the app is not able to pick up this config file. Please try restarting your server. |
How do I restart the server inside the docker container? |
Using the standard docker commands? https://docs.docker.com/engine/reference/commandline/restart/ |
I'm getting that error too, and have tried restarting the container. Has this resolved for you, @fciannel? |
All, |
wherehows-frontend_1 | javax.naming.AuthenticationException: javax.security.auth.login.LoginException: No LoginModules configured for WHZ-Authentication |
Same problem. I'm using the docker compose version, does it make any difference? |
Same problem. javax.naming.AuthenticationException: javax.security.auth.login.LoginException: 没有为WHZ-Authentication配置 LoginModules |
Same problem here, after adding a user to the mysql database (not using LDAP), as explained in #874 . Some partial progress. Added this to the frontend docker file: (Got info from https://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html). Using a registerede user (again, #874), I can get through the auth, but gets " SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data
So, no dice there. LDAP still enabled - perhaps that needs to go? |
Above issue has been fixed? Shall we use only WHZ-Authentication { |
Please try tag v1.0.0 @sauravGit |
@tonglin0325 - could you provide an url for the branch/tag/something, in order to eliminate the potential for confusion (my end). Thanks in advance. |
git tag -l v0.0.1 git checkout v1.0.0 |
Thanks! That is on the main branch, then, I take it. |
Thank you @mbd-dbc-dk . Will try it. |
@mbd-dbc-dk : I tried inserting the records in users table. Still it not working mysql> select * from users; |
@sauravGit : To get a user into the local database, I used the method from #874:
Seems you have done the same(?), so not sure what the problem is. However, to get the frontend to use the passwordbased auth mechanism, I added
to the frontend Dockerfile. I was then able to get through the auth without LDAP, but then got an error (see above). I have not been able to test it further since then. Hoping to by the end of next month. |
The Insert together with the JAVA_OPTS mentioned by @mbd-dbc-dk worked. However, this is terrible from a workflow standpoint. Why do I have to build the dockerfile myself and why is there no default user or better let me create a user on first access? |
Dear issue owner, Thanks for your interest in WhereHows. We have recently announced DataHub which is the rebranding of WhereHows. LinkedIn improved the architecture of WhereHows and rebranded WhereHows into DataHub and replaced its metadata infrastructure in this direction. DataHub is a more advanced and improved metadata management product compared to WhereHows. Unfortunately, we have to stop supporting WhereHows to better focus on DataHub and offer more help to DataHub users. Therefore, we will drop all issues related to WhereHows and will not accept any contribution for it. Active development for DataHub has already started on Please check the Best, |
After a clean install of the docker container with the latest version, and inserting a user in the mysql database, I get this error when I try to login to the frontend ui.
Is there a way to configure the jaas.conf to use the mysql backend?
The text was updated successfully, but these errors were encountered: