glamorous-wire-83850
10/12/2022, 8:09 AMextraEnvs:
- name: AUTH_JAAS_ENABLED
value: "true"
- name: JAVA_OPTS
value: |-
-Djava.security.auth.login.config=/datahub-frontend/conf/custom/jaas.conf
extraVolumes:
- name: jaas-conf-volume
configMap:
name: jaas-conf
extraVolumeMounts:
- name: jaas-conf-volume
mountPath: datahub-frontend/conf/custom/jaas.conf
subPath: jaas.conf
readOnly: true
2.the Jaas file:
WHZ-Authentication {
com.sun.security.auth.module.LdapLoginModule sufficient
userProvider="<ldap://server.com.tr:389/CN=test,OU=test2,OU=SERVICE> USERS,DC=infoshop,DC=com,DC=tr"
authIdentity="{USERNAME}"
java.naming.security.authentication="simple"
debug="true"
useSSL="true";
};bulky-electrician-72362
10/12/2022, 2:35 PMglamorous-wire-83850
10/12/2022, 6:15 PMglamorous-wire-83850
10/13/2022, 7:20 AMERROR application - The submitted callback is of type: class javax.security.auth.callback.NameCallback : javax.security.auth.callback.NameCallback@25e7e6bf
11:51:06 [application-akka.actor.default-dispatcher-41] ERROR application - The submitted callback is of type: class javax.security.auth.callback.PasswordCallback : javax.security.auth.callback.PasswordCallback@1880a29c
[LdapLoginModule] attempting to authenticate user: ogencer
[LdapLoginModule] authentication failed
[LdapLoginModule] aborted authenticationfierce-baker-1392
02/11/2023, 11:19 AMcareful-lunch-53644
03/12/2023, 7:50 AMfierce-baker-1392
03/12/2023, 9:27 AMHZ-Authentication {
org.eclipse.jetty.jaas.spi.PropertyFileLoginModule sufficient debug="true" file="/datahub-frontend/conf/user.props";
com.sun.security.auth.module.LdapLoginModule REQUIRED
userProvider="<ldap://xxx.xxx.net:389/dc=xxx,dc=net>"
java.naming.security.authentication="simple"
java.naming.security.principal="cn=readonly,dc=xxx,dc=net"
userFilter="(&(|(samAccountName={USERNAME})(userPrincipalName={USERNAME})(cn={USERNAME}))(objectClass=user))"
useSSL=false
java.naming.security.credentials="Password"
debug=false;
};
@careful-lunch-53644 Please refer this config. If you deployed on k8s,then you can mount this file on the datahub-frontend pod.careful-lunch-53644
03/14/2023, 9:08 AMfierce-baker-1392
03/14/2023, 9:17 AMcareful-lunch-53644
03/14/2023, 9:46 AMcareful-lunch-53644
03/14/2023, 9:53 AMfierce-baker-1392
03/14/2023, 10:20 AM