Jetty Auth Basic - Failed

49 views
Skip to first unread message

Miller Daniel Quilindo Velasco

unread,
Mar 10, 2023, 12:49:27 AM3/10/23
to KairosDB
Hi, i using v1.3.0, when trying implements authBasic from file kairosdb.conf not working

Screenshot from 2023-03-10 00-40-40.png
Also, it never recognizes the configuration file with extension ".conf"

Screenshot from 2023-03-10 00-45-33.png
I tried absolute and relative paths but it never worked. Please help me.
Screenshot from 2023-03-10 00-45-53.png

Thank you

Brian Hawkins

unread,
Mar 17, 2023, 9:21:09 AM3/17/23
to KairosDB
The bit you are missing is -Djava.security.auth.login.config=/opt/kairosdb/conf/auth/basicAuth.conf

Put that to the JVM_OPTS in kairosdb-env.sh 
like this:

JAVA_OPTS="$JAVA_OPTS -Djava.security.auth.login.config=/opt/kairosdb/conf/auth/basicAuth.conf"

Assuming that is where your conf file is located.  This was in the documentation that was linked but it looks like the links have moved.  I now even remember having a conversation with the engineer that added this feature and he told me it was in the linked docs and it bothered me just a bit at the time.  Obviously it should have bothered me more.  I'll fix the docs in the kairosdb.conf file.

Brian
Reply all
Reply to author
Forward
0 new messages