File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes OpenLdap Authentication migration from Jboss5.1  to WebLogic 10.3.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "OpenLdap Authentication migration from Jboss5.1  to WebLogic 10.3.3 " Watch "OpenLdap Authentication migration from Jboss5.1  to WebLogic 10.3.3 " New topic
Author

OpenLdap Authentication migration from Jboss5.1 to WebLogic 10.3.3

Prakash Pethe
Greenhorn

Joined: Jan 19, 2012
Posts: 7
Hi,

We are currently working on Migration project where application will Migrate from Jboss 5.1 to WebLogic 10.3. In JBoss the configured Realm as below in server.xml file:

<Realm className="org.apache.catalina.realm.JNDIRealm"
debug="99"
connectionName="cn=Manager,dc=mycompany,dc=com"
connectionPassword="XXXXXXX"
connectionURL="ldap://XX.XX.XX.XXX:389"
userPassword="userPassword"
userPattern="uid={0},ou=people,dc=mycompany,dc=com"
roleBase="ou=groups,dc=mycompany,dc=com" roleName="cn"
roleSearch="(uniqueMember={0})" />

Also we have below configuration in web.xml for our Web Application

<security-constraint>
<display-name>Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>manager</role-name>
</security-role>

It works perfect with Jboss. Can you please let me know where I can do similar configuration in web logic 10.3?

I know we can done this using Admin console but not sure which property from server.xml will mapped to which field in Web Logic conf.xml?

I have also seen here - http://www.coderanch.com/t/421099/BEA-Weblogic/weblogic-open-LDAP-authentication#1857651 but still got some issues.

Please see OpenLdap ldif file and conf.xml file for more details.

Regards,


[conf.jpeg]

[ldap.jpeg]

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Weblogic has similar realms that can be configured through the admin console. I think the only difference is that the role and principal mapping through web.xml is not the same. I cannot remember the exact detail but the group and role name (if I am not mistaken) should explicitly be set when using weblogic 10 and above.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Prakash Pethe
Greenhorn

Joined: Jan 19, 2012
Posts: 7
Thanks for response..!
But issue is that we are not able to see group name for users in weblogic admin console.

Regards,
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

That usually indicates that the LDAP configuration on the console is flawed. Is there a group name filter that was configured ? You can traverse to the logging section of the console and add additional logging categories that will log security events at the finest level. That can help bring out the problem.
Prakash Pethe
Greenhorn

Joined: Jan 19, 2012
Posts: 7
Hi Deepak,

I have attached the OpenLdap ldif file, please save the files and chage extension as ldif/txt.
You can also see conf file with changing it to XML extension and let me know where I am making mistake.

You have also suggested some log option for admin console for secuirty (You can traverse to the logging section of the console and add additional logging categories that will log security events at the finest level. That can help bring out the problem)

Can you please let me know where I can configure this?

Regards,
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Hi Prakash,

Refer the below post for the OpenLDAP configuration.

http://blogs.oracle.com/jamesbayer/entry/using_openldap_with_weblogic_s

http://weblogic-wonders.com/weblogic/2010/01/22/configuring-opends-with-weblogic-server/

Regards,
Anandraj
http://weblogic-wonders.com

Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
jQuery in Action, 2nd edition
 
subject: OpenLdap Authentication migration from Jboss5.1 to WebLogic 10.3.3