I have been attempting to get Jetspeed to talk to the Fedora directory server without success and it looks as though the requests being made by Jetspeed are incorrect. I have configured the the override.properties three different ways and had different results with each. The structure of the LDAP directory is a little different than the sample, as there is dc=com at the top and an ou=jetspeed below it.

CASE 1 =========================
override.properties

ldap.url=ldap://localhost:389
ldap.base=dc=com
ldap.userDn=uid=cmarshall,ou=people,dc=a100sys,dc=com
ldap.password=< password >
ldap.context.factory=com.sun.jndi.ldap.LdapCtxFactory
ldap.user.filter = (objectclass=person)
ldap.search.scope = 2
ldap.user.searchBase=ou=People,ou=sevenSeas,ou=jetspeed,dc=com
ldap.user.entryPrefix=uid
ldap.role.searchBase=ou=Roles,ou=sevenSeas,ou=jetspeed,dc=com
ldap.group.searchBase=ou=Groups,ou=sevenSeas,ou=jetspeed,dc=com

Jetspeed successfully binds with the ldap.userDn  and makes the request

SRCH base="ou=People,ou=sevenSeas,ou=jetspeed,dc=com" scope=2 filter="(&(uid=cmarshall)(objectClass=person))" attrs="objectClass javaSerializedData javaClassName javaFactory javaCodebase javaReferenceAddress javaClassNames javaremotelocation"
RESULT err=0 tag=101 nentries=1 etime=0

Jetspeed then succesfully binds again with the ldap.userDN and makes the request

SRCH base="ou=People,ou=sevenSeas,ou=jetspeed,dc=com,dc=com" scope=2 filter="(&(objectClass=inetOrgPerson)(&(objectClass=inetOrgPerson)(uid=cmarshall))) attrs=ALL
RESULT err=32 tag=101 nentries=0 etime=0

Note the repeat of dc=com,dc=com

CASE 2 ==========================
override.properties

ldap.url=ldap://localhost:389
ldap.base=dc=com
ldap.userDn=uid=cmarshall,ou=people,dc=a100sys,dc=com
ldap.password=< password >
ldap.context.factory=com.sun.jndi.ldap.LdapCtxFactory
ldap.user.filter = (objectclass=person)
ldap.search.scope = 2
ldap.user.searchBase=ou=People,ou=sevenSeas,ou=jetspeed,dc=com
ldap.user.entryPrefix=uid
ldap.role.searchBase=ou=Roles,ou=sevenSeas,ou=jetspeed,dc=com
ldap.group.searchBase=ou=Groups,ou=sevenSeas,ou=jetspeed,dc=com

Jetspeed successfully binds with the ldap.userDn and makes the request

SRCH base="ou=People,ou=sevenSeas,ou=jetspeed,dc=com" scope=2 filter="(&(uid=cmarshall)(objectClass=person))" attrs="objectClass javaSerializedData javaClassName javaFactory javaCodebase javaReferenceAddress javaClassNames javaremotelocation"
RESULT err=0 tag=101 nentries=1 etime=0

Jetspeed attempts to bind with

BIND dn="uid=CMarshall,ou=Peopleou=sevenSeasou=jetspeeddc=com" method=128 version=3
RESULT err=32 tag=97 nentries=0 etime=0

Yes, the commas that should be there are really missing.

CASE 3 =============================
override.properties

ldap.url=ldap://localhost:389
ldap.base=dc=com
ldap.userDn=uid=cmarshall,ou=people,dc=a100sys,dc=com
ldap.password=< password >
ldap.context.factory=com.sun.jndi.ldap.LdapCtxFactory
ldap.user.filter = (objectclass=person)
ldap.search.scope = 2
ldap.user.searchBase=ou=People,ou=sevenSeas,ou=jetspeed
ldap.user.entryPrefix=uid
ldap.role.searchBase=ou=Roles,ou=sevenSeas,ou=jetspeed
ldap.group.searchBase=ou=Groups,ou=sevenSeas,ou=jetspeed

Jetspeed successfully binds with the ldap.userDn amd makes the request

SRCH base="ou=People,ou=sevenSeas,ou=jetspeed" scope=2 filter="(&(uid=cmarshall)(objectClass=person))" attrs="objectClass javaSerializedData javaClassName javaFactory javaCodebase javaReferenceAddress javaClassNames javaremotelocation"
RESULT err=32 tag=101 nentries=0 etime=0

Note that the dc=com has not appended to the end of the search base.

Suggestions?

Chris Marshall


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to