I'm trying to run OpenLDAP under weblogic 5.1 but i haven't had success.
Here is my activities log:
1. Added weblogic.security.realmClass=weblogic.security.ldaprealm.LDAPRealm on
my weblogic.properties file as documentation says.
2. Edited the ldapreal.properties file as follows:
server.alias=openldap
openldap.server.host=128.1.4.2
openldap.server.port=389
openldap.server.principal=cn=Manager,dc=aplicacion,dc=com
openldap.server.credential=secret
openldap.user.dn=dc=aplicacion,dc=com
openldap.user.filter=(&(uid=%u)(objectclass=person))
openldap.group.dn=ou=groups, dc=aplicacion, dc=com
openldap.group.filter=(&(cn=%g)(objectclass=person))
openldap.membership.filter=(&(uniquemember=%M)(objectclass=person))
3. Tried to run the startweblogic.bat file (under windows 98) and got this error:
(please see below)
Reviewing documentation i found this clause:
weblogic.security.cache.debug=true
But it does not do nothing (at least i can't see anything in the log)
I'm pretty sure LDAP is working because i can connect a client (LDAP Browser /
Editor) from my windows machine to the Linux box (which is the one running LDAP
and i can do whatever i want with this tool. But when i try with weblogic i just
can get errors
Does someone has any experience with this matter?
Thanks in advance
Sergio Ríos
PS: this is the error message:
Unable to initialize server: weblogic.security.ldaprealm.LDAPRealmException: cau
ght unexpected exception - with nested exception:
[netscape.ldap.LDAPException: error result (32); matchedDN = dc=aplicacion,dc=co
m]
fatal initialization exception
weblogic.security.ldaprealm.LDAPRealmException: caught unexpected exception -
wi
th nested exception:
[netscape.ldap.LDAPException: error result (32); matchedDN = dc=aplicacion,dc=co
m]
at weblogic.security.ldaprealm.LDAPDelegate.handleException(LDAPDelegate
java:865)
at weblogic.security.ldaprealm.LDAPDelegate.getGroup(LDAPDelegate.java,
Compiled Code)
at weblogic.security.ldaprealm.LDAPRealm.getGroup(LDAPRealm.java:75)
at weblogic.security.acl.CachingRealm.getGroup(CachingRealm.java:1507)
at weblogic.security.acl.CachingRealm.getPrincipal(CachingRealm.java:109
2)
at weblogic.security.acl.CachingRealm.addPermission(CachingRealm.java,
C
ompiled Code)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compi
led Code)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1829)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:844)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java, Compiled Code)
at weblogic.Server.main(Server.java:58)
C:\win\Weblogic>goto finish
C:\win\Weblogic>ENDLOCAL
Comando o nombre de archivo no válido
C:\win\Weblogic>
C:\win\Weblogic>
You may have better luck posting this question in
weblogic.developer.interest.security.
Thanks,
Michael
Sergio Rios wrote:
--
Developer Relations Engineer
BEA Support