• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OpenLdap Authentication migration from Jboss5.1 to WebLogic 10.3.3

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 - https://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
[Thumbnail for conf.jpeg]
ldap.jpeg
[Thumbnail for ldap.jpeg]
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Prakash Pethe
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Ranch Hand
Posts: 98
Oracle Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic