<?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 Basic Authentication without using SPNEGO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847261#M1133654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;We have configured SPNEGO in our portal and everything is working fine but now we are going to use ESS and we want to protrect some iviews, like the payroll. We want to ask for the user and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have create a new template in the Visual Administrator-Security Provider with the following entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;com.sap.security.core.server.jaas.EvaluateTicketLoginModule - Sufficient - ume.configuration.active:true =yes&lt;/P&gt;&lt;P&gt;BasicPasswordLoginModule REQUISITE {}&lt;/P&gt;&lt;P&gt;com.sap.security.core.server.jaas.CreateTicketLoginModule SUFFICIENT {ume.configuration.active=yes}&lt;/P&gt;&lt;P&gt;With this we have modified the autschemes.xml adding the following&lt;/P&gt;&lt;P&gt;lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, we have assing this template to the iview.&lt;/P&gt;&lt;P&gt;Now, when we access to the iview a logon screen is poped up (this is&lt;/P&gt;&lt;P&gt;ok) but even if we put a correct user after 3 tries a 401 error is&lt;/P&gt;&lt;P&gt;shown (acces denied).&lt;/P&gt;&lt;P&gt;What can be the cause of this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have opened a message in OSS but this is all I have got of them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+the point is - when SSO Ticket is expired, it won't be 401-Not Authorized HTTP error,&lt;/P&gt;&lt;P&gt;with header set to Negotiate, but just a J2EE runtime exception. This&lt;/P&gt;&lt;P&gt;would allow the user's browser to renew the SSO Kerberos ticket, which&lt;/P&gt;&lt;P&gt;is how SPNEGO works.&lt;/P&gt;&lt;P&gt;The user who is checking it is Guest user, so therefore you are getting&lt;/P&gt;&lt;P&gt;it.+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They don't explain anything else because this issue isn't an error... "you know what I mean"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I send an extract of the trace created by the diagtool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/1228426945698"&gt;&lt;/A&gt;[Dec 4, 2008 10:42:25 PM  ] - CLIENT: 4649216, REQUEST: &lt;/P&gt;&lt;P&gt;{GET /irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fcom.sap.pct.erp.ess.bp_folder!2fcom.sap.pct.erp.ess.iviews!2fcom.sap.pct.erp.ess.benefits_payment!2fcom.sap.pct.erp.ess.area_benefits_payment?sap-config-mode=true HTTP/1.1 &lt;/P&gt;&lt;P&gt;Accept: &lt;STRONG&gt;/&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Accept-Language: es &lt;/P&gt;&lt;P&gt;UA-CPU: x86 &lt;/P&gt;&lt;P&gt;Accept-Encoding: gzip, deflate &lt;/P&gt;&lt;P&gt;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) &lt;/P&gt;&lt;P&gt;Host: portal.lubasa.es &lt;/P&gt;&lt;P&gt;Connection: Keep-Alive &lt;/P&gt;&lt;P&gt;Authorization: Basic cnVnYXJjaWE6bmFyYW5qYTM= &lt;/P&gt;&lt;P&gt;Cookie: j_authscheme=ESS_SCH; UserUniqueIdentifier=1228379971997; PortalAlias=portal; saplb_*=(J2EE3080100)3080151; JSESSIONID=(J2EE3080100)ID1055733851DB01046363213849042466End; MYSAPSSO2=AjExMDAgAA9wb3J0YWw6UlVHQVJDSUGIABNiYXNpY2F1dGhlbnRpY2F0aW9uAQAIUlVHQVJDSUECAAMwMDADAANFUFAEAAwyMDA4MTIwNDIxNDEFAAQAAAAMCgAIUlVHQVJDSUH/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA0VQUDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgxMjA0MjE0MTIxWjAjBgkqhkiG9w0BCQQxFgQU9r0lROP9xSeA5thGNqyvEbaqrWswCQYHKoZIzjgEAwQvMC0CFQCV6qIJ2ofjbF/iMd9vVFd6U72dVwIUD7ENuEa2ID7ZVYY1kwtrrbs8!OU=; SAPPORTALSDB0=urn%253Acom.sapportals.appdesigner%253Aframework%2526isPersonalizeMode%3Dfalse &lt;/P&gt;&lt;P&gt;n/a &lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/1228426945698"&gt;&lt;/A&gt;[Dec 4, 2008 10:42:25 PM  ] - CLIENT: 4649216, REPLY: &lt;/P&gt;&lt;P&gt;{HTTP/1.1 401 Unauthorized &lt;/P&gt;&lt;P&gt;Server: SAP J2EE Engine/7.00 &lt;/P&gt;&lt;P&gt;Content-Type: text/html;charset=ISO-8859-1 &lt;/P&gt;&lt;P&gt;WWW-Authenticate: Basic Realm=Authentication &lt;/P&gt;&lt;P&gt;Pragma: no-cache &lt;/P&gt;&lt;P&gt;Content-Encoding: gzip &lt;/P&gt;&lt;P&gt;Content-Length: 594 &lt;/P&gt;&lt;P&gt;Date: Thu, 04 Dec 2008 21:42:25 GMT &lt;/P&gt;&lt;P&gt;Set-Cookie: j_authscheme=ESS_SCH; Expires=Thu, 04-Dec-2008 21:42:35 GMT &lt;/P&gt;&lt;P&gt;n/a &lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advanced!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rubé&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2008 14:35:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-05T14:35:53Z</dc:date>
    <item>
      <title>Basic Authentication without using SPNEGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847261#M1133654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;We have configured SPNEGO in our portal and everything is working fine but now we are going to use ESS and we want to protrect some iviews, like the payroll. We want to ask for the user and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have create a new template in the Visual Administrator-Security Provider with the following entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;com.sap.security.core.server.jaas.EvaluateTicketLoginModule - Sufficient - ume.configuration.active:true =yes&lt;/P&gt;&lt;P&gt;BasicPasswordLoginModule REQUISITE {}&lt;/P&gt;&lt;P&gt;com.sap.security.core.server.jaas.CreateTicketLoginModule SUFFICIENT {ume.configuration.active=yes}&lt;/P&gt;&lt;P&gt;With this we have modified the autschemes.xml adding the following&lt;/P&gt;&lt;P&gt;lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, we have assing this template to the iview.&lt;/P&gt;&lt;P&gt;Now, when we access to the iview a logon screen is poped up (this is&lt;/P&gt;&lt;P&gt;ok) but even if we put a correct user after 3 tries a 401 error is&lt;/P&gt;&lt;P&gt;shown (acces denied).&lt;/P&gt;&lt;P&gt;What can be the cause of this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have opened a message in OSS but this is all I have got of them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+the point is - when SSO Ticket is expired, it won't be 401-Not Authorized HTTP error,&lt;/P&gt;&lt;P&gt;with header set to Negotiate, but just a J2EE runtime exception. This&lt;/P&gt;&lt;P&gt;would allow the user's browser to renew the SSO Kerberos ticket, which&lt;/P&gt;&lt;P&gt;is how SPNEGO works.&lt;/P&gt;&lt;P&gt;The user who is checking it is Guest user, so therefore you are getting&lt;/P&gt;&lt;P&gt;it.+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They don't explain anything else because this issue isn't an error... "you know what I mean"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I send an extract of the trace created by the diagtool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/1228426945698"&gt;&lt;/A&gt;[Dec 4, 2008 10:42:25 PM  ] - CLIENT: 4649216, REQUEST: &lt;/P&gt;&lt;P&gt;{GET /irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fcom.sap.pct.erp.ess.bp_folder!2fcom.sap.pct.erp.ess.iviews!2fcom.sap.pct.erp.ess.benefits_payment!2fcom.sap.pct.erp.ess.area_benefits_payment?sap-config-mode=true HTTP/1.1 &lt;/P&gt;&lt;P&gt;Accept: &lt;STRONG&gt;/&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Accept-Language: es &lt;/P&gt;&lt;P&gt;UA-CPU: x86 &lt;/P&gt;&lt;P&gt;Accept-Encoding: gzip, deflate &lt;/P&gt;&lt;P&gt;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) &lt;/P&gt;&lt;P&gt;Host: portal.lubasa.es &lt;/P&gt;&lt;P&gt;Connection: Keep-Alive &lt;/P&gt;&lt;P&gt;Authorization: Basic cnVnYXJjaWE6bmFyYW5qYTM= &lt;/P&gt;&lt;P&gt;Cookie: j_authscheme=ESS_SCH; UserUniqueIdentifier=1228379971997; PortalAlias=portal; saplb_*=(J2EE3080100)3080151; JSESSIONID=(J2EE3080100)ID1055733851DB01046363213849042466End; MYSAPSSO2=AjExMDAgAA9wb3J0YWw6UlVHQVJDSUGIABNiYXNpY2F1dGhlbnRpY2F0aW9uAQAIUlVHQVJDSUECAAMwMDADAANFUFAEAAwyMDA4MTIwNDIxNDEFAAQAAAAMCgAIUlVHQVJDSUH/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA0VQUDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgxMjA0MjE0MTIxWjAjBgkqhkiG9w0BCQQxFgQU9r0lROP9xSeA5thGNqyvEbaqrWswCQYHKoZIzjgEAwQvMC0CFQCV6qIJ2ofjbF/iMd9vVFd6U72dVwIUD7ENuEa2ID7ZVYY1kwtrrbs8!OU=; SAPPORTALSDB0=urn%253Acom.sapportals.appdesigner%253Aframework%2526isPersonalizeMode%3Dfalse &lt;/P&gt;&lt;P&gt;n/a &lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/1228426945698"&gt;&lt;/A&gt;[Dec 4, 2008 10:42:25 PM  ] - CLIENT: 4649216, REPLY: &lt;/P&gt;&lt;P&gt;{HTTP/1.1 401 Unauthorized &lt;/P&gt;&lt;P&gt;Server: SAP J2EE Engine/7.00 &lt;/P&gt;&lt;P&gt;Content-Type: text/html;charset=ISO-8859-1 &lt;/P&gt;&lt;P&gt;WWW-Authenticate: Basic Realm=Authentication &lt;/P&gt;&lt;P&gt;Pragma: no-cache &lt;/P&gt;&lt;P&gt;Content-Encoding: gzip &lt;/P&gt;&lt;P&gt;Content-Length: 594 &lt;/P&gt;&lt;P&gt;Date: Thu, 04 Dec 2008 21:42:25 GMT &lt;/P&gt;&lt;P&gt;Set-Cookie: j_authscheme=ESS_SCH; Expires=Thu, 04-Dec-2008 21:42:35 GMT &lt;/P&gt;&lt;P&gt;n/a &lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advanced!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rubé&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 14:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847261#M1133654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Authentication without using SPNEGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847262#M1133655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what SAP are trying to tell you is that when authentication is enabled using SPNEGO, this will be used for all logon attempts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very familiar with this scenario, and have a solution, but it involves using a third-party product. I am not aware of any way to make the SAP supplied SPNEGO login module authenticate the user using userid+password entered into browser. Instead, you need some other login modules instead and you need a way to stop your browser from receiving the 401 from the SPNEGO module when a user logs onto the ESS application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 15:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847262#M1133655</guid>
      <dc:creator>tim_alsop</dc:creator>
      <dc:date>2008-12-05T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Authentication without using SPNEGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847263#M1133656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Could you tell me which third party software do you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 17:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847263#M1133656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Authentication without using SPNEGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847264#M1133657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;gt; Could you tell me which third party software do you use?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best regards.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is described here, right on SDN EcoHub. Check &lt;A href="https://ecohub.sdn.sap.com/irj/ecohub/solutions/trustbrokeradapter" target="test_blank"&gt;https://ecohub.sdn.sap.com/irj/ecohub/solutions/trustbrokeradapter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 17:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-authentication-without-using-spnego/m-p/4847264#M1133657</guid>
      <dc:creator>tim_alsop</dc:creator>
      <dc:date>2008-12-05T17:27:05Z</dc:date>
    </item>
  </channel>
</rss>

