Authentication LDAP

C

carlos_brazil

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?
 
R

rxreyn3

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

Ryan
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top