Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Authentication LDAP

Thread view: 
carlos_brazil - 22 Nov 2006 10:24 GMT
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?
rxreyn3@gmail.com - 25 Nov 2006 07:18 GMT
I am not familiar with sunone, but does it support more than one type
of authentication?

Ryan

> help me please ,
> I am using SUNONE 8. 2 with LDAP.
[quoted text clipped - 54 lines]
>
> The where this the mistake?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.