Java Kerberos authentication seems to work, still gets rejected

前端 未结 2 1264
别那么骄傲
别那么骄傲 2021-02-15 05:28

I\'ve got a Java client app and a Java server app, and I\'m trying to authenticate to the server via Kerberos. The client basically uses http-components and SPNEGO to make a HTT

2条回答
  •  旧巷少年郎
    2021-02-15 06:12

    Your Kerberos configuration might be completely fine. The 401 messsage means that the authentication itself probably went fine. However, i suspect the webapp only allows users if they are assigned a Role. The SPNego mechanism does not assign such role out-of-the-box. You still need to configure a Realm that performs the mapping.

    See also my question on the Tomcat users mailing list. https://mail-archives.apache.org/mod_mbox/tomcat-users/201210.mbox/%3C5075ECC6.8060501@christopherschultz.net%3E

提交回复
热议问题