Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Authentication LDAP

Reply
Thread Tools

Authentication LDAP

 
 
carlos_brazil
Guest
Posts: n/a
 
      11-22-2006
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|_Threa dID=13;|SEC5046:
Audit: Authentication refused for [p933396].

WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_Threa dID=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.LDAPRe alm
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?


 
Reply With Quote
 
 
 
 
rxreyn3@gmail.com
Guest
Posts: n/a
 
      11-25-2006
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|_Threa dID=13;|SEC5046:
> Audit: Authentication refused for [p933396].
>
> WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_Threa dID=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.LDAPRe alm
> 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?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments