Authentication LDAP

Discussion in 'Java' started by carlos_brazil, Nov 22, 2006.

  1. help me please ,
    I am using SUNONE 8. 2 with LDAP.
    I am wanting to do the more authentication the mistake happens.
    sun-appserver-pe8.2|javax.enterprise.system.core.security|_ThreadID=13;|SEC5046:
    Audit: Authentication refused for [p933396].

    WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=13;|Web
    login failed: Login failed: javax.security.auth.login.LoginException:
    LDAP
    bind failed for uid=p933396,ou=People, o=IGP.

    In SUN ONE I created Realm LdapRealm like this:
    class Name = com.sun.enterprise.security.auth.realm.ldap.LDAPRealm
    directory = ldap://cd0000ux056:489
    base-dn = ou=People, o=IGP
    jaas-context = LdapRealm
    group-base-dn = ou=Groups

    In my web. xml

    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>ldapRealm</realm-name>
    <form-login-config>
    <form-login-page>/sistema/jsp/login.jsp</form-login-page>

    <form-error-page>/sistema/jsp/loginInvalido.jsp</form-error-page>
    </form-login-config>
    </login-config>


    In my sun-web.xml

    <security-role-mapping>
    <role-name>administrador</role-name>
    <group-name>admin</group-name>
    </security-role-mapping>
    <realm>ldapRealm</realm>

    see my page

    <html>
    <body>
    <form method="post" action="j_security_check">
    <table>
    <tr><td>Login:</td>
    <td><input size=15 name="j_username">
    </tr>
    <tr><td>Senha:</td>
    <td><input type="password" size=15 name="j_password">
    </tr>
    <tr><td colpsan="2"><input type="submit" value=" Ok ">
    </tr>
    </table>
    </form>
    </body>
    </html>

    The where this the mistake?
    carlos_brazil, Nov 22, 2006
    #1
    1. Advertising

  2. carlos_brazil

    Guest

    I am not familiar with sunone, but does it support more than one type
    of authentication?

    Ryan

    carlos_brazil wrote:
    > help me please ,
    > I am using SUNONE 8. 2 with LDAP.
    > I am wanting to do the more authentication the mistake happens.
    > sun-appserver-pe8.2|javax.enterprise.system.core.security|_ThreadID=13;|SEC5046:
    > Audit: Authentication refused for [p933396].
    >
    > WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=13;|Web
    > login failed: Login failed: javax.security.auth.login.LoginException:
    > LDAP
    > bind failed for uid=p933396,ou=People, o=IGP.
    >
    > In SUN ONE I created Realm LdapRealm like this:
    > class Name = com.sun.enterprise.security.auth.realm.ldap.LDAPRealm
    > directory = ldap://cd0000ux056:489
    > base-dn = ou=People, o=IGP
    > jaas-context = LdapRealm
    > group-base-dn = ou=Groups
    >
    > In my web. xml
    >
    > <login-config>
    > <auth-method>FORM</auth-method>
    > <realm-name>ldapRealm</realm-name>
    > <form-login-config>
    > <form-login-page>/sistema/jsp/login.jsp</form-login-page>
    >
    > <form-error-page>/sistema/jsp/loginInvalido.jsp</form-error-page>
    > </form-login-config>
    > </login-config>
    >
    >
    > In my sun-web.xml
    >
    > <security-role-mapping>
    > <role-name>administrador</role-name>
    > <group-name>admin</group-name>
    > </security-role-mapping>
    > <realm>ldapRealm</realm>
    >
    > see my page
    >
    > <html>
    > <body>
    > <form method="post" action="j_security_check">
    > <table>
    > <tr><td>Login:</td>
    > <td><input size=15 name="j_username">
    > </tr>
    > <tr><td>Senha:</td>
    > <td><input type="password" size=15 name="j_password">
    > </tr>
    > <tr><td colpsan="2"><input type="submit" value=" Ok ">
    > </tr>
    > </table>
    > </form>
    > </body>
    > </html>
    >
    > The where this the mistake?
    , Nov 25, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    526
    Raymond DeCampo
    Feb 21, 2006
  2. rcmn
    Replies:
    1
    Views:
    333
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Nov 6, 2006
  3. Jason Wold

    using LDAP Controls in ruby-ldap

    Jason Wold, Nov 4, 2004, in forum: Ruby
    Replies:
    5
    Views:
    240
  4. Ian Macdonald
    Replies:
    0
    Views:
    215
    Ian Macdonald
    Mar 15, 2005
  5. James Hughes
    Replies:
    4
    Views:
    324
    James Hughes
    Dec 13, 2005
Loading...

Share This Page