| 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,
| Filename |
ldap.jpeg |
Download
|
| Description |
|
| Filesize |
14 Kbytes
|
| Downloaded: |
3 time(s) |
| Filename |
conf.jpeg |
Download
|
| Description |
|
| Filesize |
4 Kbytes
|
| Downloaded: |
4 time(s) |
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6371
|
|
|
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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
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: 6371
|
|
|
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: 80
|
|
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/
|
 |
 |
|
|
subject: OpenLdap Authentication migration from Jboss5.1 to WebLogic 10.3.3
|
|
|