<?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 UME Java API - created Users are denied access randomly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ume-java-api-created-users-are-denied-access-randomly/m-p/8127260#M1619012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure whether I got the correct forum for this question, so please hint me if I didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with SAP Netweaver 7.3 and AS Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our customer needs a more specific way to create and manage his users, so he won't use the standard usermanagement (/useradmin) provided by SAP. We build a Java Application using the UME Java API to create / update / delete users. (http://help.sap.com/javadocs/NW73/SPS02/CE/se/com.sap.se/com/sap/security/api/IUserFactory.html)&lt;/P&gt;&lt;P&gt;It all works fine except for one problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It happens from time to time that users we created with the Java Application cannot login. "Authentification failed." This NEVER happens to users we created with the standard useradmin provided by SAP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UME is mapped to a LDAP Server - this accounts of course for both, the standard useradmin and the Java Application - may this affect anything when loading users?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May UME's caching become a problem only for the Java API but not for the standard useradmin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also implemented a selfregistration Java Application which uses the anonymous portal access. This is triggered by a link. Is there any way this might cause problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answers!&lt;/P&gt;&lt;P&gt;Milena May&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOGIN.FAILED&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User: N/A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IP Address: *********&lt;/P&gt;&lt;P&gt;Authentication Stack: ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details&lt;/P&gt;&lt;P&gt;1. com.sap.security.core.server.jaas.EvaluateTicketLoginModule             SUFFICIENT  ok          false                 true      &lt;/P&gt;&lt;P&gt;        #1 trusteddn1 = OU=J2EE,CN=S00&lt;/P&gt;&lt;P&gt;        #2 trusteddn2 = CN=S00,OU=I0020256495,OU=SAP Web AS,O=SAP Trust Community,C=DE&lt;/P&gt;&lt;P&gt;        #3 trustediss1 = OU=J2EE,CN=S00&lt;/P&gt;&lt;P&gt;        #4 trustediss2 = CN=S00,OU=I0020256495,OU=SAP Web AS,O=SAP Trust Community,C=DE&lt;/P&gt;&lt;P&gt;        #5 trustedsys1 = S00,000&lt;/P&gt;&lt;P&gt;        #6 trustedsys2 = S00,100&lt;/P&gt;&lt;P&gt;        #7 ume.configuration.active = true&lt;/P&gt;&lt;P&gt;2. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   REQUISITE   ok          exception             true       Authentication did not succeed.&lt;/P&gt;&lt;P&gt;3. com.sap.security.core.server.jaas.CreateTicketLoginModule               OPTIONAL    ok                                true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EDIT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;There are two different solutions to make the user account able to login again:&lt;/P&gt;&lt;P&gt;- Wait for some time (several minutes won't do but half an hour mostly will) -&amp;gt; might point to a caching problem...&lt;/P&gt;&lt;P&gt;- Set an administrative lock in the standard usermanagement and make the account active again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Strange though, when locking and unlocking the account in the Java Application, the user can still not login.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MilenaMMay on Sep 9, 2011 9:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2011 06:45:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-09T06:45:51Z</dc:date>
    <item>
      <title>UME Java API - created Users are denied access randomly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ume-java-api-created-users-are-denied-access-randomly/m-p/8127260#M1619012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure whether I got the correct forum for this question, so please hint me if I didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with SAP Netweaver 7.3 and AS Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our customer needs a more specific way to create and manage his users, so he won't use the standard usermanagement (/useradmin) provided by SAP. We build a Java Application using the UME Java API to create / update / delete users. (http://help.sap.com/javadocs/NW73/SPS02/CE/se/com.sap.se/com/sap/security/api/IUserFactory.html)&lt;/P&gt;&lt;P&gt;It all works fine except for one problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It happens from time to time that users we created with the Java Application cannot login. "Authentification failed." This NEVER happens to users we created with the standard useradmin provided by SAP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UME is mapped to a LDAP Server - this accounts of course for both, the standard useradmin and the Java Application - may this affect anything when loading users?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May UME's caching become a problem only for the Java API but not for the standard useradmin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also implemented a selfregistration Java Application which uses the anonymous portal access. This is triggered by a link. Is there any way this might cause problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answers!&lt;/P&gt;&lt;P&gt;Milena May&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOGIN.FAILED&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User: N/A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IP Address: *********&lt;/P&gt;&lt;P&gt;Authentication Stack: ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details&lt;/P&gt;&lt;P&gt;1. com.sap.security.core.server.jaas.EvaluateTicketLoginModule             SUFFICIENT  ok          false                 true      &lt;/P&gt;&lt;P&gt;        #1 trusteddn1 = OU=J2EE,CN=S00&lt;/P&gt;&lt;P&gt;        #2 trusteddn2 = CN=S00,OU=I0020256495,OU=SAP Web AS,O=SAP Trust Community,C=DE&lt;/P&gt;&lt;P&gt;        #3 trustediss1 = OU=J2EE,CN=S00&lt;/P&gt;&lt;P&gt;        #4 trustediss2 = CN=S00,OU=I0020256495,OU=SAP Web AS,O=SAP Trust Community,C=DE&lt;/P&gt;&lt;P&gt;        #5 trustedsys1 = S00,000&lt;/P&gt;&lt;P&gt;        #6 trustedsys2 = S00,100&lt;/P&gt;&lt;P&gt;        #7 ume.configuration.active = true&lt;/P&gt;&lt;P&gt;2. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   REQUISITE   ok          exception             true       Authentication did not succeed.&lt;/P&gt;&lt;P&gt;3. com.sap.security.core.server.jaas.CreateTicketLoginModule               OPTIONAL    ok                                true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EDIT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;There are two different solutions to make the user account able to login again:&lt;/P&gt;&lt;P&gt;- Wait for some time (several minutes won't do but half an hour mostly will) -&amp;gt; might point to a caching problem...&lt;/P&gt;&lt;P&gt;- Set an administrative lock in the standard usermanagement and make the account active again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Strange though, when locking and unlocking the account in the Java Application, the user can still not login.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MilenaMMay on Sep 9, 2011 9:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 06:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ume-java-api-created-users-are-denied-access-randomly/m-p/8127260#M1619012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-09T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: UME Java API - created Users are denied access randomly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ume-java-api-created-users-are-denied-access-randomly/m-p/8127261#M1619013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem resolved:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When dealing with user and account you may either CREATE BOTH or UPDATE BOTH. &lt;/P&gt;&lt;P&gt;It is not possible to create an user, save it and afterwards create and save the account.&lt;/P&gt;&lt;P&gt;When you're dealing wrongly with user and account, NO UMException will be thrown, your code will work fine. Except that the UME then uses a TRANSIENT account that is deleted when the UME's cache is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating accounts / users, you should always stick to the ORDER of COMMANDS as SAP intended them to. Look at this example and use the commands in EXACTLY the same order and everything will work fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw73/helpdata/en/90/0ac06cdde041a2a4d81c9f7faed143/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw73/helpdata/en/90/0ac06cdde041a2a4d81c9f7faed143/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Milena May&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 12:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ume-java-api-created-users-are-denied-access-randomly/m-p/8127261#M1619013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-20T12:40:32Z</dc:date>
    </item>
  </channel>
</rss>

