8i PE Import - Authentication Failed

I am trying to import a dump from v7.3. I've been successful on win 98 but cannot get it to work on win2k.
I suspect there is a problem with the various credentials stored in the repository for enterprise manager and or the local credentials for stand alone connections.
I need to get the oem to cooperate since the import function requires it.
I am able to connect as SYSDBA when using sys/change_on_install but still get the authentication error while trying to import.
Also, I cannot get oem to recognize system/manager as a SYSDBA.
What do I need to do to get all this security stuff straightened out.
Help!!!
Thanks,
Roger
PS The Oracle documentation is kind of vague. It could really use some examples and diagrams to illustrate all this stuff better. Is there a good book I could buy?
null

Your code doesn't work in stand alone program... just little mistake!
Miss port property :
props.put("mail.smtp.port", "25");
props.put("mail.smtp.starttls.enable", "true"); // tls for gmail
AddressTo method didn' t compile :
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
     addressTo[i] = new InternetAddress((String) recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
And see this post for jsp integration :
http://forum.java.sun.com/thread.jspa?threadID=5184860&tstart=0

Similar Messages

  • Getting error -- SoapFaultCode:1  Authentication failed while import TP

    Hi All,
    While importing Transport in PI we are getting the below error;
    Deployment
    Transport request   : XIDK900283
    System              : XIQ
    tp path             : tp
    Version and release: 375.33.68 710
    CTS Deploy Service - Version 0.92 06.03.2007
    ========================================================================
    Deploy Web service destination = CTSDEPLOY
    Directory = /usr/sap/prodtrans/data
    SDM Deploy URL =
    SLD Deploy URL =
    XI Deploy URL = http://test:52200
    SoapFaultCode:1 Authentication failed. For details see log entry 002481E407080046000000740000444240
    >>>CDB9A36054B360 in security log.
    Deployment
    End date and time : 20110727180708
    Ended with return code:  ===> 12 <===
    Below is the log when when test in STMS , SAP System ->Check->Transport Tool.
    Check Transport Tool                                       28.07.2011  00:52:09
            XIQ System XIQ (PI 7.1 QA)
                tp Interface
                Transport Profile
                RFC Destination
                tp Call
                Deploy Web Service
                    Web Service           CTSDEPLOY is active
                    Destination           Host=test:52200
                    Proxy                 CO_TFLDEPLOY_PROXY_VI_DOCUMENT
                    Connection Test       Exception: cx_ai_system_fault
                Deploy Tool
                    XI URL                http://test:52200
                    XI Logon Data         User=NWDI_CTSADM, Password is defined
                    XI Ping               SoapFaultCode:1  Authentication failed..
    Please help.
    Regards,
    Karthik.
    Edited by: Karthiksap on Jul 28, 2011 9:14 AM

    Hi Karthik,
    Check this link with the same issue:CTS+ For Portal Error: SoapFaultCode:1 Authentication failed
    Regards,
    Naveen

  • User Authentication Failed error when trying to display a JSP portlet

    The steps carried out are as follows :
    1. Created a JSP file named "c.jsp" and deployed it under 902_MidTier_Home\j2ee\home\default-web-app\examples\jsp
    2. Created a table named USER_TABLE under Scott schema to store the usernames and passwords to validate this JSP application.
    3. Registered this JSP as an external application with the following values :
    Application Name           : RAGHU
    Login URL          : http://hostname:port/j2ee/examples/jsp/c.jsp
    User Name/ID Field Name     : username
    Password Field Name     : password
    Type of Authentication Used : POST
    3. Clicked on the External Application and entered the username as USER1 and password as USER1 ( These values are available
    under USER_TABLE for comparison ). Then it shows the message "Hi User1 .. Welcome message"
    4. Now created a directory named JSPSAMPLE under "WEB-INF\Providers" and put the provider.xml file under this.
    Created a raghu.properties file and placed it under "WEB-INF\deployment".
    5. Now tested the testpage using the URL " http://hostname:port/jpdk/providers/raghu " and it works fine.
    6. Registered this as a provider in Portal and added this portlet onto a page. Assigned this page to a newly created user.
    It gives the message " Authentication Failed - Update Login Information " which is expected. I click on the link and
    it takes me to the external application username password. I enter the credentials but this time it comes back again
    to the page with the same message " Authentication Failed - Update Login Information ".
    7. Basically the values are not passed to the Username and Password in jsp page which is why the problem occurs.
    The JSP Code used is as follows :
    <%@ page import="java.sql.*" %>
    <HTML>
    <HEAD><TITLE>DB Connectivity test</TITLE></HEAD>
    <BODY BGCOLOR="#FFFFFF">
    <CENTER>
    <B>user_table</B>
    <BR><BR>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    Connection conn = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:iasdb","scott","tiger");
    Statement stmt = conn.createStatement();
    String query = "SELECT * FROM user_table where userid= '"+ username +"' and passwd = '" + password + "' " ;
    ResultSet rs = stmt.executeQuery(query);
    while(rs.next())
    out.println("<TR>");
    out.println(" <TD> hi " + rs.getString("userid") + ", welcome</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    catch(SQLException e)
    out.println("SQLException: " + e.getMessage() + "<BR>");
    while((e = e.getNextException()) != null)
    out.println(e.getMessage() + "<BR>");
    out.println("invalid userid,password");
    catch(ClassNotFoundException e)
    out.println("ClassNotFoundException: " + e.getMessage() + "<BR>");
    finally
    //Clean up resources, close the connection.
    if(conn != null)
    try
    conn.close();
    catch (Exception ignored) {}
    %>
    </CENTER>
    </BODY>
    </HTML>
    The Provider.xml file used is as follows :
    <?xml version="1.0" encoding="UTF-8"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.http.URLProviderDefinition">
         <providerInstanceClass>oracle.portal.provider.v2.http.URLProviderInstance</providerInstanceClass>
         <session>true</session>
         <authentication class="oracle.portal.provider.v2.security.Authentication">
              <authType>ExternalApp</authType>
              <userFieldName>username</userFieldName>
              <userPwdName>password</userPwdName>
              <errorPageMessages>Raghu,Please sign in,Sign me up!</errorPageMessages>
         </authentication>
         <portlet class="oracle.portal.provider.v2.http.URLPortletDefinition">
              <id>1</id>
              <name>RaghuPortlet</name>
              <title>Raghu Mail Portlet</title>
              <description>This portlet is to test Integration services using mail.yahoo.com</description>
              <timeout>100</timeout>
              <timeoutMessage>Raghu timed out</timeoutMessage>
              <showEdit>false</showEdit>
              <showEditDefault>false</showEditDefault>
              <showPreview>false</showPreview>
              <showDetails>false</showDetails>
              <hasHelp>false</hasHelp>
              <hasAbout>false</hasAbout>
              <acceptContentType>text/html</acceptContentType>
              <registrationPortlet>false</registrationPortlet>
              <accessControl>public</accessControl>
              <renderer class="oracle.portal.provider.v2.render.RenderManager">
                   <showPage class="oracle.portal.provider.v2.render.http.URLRenderer">
                        <pageUrl>http://172.17.24.235:8888/c.jsp</pageUrl>
                        <contentType>text/html</contentType>
                        <filter class="oracle.portal.provider.v2.render.HtmlFilter">
                             <useAuthLinks>true</useAuthLinks>
                             <headerTrimTag>&lt;table width="100%" cellpadding=0 cellspacing=0 border=0>&lt;tr>&lt;td bgcolor=#9bbad6></headerTrimTag>
                             <footerTrimTag>&lt;table width="100%" cellpadding=2 cellspacing=1>&lt;tr>&lt;td bgcolor=#9bbad6></footerTrimTag>
                             <convertTarget>true</convertTarget>
                             <redirectUrlFieldName>.done</redirectUrlFieldName>
                        </filter>
                   </showPage>
              </renderer>
              <securityManager class="oracle.portal.provider.v2.security.URLSecurityManager">
                   <authorizType>registered</authorizType>
              </securityManager>
         </portlet>
    </provider>
    The Contents of raghu.properties file
    serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
    loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
    showTestPage=true
    definition=providers/raghu/provider.xml
    autoReload=true
    Any inputs regarding why the values are passed properly in case of External Application but not so when registered as
    a portlet in Portal.
    Regards
    Satish G

    As I can see from the information posted, you are trying to
    use URL-based portlet's SSO feature, though not in a correct
    way.
    The SSO feature of URL-based portlets relie on the usage
    of Cookies as authentication tokens. For example, in the
    present context, http://hostname:port/j2ee/examples/jsp/c.jsp
    will write a cookie to the client upon successfull authentication.
    Subsequent access to the same JSP or some other JSP in the same
    workspace should be checking for the existence of this particular
    cookie at the client side and if found should not prompt for
    user information again.
    If you can fine tune your existing applications as per above
    conditions, then everything should work fine. Else you might
    want to use page parameters to pass user information.
    For more information on page parameters, please visit
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&12678_PDKHOME902_39847486.p_subid=249821&12678_PDKHOME902_39847486.p_sub_siteid=73&12678_PDKHOME902_39847486.p_edit=0#NEW1

  • MIC not verified # authentication-failed

    Hi,
    We are getting this error while trying to send messages from XI through AS2:
    MIC not verified # authentication-failed
    Can anybody please let us know the reason for this error.
    Thanks in advance.
    Best Regards,
    Shweta

    Hi Shabarish & Prateek,
    Thanks a lot for the information.
    I've also checked this information in Seeburger document and I agree this can be an issue with the Certificate.
    But these scenarios were working fine for a long time,the Certificates are valid till 2016.
    And the most important thing is,we get this error in 1 message out of 100-200,other messages are sent successfully.
    So,if this is an issue with certificate,how is it possible that it affects only 1-2 messages not all.
    I had never seen this error before and suddenly we have started getting such errors for a number of scenarios for last 15 days.
    I believe ,there can be a problem with Certificate for 1 customer but if it is more than one ,it is hard to believe that all of them have problems with Certificates and at the same time.
    I tried to search for notes related to this problem.
    Is it something related to MIME content,as mentioned in note 1287778?
    Kindly let me know.
    Thanks.
    Regards,
    Shweta

  • Authentication failed while using the function from JSP.

    I am facing a issue with the mail functionality with JAVA Mailing.The problem is that when I am running the stand alone program it is working fine but when same function is called from a JSP it gives Authentication failed Exception.I am attaching the code with the case.testMail() Is the function called from the JSP.
    Please Look in to the issue its urgent.
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import javax.activation.DataHandler;
    import javax.mail.MessagingException;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.mail.internet.MimePartDataSource;
    To use this program, change values for the following three constants,
    SMTP_HOST_NAME -- Has your SMTP Host Name
    SMTP_AUTH_USER -- Has your SMTP Authentication UserName
    SMTP_AUTH_PWD -- Has your SMTP Authentication Password
    Next change values for fields
    emailMsgTxt -- Message Text for the Email
    emailSubjectTxt -- Subject for email
    emailFromAddress -- Email Address whose name will appears as "from" address
    Next change value for "emailList".
    This String array has List of all Email Addresses to Email Email needs to be sent to.
    Next to run the program, execute it as follows,
    SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    private static final String SMTP_HOST_NAME = "host";
    private static final String SMTP_AUTH_USER = "username";
    private static final String SMTP_AUTH_PWD = "password";
    private static final String emailMsgTxt = "Test Msg";
    private static final String emailSubjectTxt = "Notification: New User created";
    private static final String emailFromAddress = "[email protected]";
    // Add List of Email address to who email needs to be sent to
    private static final String[] emailList = {"[email protected]"};
    public static void main(String args[]) throws Exception
    SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
    smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
    System.out.println("Sucessfully Sent mail to All Users");
    public void testMail(String msgBody,String senderEmail)throws MessagingException
    try{
         String mailBody = msgBody;
         String senderEmailAdd = senderEmail;
         SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
         smtpMailSender.postMail( emailList, emailSubjectTxt, mailBody , senderEmail);
         catch(MessagingException me) {
                   //System.out.println("Mail not sent");
                   throw me;
    public void postMail( String recipients[ ], String subject,
    String message , String from) throws MessagingException
    try{
         boolean debug = false;
    //Set the host smtp address
    Properties props = System.getProperties();
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getInstance(props, auth);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
         catch(MessagingException me) {
                   //System.out.println("Mail not sent");
                   throw me;
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    public static class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
              return new PasswordAuthentication(username, password);

    Your code doesn't work in stand alone program... just little mistake!
    Miss port property :
    props.put("mail.smtp.port", "25");
    props.put("mail.smtp.starttls.enable", "true"); // tls for gmail
    AddressTo method didn' t compile :
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
         addressTo[i] = new InternetAddress((String) recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    And see this post for jsp integration :
    http://forum.java.sun.com/thread.jspa?threadID=5184860&tstart=0

  • Authentication Failed error message on browser while login to author instance

    Hi,
    I ran backup on author and publish instance after datastore garbage collector.
    It went fine on publish instance and created backup file succesfully.
    But at some point of time backup failed on author instance and we tried to login on author instance we got cq5 console on browser.
    After that we checked replication agent on author and wheni clicked to publish we got error page saying Class not found exception.
    after some time we just bounced the author instance we got startup completed message ver quickly and not started all the bundles(started only 121 bundles).
    Tried to login author instance on browser it was showing Authentication Failed message.
    Please helpout in resolving this issue.
    Thanks in Advance.
    Mahesh

    I did not really understand what the problem with the domain/hostname or so is you mentioned but lets set it aside and assume that it doesnt cause any further problems for now.
    About your questions:
    1) With which user do you try to login?
    "amadmin" is default name for the administrative user.
    Did you rename him or do you try to log in with another user?
    "amadmin" is probably the only user which "works" just after installing.
    When you go to portal/dt, are you logged in or are you on the anonymous desktop? If you did not make any changes you shold get either a login channel or a Userinfo channel.
    This way you should be able to see if you are logged in.
    Also important for you:
    Logfiles for access manager and portal are by default placed in the folder /var/opt/SUNWam/. There is a debug and logs folder.
    These loggings are most of the time more helpfull than the directory server logs.
    To get a finer logging edit the file /etc/opt/SUNWam/AMConfig.properties
    There is a line "...=error". Replace error with message and restart the webserver/appserver-domain.
    hth Chris

  • Clients cannot connect: "Reason:802.1x Authentication failed 3 times. Reas"

    As of 1:30 yesterday, no clients can authenticate to my LWAPP Access points. I'm getting this message in the trap logs on my 4404:
    Client Excluded: MACAddress:00:90:4b:86:23:94 Base Radio MAC :00:17:df:7f:c8:60 Slot: 0 Reason:802.1x Authentication failed 3 times. ReasonCode: 3
    And my (MS IAS) RADIUS server has an entry:
    Authentication-Type = EAP
    EAP-Type = <undetermined>
    Reason-Code = 66
    Reason = The user attempted to use an authentication method that is not enabled on the matching remote access policy.
    The previous successful entries all refer to PEAP. We restored our WCS server from tape yesterday, but why would that affect the authentication on the 4404? Does anyone have any idea what's going wrong?

    There is a command line syntax which will also allow you to export and import an IAS config to other IAS servers. Then you will be sure they are identical...
    http://support.microsoft.com/kb/883619

  • N80 "WLAN: WPA authentication failed"

    I have a N80 at 4.0623.0.41 (26/07/2006, RM-92, Nokia N80 63.01) branded (TIM-Italy). No further firmware upgrades are available (on 12-09-2007)
    I would like to connect to my 802.1x academic network that uses certificate
    I installed the certificate set up its reliability.
    Then, I followed the indications found in this forum for EAP-PEAP setting up
    Data Bearer: Wlan
    Network status: Public
    Network Mode: Infrastructure
    Security mode: 802.1x
    Security Settings:
    WPA/WPA2: EAP
    EAP Plug In Settings:
    1. EAP-PEAP
    (other options disabled)
    EAP-PEAP:
    Personal Certificate: Not Defined
    Authority Certificate: IC root CA
    Username in use: User Defined
    Username: *****
    Realm in use: From certificate
    Realm: [blank]
    Allow PEAPv0: Yes
    Allow PEAPv1: NO
    Allow PEAPv2: NO
    EAPs:
    1:EAP-MSCHAPv2
    EAP-MSCHAPv2:
    Username: [entered correctly]
    Prompt password: Yes
    Password: [Entered correctly]
    When I try to connect with these settings I get the following error message:
    " WLAN: WPA authentication failed "
    I tried also other unsuccessful variations such
    Allow PEAPv0: Yes
    Allow PEAPv1: YES
    Allow PEAPv2: YES)
    The system admistrators suggested that the problem could be the certificate that is home-made and maybe it is not completely recognized by Symbian v9.1. But they don’t know how to fix the problem
    Indeed I found two certificates from my institution (Root and Server), apparently identical, but the Root one is recognized while the other no.
    Do you know what I should check inside the certificate to gain insights about the reasons of the authentication failure?
    Is there any symbian network utility that could help to understand which step block the authentication?
    I will appreciate any suggestion
    Thank you in advance

    WPA and EAP works great with the N80 - dont worry
    I have tested and runs alot og Nokia Phones with WiFi and EAP etc.
    I currently uses a N80 fw 4.0707.0.7, and there are a v5 fw also.
    I sugguest you get the 4.07
    You subject informs about WPA but you have set your Security mode: 802.1x
    Change this to:
    Security mode: WPA/WPA2
    Then you should be good.
    Also verify the status: hidden/public this is important
    If you can see the SSID in the WLAN Wiz then its public SSID.
    Try clearing the username in the certificate setup/PEAP
    also try different comination of DOMAIN/USERNAME, DOMAIN\USERNAME, DOMAIN@USERNAME etc
    But I would think that you do not need username in the GENERAL page under EAP-PEAP
    You need username under EAP page/EAP-MSCHAPv2
    I assume you have the certificate installed on the handset.
    HTH

  • Help, Authentication failed

    I am having a very difficult time making a simple login program work
    I am using Java SDK 1.4.2_02 on a Windows 2000 host, the DS is on the same host
    My Directory Server is Sun One Directory Server 5.2
    I am using the JAAS package, with a JndiLoginModule
    When I use a bogus uid I get a �user not found� message so I know I am contacting the DS correctly
    The Access log looks like this
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=0 msgId=1 - BIND dn="" method=128 version=3
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn=""
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=1 msgId=2 - SRCH base="ou=people,dc=auto-trol,dc=com" scope=0 filter="(objectClass=*)" attrs=ALL
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=1 msgId=2 - RESULT err=0 tag=101 nentries=1 etime=0
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=2 msgId=3 - SRCH base="ou=people,dc=auto-trol,dc=com" scope=1 filter="(uid=jpsb)" attrs=ALL
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=2 msgId=3 - RESULT err=0 tag=101 nentries=1 etime=0
    [09/Dec/2003:13:09:52 -0600] conn=1606 op=3 msgId=4 - ABANDON targetop=NOTFOUND msgid=3
    My config file looks like this
    Sample
    com.sun.security.auth.module.JndiLoginModule required debug=true
         user.provider.url="ldap://localhost:4661/ou=People,dc=auto-trol,dc=com"
         group.provider.url="ldap//localhost:4661/ou=Group,dc=auto-trol,dc=com";
    The error I get is this:
    [JndiLoginModule] user provider: ldap://localhost:4661/ou=People,dc=auto-trol,dc=com
    [JndiLoginModule] group provider: ldap//localhost:4661/ou=Group,dc=auto-trol,dc=com
    ldap username: jpsb
    ldap password: jim
    [JndiLoginModule] attemptAuthentication() failed
    [JndiLoginModule] regular authentication failed
    [JndiLoginModule]: aborted authentication failed
    Authentication failed:
    Login incorrect
    A stack trace looks like this
    javax.security.auth.login.FailedLoginException: Login incorrect
    at com.sun.security.auth.module.JndiLoginModule.attemptAuthentication(JndiLoginModule.java:552)
    at com.sun.security.auth.module.JndiLoginModule.login(JndiLoginModule.java:310)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at LoginJaas.main(LoginJaas.java:93)
    It appears to me that there must be some kind password problem, I can login from the 5.2 console or switch user ids from the console so I know the user and Directory Server are OK.
    Can anyone help? I�ve been pounding on this for a few days and it is getting frustrating.
    Thanks in advance
    Jim

    Here it is along with some bat files to make and run. I can't understand why it does not work. It is mostly a slightly modified example from Sun. I'm using Sun code, a Sun Directory Server and a Sun's JndiLoginModule so why the damn thing does not work is a mystery. I have looked EVERYWHERE for a sample JAAS/LDAP Authenicate code and can't find a thing. Makes me think there isn't any and JAAS is not the way to go. I and going to try with a different DS maybe open LDP or active Directory and if that doesn't work I'll forget JAAS and use JNDI instead.
    Any help would be greatly appreciated.
    thanks in advance
    jim
    Start LoginJass.java
    * @(#)LoginJaas.java
    * Copyright 2001-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * -Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * -Redistribution in binary form must reproduct the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import javax.security.auth.Subject;
    import javax.security.auth.callback.*;
    import javax.security.auth.login.*;
    import com.sun.security.auth.callback.TextCallbackHandler;
    import java.security.PrivilegedAction;
    * This LoginJaas application attempts to authenticate a user
    * and reports whether or not the authentication was successful.
    * If successful, it then sets up subsequent execution of
    * code in the run method of the SampleAction class such that
    * access control checks for security-sensitive operations will be
    * based on the user running the code.
    public class LoginJaas
         private static Subject mySubject;
         public static void main(String[] args)
              // Obtain a LoginContext, needed for authentication. Tell it
              // to use the LoginModule implementation specified by the
              // entry named "JaasSample" in the JAAS login configuration
              // file and to also use the specified CallbackHandler.
              LoginContext lc = null;
              try
                   lc = new LoginContext("Sample", new TextCallbackHandler());
              catch (LoginException le)
                   System.err.println("le:Cannot create LoginContext. "
                   + le.getMessage());
                   le.printStackTrace();
                   System.exit(-1);
              catch (SecurityException se)
                   System.err.println("se:Cannot create LoginContext. "
                   + se.getMessage());
                   se.printStackTrace();
                   System.exit(-1);
              try
                   // attempt authentication
                   lc.login();
              catch (LoginException le)
                   System.err.println("Authentication failed:");
                   System.err.println(" " + le.getMessage());
                   le.printStackTrace();
                   System.exit(-1);
              System.out.println("Authentication succeeded!");
              // now try to execute the SampleAction as the authenticated Subject
              Subject mySubject = lc.getSubject();
              PrivilegedAction action = new SampleAction();
              Subject.doAsPrivileged(mySubject, action, null);
    End LoginJass.java
    Start MyCallbackHandler.java
    import java.io.*;
    import javax.security.auth.*;
    import javax.security.auth.callback.*;
    public class MyCallbackHandler implements CallbackHandler
         public void handle(Callback callbacks[]) throws IOException, UnsupportedCallbackException
              for(int i=0;i<callbacks.length;i++)
                   if(callbacks[i] instanceof NameCallback)
                   NameCallback nc = (NameCallback) callbacks[0];
                   System.err.print(nc.getPrompt());
                   System.err.flush();
                   String name = (new BufferedReader(new InputStreamReader(System.in))).readLine();
                   nc.setName(name);
                   else
                   throw(new UnsupportedCallbackException(callbacks,
                             "Callback handler not support"));
    End MyCallbackHandler.java
    Start Sample.java
    * @(#)Sample.java     1.19 00/01/11
    * Copyright 2000-01 Sun Microsystems, Inc. All rights reserved.
    * Copyright 2000-01 Sun Microsystems, Inc. Tous droits reserves.
    import java.io.*;
    import java.util.*;
    import java.security.Principal;
    import javax.security.auth.*;
    import javax.security.auth.callback.*;
    import javax.security.auth.login.*;
    import javax.security.auth.spi.*;
    import com.sun.security.auth.*;
    * <p> This Sample application attempts to authenticate a user
    * and executes a SampleAction as that user.
    * <p> If the user successfully authenticates itself,
    * the username and number of Credentials is displayed.
    * @version 1.19, 01/11/00
    public class Sample {
    * Attempt to authenticate the user.
    * <p>
    * @param args input arguments for this application. These are ignored.
    public static void main(String[] args) {
         // use the configured LoginModules for the "Sample" entry
         LoginContext lc = null;
         try {
         lc = new LoginContext("Sample", new MyCallbackHandler());
         } catch (LoginException le) {
         le.printStackTrace();
         System.exit(-1);
         // the user has 3 attempts to authenticate successfully
         int i;
         for (i = 0; i < 3; i++) {
         try {
              // attempt authentication
              lc.login();
              // if we return with no exception, authentication succeeded
              break;
         } catch (AccountExpiredException aee) {
              System.out.println("Your account has expired. " +
                        "Please notify your administrator.");
              System.exit(-1);
         } catch (CredentialExpiredException cee) {
              System.out.println("Your credentials have expired.");
              System.exit(-1);
         } catch (FailedLoginException fle) {
              System.out.println("Authentication Failed");
              try {
              Thread.currentThread().sleep(3000);
              } catch (Exception e) {
              // ignore
         } catch (Exception e) {
              System.out.println("Unexpected Exception - unable to continue");
              e.printStackTrace();
              System.exit(-1);
         // did they fail three times?
         if (i == 3) {
         System.out.println("Sorry");
         System.exit(-1);
         // let's see what Principals we have
         Iterator principalIterator = lc.getSubject().getPrincipals().iterator();
         System.out.println("Authenticated user has the following Principals:");
         while (principalIterator.hasNext()) {
         Principal p = (Principal)principalIterator.next();
         System.out.println("\t" + p.toString());
         System.out.println("User has " +
                   lc.getSubject().getPublicCredentials().size() +
                   " Public Credential(s)");
         // now try to execute the SampleAction as the authenticated Subject
         Subject.doAs(lc.getSubject(), new SampleAction());
         System.exit(0);
    End Sample.java
    Start SampleAction.java
    * @(#)SampleAction.java     1.4 00/01/11
    * Copyright 2000-01 Sun Microsystems, Inc. All rights reserved.
    * Copyright 2000-01 Sun Microsystems, Inc. Tous droits reserves.
    import java.io.File;
    import java.security.PrivilegedAction;
    * <p> This is a Sample PrivilegedAction implementation, designed to be
    * used with the Sample application.
    * @version 1.4, 01/11/00
    public class SampleAction implements PrivilegedAction {
    * <p> This Sample PrivilegedAction performs the following operations:
    * <ul>
    * <li> Access the System property, <i>java.home</i>
    * <li> Access the System property, <i>user.home</i>
    * <li> Access the file, <i>foo.txt</i>
    * </ul>
    * @return <code>null</code> in all cases.
    * @exception SecurityException if the caller does not have permission
    *          to perform the operations listed above.
    public Object run() {
         System.out.println("\nYour java.home property: "
                   +System.getProperty("java.home"));
         System.out.println("\nYour user.home property: "
                   +System.getProperty("user.home"));
         File f = new File("foo.txt");
         System.out.print("\nfoo.txt does ");
         if (!f.exists())
         System.out.print("not ");
         System.out.println("exist in the current working directory.");
         return null;
    End SampleAction.java
    Start princible/SamplePrincipal.java
    package principal;
    * @(#)SamplePrincipal.java     1.4 00/01/11
    * Copyright 2000-01 Sun Microsystems, Inc. All rights reserved.
    * Copyright 2000-01 Sun Microsystems, Inc. Tous droits reserves.
    import java.security.Principal;
    * <p> This class implements the <code>Principal</code> interface
    * and represents a Sample user.
    * <p> Principals such as this <code>SamplePrincipal</code>
    * may be associated with a particular <code>Subject</code>
    * to augment that <code>Subject</code> with an additional
    * identity. Refer to the <code>Subject</code> class for more information
    * on how to achieve this. Authorization decisions can then be based upon
    * the Principals associated with a <code>Subject</code>.
    * @version 1.4, 01/11/00
    * @see java.security.Principal
    * @see javax.security.auth.Subject
    public class SamplePrincipal implements Principal, java.io.Serializable {
    * @serial
    private String name;
    * Create a SamplePrincipal with a Sample username.
    * <p>
    * @param name the Sample username for this user.
    * @exception NullPointerException if the <code>name</code>
    *               is <code>null</code>.
    public SamplePrincipal(String name) {
         if (name == null)
         throw new NullPointerException("illegal null input");
         this.name = name;
    * Return the Sample username for this <code>SamplePrincipal</code>.
    * <p>
    * @return the Sample username for this <code>SamplePrincipal</code>
    public String getName() {
         return name;
    * Return a string representation of this <code>SamplePrincipal</code>.
    * <p>
    * @return a string representation of this <code>SamplePrincipal</code>.
    public String toString() {
         return("SamplePrincipal: " + name);
    * Compares the specified Object with this <code>SamplePrincipal</code>
    * for equality. Returns true if the given object is also a
    * <code>SamplePrincipal</code> and the two SamplePrincipals
    * have the same username.
    * <p>
    * @param o Object to be compared for equality with this
    *          <code>SamplePrincipal</code>.
    * @return true if the specified Object is equal equal to this
    *          <code>SamplePrincipal</code>.
    public boolean equals(Object o) {
         if (o == null)
         return false;
    if (this == o)
    return true;
    if (!(o instanceof SamplePrincipal))
    return false;
    SamplePrincipal that = (SamplePrincipal)o;
         if (this.getName().equals(that.getName()))
         return true;
         return false;
    * Return a hash code for this <code>SamplePrincipal</code>.
    * <p>
    * @return a hash code for this <code>SamplePrincipal</code>.
    public int hashCode() {
         return name.hashCode();
    End princible/SamplePrincipal.java
    Start ample_jaas.config
    /** Login Configuration for the JAAS Sample Application **/
    Sample
         //SampleLoginModule required debug=true;
         com.sun.security.auth.module.JndiLoginModule required debug=true
         user.provider.url="ldap://localhost:4661/ou=People,dc=testing,dc=com"
         group.provider.url="ldap//localhost:4661/ou=Group,dc=testing,dc=com";
    End Sample_jaas.config
    Start sample.policy
    /** Java 2 Access Control Policy for the JAAS Sample Application **/
    /** Code-Based Access Control Policy for LoginJaas **/
    grant codebase "file:./sample.jar
    permission javax.security.auth.AuthPermission
    "createLoginContext.JaasSample";
    permission javax.security.auth.AuthPermission "doAsPrivileged";
    permission java.security.AllPermission; //darf alles
    /** User-Based Access Control Policy for the LoginAction class
    ** instantiated by LoginJaas
    grant     codebase "file:./SampleAction.jar", Principal principal.SamplePrincipal "jimshi"
    permission java.util.PropertyPermission "java.home", "read";
    permission java.util.PropertyPermission "user.home", "read";
    permission java.io.FilePermission "foo.txt", "read";
    End sample.policy
    Start makelogin.bat
    REM
    javac LoginJaas.java principal/SamplePrincipal.java
    jar -cvf LoginJaas.jar LoginJaas.class principal/SamplePrincipal.java
    REM
    javac SampleAction.java
    jar -cvf SampleAction.jar SampleAction.class
    REM
    REM javac SampleLoginModule.java
    REM jar -cvf sample_module.jar SampleLoginModule.class
    REM
    javac Sample.java
    REM jar -cvf sample.jar MyCallbackHandler.class Sample.class
    javac com/sun/security/auth/module/*.java
    End makelogin.bat
    Start run.bat
    REM java -classpath ./;SampleAction.jar;LoginJaas.jar -Djava.security.manager -Djava.security.policy=sample.policy -Djava.security.auth.login.config=sample_jaas.conf LoginJaas
    java -classpath ./;SampleAction.jar;LoginJaas.jar -Djava.security.auth.login.config==D:\STUFF\LDAP\loginJim\sample_jaas.config LoginJaas
    End run.bat

  • Configurator: app authentication failed

    Using Itunes 11 I have downloaded the updates for all my apps, I then re-import the apps into apple configurator so that the updated versions of the apps get pushed to my ipads. when it's time to apply the updated apps I get an error message of "checking pairing" then it says "app authentication failed" and none of the new apps are applied and no updates are applied. 

    Hi
    I have had the same problem as well.
    I unplugged the usb then re plugged and it repeated the process and worked.
    This is just one of a long list of problems I have with Apple Configurator
    Ipad2 x34, ios6

  • "User authentication failed" when connecting with Visual Administrator

    Hello,
    I am having trouble making a connection to my local J2EE Engine using the Visual Administrator (VA).
    I open the VA interface and create a new connection. The default User Name is "Administrator". I put in "localhost" for host, "50004" for port and leave the Transport Layer selection to "Default".
    When I try to connect this way I get the following message:
    User authentication failed
    Next I went into Start|Settings|Control Panel|Users and Passwords  and saw that there were several ids created by the Developer Workplace (DW) installation. The ids that I see are: j2eadm,sapadmin,sapinstall and SAPServiceJ2E
    I checked all of them to see what groups they're members of and they're all at least members of "Administrators" group.
    There are also 3 new groups that must have been created by the DW installation: SAP_J2E_GlobalAdmin, SAP_J2E_LocalAdmin and SAP_LocalAdmin.
    The j2eadm id belonged to all 3 new sap groups so I changed its password to something I'd remember and then changed the connection to use that login.
    When I tried to connect thru VA using this id and the new password I still get the "User authentication failed" error message.
    Can anyone please tell me what I'm doing wrong?
    Thanks in advance for any help.
    David.

    Hi,
    During the installation the SAPINST asks for a Administrator  Password.. This password is very important.
    We had kept same passwords for all userids to start with.
    This helped reduce lot of confusion.
    Warning: if you enter the wrong password 5 times, the userid 'Administrator' gets locked.
    However there is an Emergency password recovery procedures.
    Try this link
    http://help.sap.com/saphelp_erp2004/helpdata/en/3a/4a0640d7b28f5ce10000000a155106/frameset.htm
    Hope that helps
    Regards,
    Siddhesh

  • WLC Client excluded - web authentication failed 3 times

    Is there any more I can do with the following? The customer only has 4400 controllers and WCS' both on the highest firmware currently available...
    An example of the alert generated in the event of an excessive authentication failure is as follows:
    Client '08:60:6e:35:7c:29 (172.16.235.133)' which was associated with interface '802.11b/g/n' of AP '25CS-AP21-24SE' is excluded. The reason code is '5(Web Authentication failed 3 times.)'.
    E-mail will be suppressed up to 30 minutes for these alarms.
    I need clarification of the following so that a process can be put in place to show if it is possible to deal with potential threats/attempts to hack into the network as the customers security are not accepting notification only. Therefore please advise:
    - What does ‘excluded’ mean in this scenario? Is the client permanently excluded or only temporarily?
    - If the client is not permanently excluded - if there are multiple occurrences of this alert for the same client can the client be disabled via the WCS console?
    - If necessary could e-mail suppression be turned off - for this alert only?
    Hope you can help but I think they need Prime and ISE to satisfy their security concerns myself!
    BR
    Rockford

    There is a command line syntax which will also allow you to export and import an IAS config to other IAS servers. Then you will be sure they are identical...
    http://support.microsoft.com/kb/883619

  • LDAP authentications fail in APEX

    Does 11g XE Beta support LDAP ?
    We have a number of internal apps running fine in APEX 4.0.2.00.07 installed in Oracle 10g XE.
    Once imported to a new box running 11g XE beta, LDAP authentications always fail, even though the same login processing settings are used. Anybody got LDAP working in APEX on 11g XE ?
    Colin

    Hi Colin,
    though I haven't tested with 11g XE, 11g in general still supports LDAP. However, starting with 11gR1 (and the current beta is based on 11gR2) you need to define ACLs for network access. If you haven't done this, you won't get any LDAP connection out of the database. There is quite a good example for that in the APEX Installation Guide: http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#BABBHCID
    I think this is a good example and can be adopted for other database users easily.
    If that's not the solution in your case, please post the error message you receive when the authentication fails.
    -Udo

  • SAP Business One Integration Services Authentication Failed

    Dear ,
    ALL SAP forum members,
    Iam Using SAP Business One 8.81 PL 06, Micorsoft SQL 2008 R2
    In SLD B1DI and  JDBC, the connections were tested successfully.
    Whenever I log into SBO, I am getting "SAP Business One Integration Services Authentication Failed" error message. I did extensive research on all possible SBO documents dating 1 year back especially in B1ic Troubleshooting Document (New and Old) and searched the length of the SBO forums, but I could not a solution.
    I uninstalled and reinstalled the B1f package many a time. The integration services we re also restarted many times and the connections were all tested successfully. Firewall, AntiVirus also checked.
    In the B1f, in the Monitoring Window, the login is "Ok" but the AuthCheck is "Failed". I checked Authent.Monitor->Authentic Info  and I found the following message under Action message "Wrong Usrname and Password".
    I debugged and i found again "/com.sap.b1i.vplatform.scenarios.authen/sap.Xcelsius/Authenticate_Check.bfd
    But could not understand much of it.
    But i could go no further. The experts are requested to suggest their solutions, If any, to me as Iam stuck in this phase for the last 3 week
    I hope some experts will guide me over this issue
    Thanks and regards
    Ashish Gupte

    Hi Konstantin Ryahovsky
    Thanks for your reply. My problem is solved.
    And frankly speaking i dont know how it was solved. I have not uninstall, install ,not even i had restarted the server also.
    only change i did in SLD >> Maintainance >>> cfg Runtime >>>> Put server IP address instead of server Name and restarted the services.
    Thanks & regards
    Ashish Gupte

  • Toshiba EXCITE Pro - WIFI connection. Authentication failed after update

    Hello.
    Just received this Tablet.
    Everything seemed ok while updating to the latest version (did that first to solve the heat problems).
    After the last update *i lost my WIfi connection. Authentication failed* (didnt change something - was connecting - updating ok 1 minute before the last update).
    After that i started testing ,Wps connection , No security Wifi etc etc.
    *Finally at a random time (and with the initial settings) i got connected*. After i shut down the tablet the same problem occured.
    After doing the same things again i finally got connected and this time it seems to be ok, even after i shut down the tablet.
    However this is frustrating.
    Maybe you have to sort this out?
    I have seen and other people returning this tablet after having this problem.
    It is not a hardware problem since its working ok before the update.
    Of course tried factory reset twice.
    Hope i dont have this problem again, *but i am informing in hope that you fix this in a future update.*

    Toshiba sent me the fix for this. Figured I would use Facebook and they sorted a solution straight away.
    It requires a complete reset. Not the soft reset from within Android.
    I'll post it here as they will check through moderation I guess.
    Thanks for sending a private message Ben. For us to get this resolved for you we would advise to perform a reset from the Android system recovery menu, to do the reset please follow these steps:
    The reset process will delete any data, settings, and applications on your tablet. You must have a backup of any data you wish to keep before proceeding.
    1. Make sure the tablet is off and not in standby.
    2. Hold down the Volume Up and Power buttons simultaneously until the two Android icons appear.
    3. Use the volume buttons to select the white box on the right.
    4. Once selected, press the power button.
    5. Use the volume buttons to select wipe cache partition and then press the power button.
    6. Select Yes and press the power button.
    7. Use the volume buttons to select wipe data/factory reset and then press the power button.
    8. Select Yes and press the power button.
    9. The tablet will now reset.
    If you have any issues after the reset please get back to us as soon as possible!
    Its been working well ever since. I guess the cache clean part might be the main one. You'll have to select the reboot yourself as I did at the end.
    Might be best to use Facebook i'll see if I can find my post as the response was quick and efficient unlike their responses in here. I.e nowt from them so far.
    They needed my name and serial numbers probably to log problems etc.
    Message was edited by: bensimmo

Maybe you are looking for

  • Is there a dark-red pixel in the middle of my ipad 2 screen, Apple Staff ignored it with rude manner.

    Is there a dark-red pixel in the middle of my ipad 2 screen, I 've just it for 6 days. After that I went the store (Thailand) to turn it, they told me that it's a dead pixel and Apple won't replace it to the new one - there must be more than 3 to cla

  • I have a Black Macbook 4,1, penryn 2.4GHz, snow leopard 10.6.7 with 8GB Ram

    Yes 8GB Ram. It all goes great until it enters in screensaver or sleep mode (i can't detect) or else i try to run some virtual machines (it doesn't matter if it's virtualbox, fusion or paralles). The van start get all crazy like the computer it's abo

  • Solved Acer v3 571G laptop dual boot windows 8.1 help partitioning

    I have made a usb installation drive and have got as far as the root prompt on installation after having the uefi issue with loader and using the hashtool successfully on the wiki page.  However I did not go any further because I had not the partitio

  • Lightroom 5 with CS5 Suite

    I use the CS5 Design Standard Edition. Now I thought about using Lightroom additionally, and acquire it. I have read that Lightroom works with Camera Raw in Version 8. Camera Raw in version 8 can not be applied to CS 5. But I do not want to update my

  • Photoshop starter album 3.2 directional problem

    downloaded 3.2 some time ago photos are horizontal in preview but print verically at that time i tried to find info about this and swear i found a site that addressed this problem and gave another download to correct it decided to wait to download to