# javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user

**URL:** <https://discuss.elastic.co/t/javax-security-auth-login-loginexception-could-not-login-the-client-is-being-asked-for-a-password-but-the-kafka-client-code-does-not-currently-support-obtaining-a-password-from-the-user-not-available-to-garner-authentication-information-from-the-user/321723>\
**Category:** Elasticsearch\
**Created:** [December 21, 2022, 7:19am UTC](https://discuss.elastic.co/t/javax-security-auth-login-loginexception-could-not-login-the-client-is-being-asked-for-a-password-but-the-kafka-client-code-does-not-currently-support-obtaining-a-password-from-the-user-not-available-to-garner-authentication-information-from-the-user/321723 "2022-12-21T07:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balaganesh\_G](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balaganesh_g/32/100648_2.png) [@Balaganesh\_G](https://discuss.elastic.co/u/Balaganesh_G)\
**Post date:** [December 21, 2022, 7:19am UTC](https://discuss.elastic.co/t/javax-security-auth-login-loginexception-could-not-login-the-client-is-being-asked-for-a-password-but-the-kafka-client-code-does-not-currently-support-obtaining-a-password-from-the-user-not-available-to-garner-authentication-information-from-the-user/321723/1 "2022-12-21T07:19:49Z")

</div>

Hi Team,

I have using logstash 8.3.3 and migirated to new Logstash 8.5.3 facing below error.

javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user

KafkaClient {  
com.sun.security.auth.module.Krb5LoginModule required  
useKeyTab=true  
storeKey=true  
serviceName="kafka"  
[principal="sns-susis-@demo.com](mailto:principal=%22sns-susis-@demo.com)"  
keyTab="home/Ijbab/conf-ahv.keytab"; //provide path for keytab  
};

Client {  
com.sun.security.auth.module.Krb5LoginModule required  
useKeyTab=true  
storeKey=true  
serviceName="zookeeper";  
};

input{  
file {  
path =\> ["home/Ijbab/logs.log"]  
sincedb\_path =\> "home/Ijbab/app"  
codec =\> "json"  
start\_position =\> "beginning"

```
	}

```

}

output {  
stdout {codec =\> "json"}  
kafka {  
bootstrap\_servers =\> "X.X.X.X:X.X.X.X, X.X.X.X:X.X.X.X"  
topic\_id =\> "test\_mycloud"  
codec =\> "json"  
security\_protocol =\> "SASL\_PLAINTEXT"  
sasl\_kerberos\_service\_name =\> "kafka"  
jaas\_path =\> "home/Ijbab/app/kafka-jaas.conf"  
kerberos\_config =\>"home/Ijbab/appkrb5.conf"  
}  
}

Can you please help with the fix ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 18, 2023, 7:19am UTC](https://discuss.elastic.co/t/javax-security-auth-login-loginexception-could-not-login-the-client-is-being-asked-for-a-password-but-the-kafka-client-code-does-not-currently-support-obtaining-a-password-from-the-user-not-available-to-garner-authentication-information-from-the-user/321723/2 "2023-01-18T07:19:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
