Hello. I want to find one environmental variable "...
# troubleshoot
a
Hello. I want to find one environmental variable "auth.jaas.enabled" to change it to be true. I wonder where it is. Since I use docker quickstart, I found the directory /plugins/auth/resources is empty. I really appreicate it if anyone can help me. (I found it in the application configuration of the container "datahub-frontend_react", but it is meaningless to change in the container since it automatically changed to false if I run datahub quickstart.)
m
Hi, I think there is no such variable per se, what you might need to do would be to specify it in the
JAVA_OPTS
env variable (or
JDK_JAVA_OPTIONS
for the specific case of front container with versions that have JDK 11 (0.8.45 forward, if I am not mistaken)) Out of curiosity, what do you need that variable for?
a
@microscopic-mechanic-13766 Thanks for your reply. I want to introduce LDAP-based authentication of ui of docker quickstart. I made my own jaas.conf file and run it. But it fails to login using our AD account stored in our company's ldap server. I found some threads in this slack where someone had a similar problem which I was faced with. The answer says "Did you change the environment variable "AUTH_JAAS_ENABLED" to be true?" That's why I want to find it to try again after changing it true.
m
Hello again, so the files you might be interested in are
/datahub-fronted/conf/application.conf
(file in which all the possible variables that can be written are) and
/datahub-fron/conf/jaas.conf
. Inside the former file, you will be able to see these variables that I think they might be what you are looking for:
Copy code
auth.jaas.enabled = ${?AUTH_JAAS_ENABLED}
auth.native.enabled = ${?AUTH_NATIVE_ENABLED}
I also mentioned the jaas.conf as I think you might need to overwrite this file with your configuration
a
@microscopic-mechanic-13766 That's exactly right. Actually, my question comes from that file. I've already found out it in the container. Also, that's why I want to find where "AUTH_JAAS_ENBALED" is. I guess it may be false in default setting. If default is true, the reason of failure may be another.
m
As it is an optional variable, I would bet that it is defaulted to false (although I am not 100% sure). I would just try to either put that variable (
AUTH_JAAS_ENABLED
in case you haven't already) or modify it manually in the file in case the env variable isn't "catched"
a
You mean, add those variable to the environment of the container datahub-frontend-react located in the .datahub/quickstart/docker-compose.yml. Is it right?
m
That is right, yeah
a
Though I inserted environment variables, I failed to log in. Actually, our company provides bind dn and its password. Maybe I should add this to jaas.conf file but don't know the configuration well.