<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem configuration spnego tomcat 8 java 8 redhat 8 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496538#M2002868</link>
    <description>&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;I are right the error is&lt;/P&gt;&lt;P&gt;2022-03-04 20:37:11,470 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]- Exception starting filter SpnegoHttpFilter&lt;/P&gt;&lt;P&gt;javax.servlet.ServletException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: Empty nameString not allowed&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:179)&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:402)&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:477)&lt;/P&gt;&lt;P&gt;	at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:651)&lt;/P&gt;&lt;P&gt;	at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 20:51:36 GMT</pubDate>
    <dc:creator>former_member905929</dc:creator>
    <dc:date>2022-03-04T20:51:36Z</dc:date>
    <item>
      <title>Problem configuration spnego tomcat 8 java 8 redhat 8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496536#M2002866</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
  &lt;P&gt;I have redhat 8 tomcat 8 java 8 in a openshift&lt;/P&gt;
  &lt;P&gt;We created a keytab ktpass -out c:\tomcat.keytab -mapuser XXXXXXXXX@cartoons.com -princ HTTP/web-denuncias-uatf2.apps.c1-ocp.altemista.cartoons.com@cartoons.com -pass XXXXXXXXXXXXXXXXXXXXXX KRB5_NT_PRINCIPAL -crypto AES128-SHA1 -kvno 0&lt;/P&gt;
  &lt;P&gt; In the pod we have the next configuration: krb5.conf as config map &lt;/P&gt;
  &lt;P&gt;[libdefaults] &lt;/P&gt;
  &lt;P&gt;default_realm = CARTOONS.COM &lt;/P&gt;
  &lt;P&gt;default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes256-cts aes128-cts-hmac-sha1-96 aes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc arcfour-hmac-md5 &lt;/P&gt;
  &lt;P&gt;arcfour-hmac default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes256-cts aes128-cts-hmac-sha1-96 aes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc arcfour-hmac-md5&lt;/P&gt;
  &lt;P&gt; arcfour-hmac permitted_enctypes = aes256-cts-hmac-sha1-96 aes256-cts aes128-cts-hmac-sha1-96 caes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc arcfour-hmac-md5 arcfour-hmac &lt;/P&gt;
  &lt;P&gt;[realms] &lt;/P&gt;
  &lt;P&gt;LOCAL.NETWORK = { kdc = cartoons.com default_domain = CARTOONS.COM } &lt;/P&gt;
  &lt;P&gt;[domain_realm] &lt;/P&gt;
  &lt;P&gt;.LOCAL.NETWORK = CARTOONS.COM&lt;/P&gt;
  &lt;P&gt;login.conf as config map &lt;/P&gt;
  &lt;P&gt; spnego-client &lt;/P&gt;
  &lt;P&gt;{ com.sun.security.auth.module.Krb5LoginModule required; };&lt;/P&gt;
  &lt;P&gt; spnego-server&lt;/P&gt;
  &lt;P&gt; { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true useTicketCache=true refreshKrb5Config=true storeKey=true isInitiator=false doNotPrompt=true keyTab="/etc/krb5.keytab/..data/krb5.keytab" principal=""; };&lt;/P&gt;
  &lt;P&gt; web.xml section spengo &lt;/P&gt;
  &lt;P&gt;And we get the error &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;code&amp;gt;&amp;lt;filter&amp;gt;
    &amp;lt;filter-name&amp;gt;SpnegoHttpFilter&amp;lt;/filter-name&amp;gt;
    &amp;lt;filter-class&amp;gt;net.sourceforge.spnego.SpnegoHttpFilter&amp;lt;/filter-class&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.allow.basic&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;false&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.allow.localhost&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.allow.unsecure.basic&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.login.client.module&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;spnego-client&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.krb5.conf&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;/etc/krb5.conf&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.login.conf&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;/usr/local/tomcat/conf/login.conf&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.preauth.username&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;usr_tomcat_denun&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.preauth.password&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;B47415VF92a4Ae6a9ee4919d7c9_3Q19&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.login.server.module&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;spnego-server&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.prompt.ntlm&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;false&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;spnego.logger.level&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;1&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
 &amp;lt;/filter&amp;gt;

 &amp;lt;filter-mapping&amp;gt;
      &amp;lt;filter-name&amp;gt;SpnegoHttpFilter&amp;lt;/filter-name&amp;gt;
      &amp;lt;url-pattern&amp;gt;/*.jsp&amp;lt;/url-pattern&amp;gt;
  &amp;lt;/filter-mapping&amp;gt;
Error:


2022-03-04 20:37:11,470 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]- Exception starting filter SpnegoHttpFilter
javax.servlet.ServletException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: Empty nameString not allowed
	at sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:179)
	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:402)
	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:477)
	at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:651)
	at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)
&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;P&gt;When the tomcat start I gives the error that Spnego HttpFitlter in wrong&lt;/P&gt;
  &lt;P&gt;But I have the same configuration in versions much older than these and It works fine&lt;/P&gt;
  &lt;P&gt;Can you help me, please&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496536#M2002866</guid>
      <dc:creator>former_member905929</dc:creator>
      <dc:date>2022-03-04T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuration spnego tomcat 8 java 8 redhat 8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496537#M2002867</link>
      <description>&lt;P&gt;I suggest you post exactly what the complete error message is. &lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496537#M2002867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-03-04T17:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuration spnego tomcat 8 java 8 redhat 8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496538#M2002868</link>
      <description>&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;I are right the error is&lt;/P&gt;&lt;P&gt;2022-03-04 20:37:11,470 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]- Exception starting filter SpnegoHttpFilter&lt;/P&gt;&lt;P&gt;javax.servlet.ServletException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: Empty nameString not allowed&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:179)&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:402)&lt;/P&gt;&lt;P&gt;	at sun.security.krb5.PrincipalName.&amp;lt;init&amp;gt;(PrincipalName.java:477)&lt;/P&gt;&lt;P&gt;	at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:651)&lt;/P&gt;&lt;P&gt;	at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 20:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496538#M2002868</guid>
      <dc:creator>former_member905929</dc:creator>
      <dc:date>2022-03-04T20:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuration spnego tomcat 8 java 8 redhat 8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496539#M2002869</link>
      <description>&lt;P&gt;Hello Dani,&lt;/P&gt;&lt;P&gt;In which of SAP's products is this used? Maybe you can add the respective tag to your question.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-configuration-spnego-tomcat-8-java-8-redhat-8/m-p/12496539#M2002869</guid>
      <dc:creator>Martina_Kirschenmann</dc:creator>
      <dc:date>2022-04-28T11:53:12Z</dc:date>
    </item>
  </channel>
</rss>

