Java App Server + LDAP?



Hi All -

I'm attempting to get my JSAS9 install working with LDAP
authentication. I can authenticate against my LDAP server just fine
(JSAS9 sends the uid, retrieves the distinguished name from LDAP, then
binds with the distinguished name + password and gets a 'success'
message from LDAP). I don't know how to map either the uid or the
distinguished name to a role, though (I think). Presumably I'd add a
line to the sun-web.xml file, but I've tried assigning the role via
saying:

<security-role-mapping>
<role-name>AllowedRole</role-name>
<principal-name>[uid]</principalname>
<principal-name>CN=[uid]</principalname>
<principal-name>CN=[uid],OU=[orgUnit],dc=mydomain</principal-name>
</security-role-mapping>

The last entry is the complete distinguished name of the uid as
returned by the LDAP server.

None of these work. Each time the auth succeeds (I'm packet sniffing),
but I get permission denied to the app because (I believe) the ldap
distinguished name never gets mapped to a role. The role is made
correctly and has permissions assigned correctly in the web.xml
file...authenticating against my keyfile with a principal-name from the
keyfile gets me in with no trouble. Also, there appears to be no log
entry made of the reason behind the denied permission (I was hoping to
find out what role the user was getting assigned to so I know if I'm
right for sure).

Has anyone done LDAP role assignment, and if so what does yours look
like?

Cheers, and thanks,
Reid

.



Relevant Pages

  • Re: Getting user info via LDAP, authenticating via Kerberos
    ... I can successfully get a Kerberos ticket **if ldap is not listed in nsswitch.conf**. ... I ssh to our server using my domain credentials, ... # The user ID attribute (defaults to uid) ...
    (comp.protocols.kerberos)
  • Re: LDAP Per domain
    ... also index the uidPosix attribute or it will be slooowwww. ... I currently have a server cluster configured to use ldap for auth. ... As long as the uid is unique across all domain (companyA in the above ...
    (comp.unix.solaris)
  • LDAP Authentication
    ... basic user authorization against a NON Microsoft V3 LDAP ... public bool authenticateUser(String uid, String pw) ... There is no such object on the server ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: LDAP Per domain
    ... I currently have a server cluster configured to use ldap for auth. ... Except that we want to allow multiple domain auth on our cluster. ... As long as the uid is unique across all domain (companyA in the above ... or two with the same uidNumber attribute ...
    (comp.unix.solaris)
  • Re: Systembenutzer (0-1000) aus LDAP
    ... kann man das lösen wenn die gleiche uid zb. 100 auf dem einem System ... Benutzer mysql und auf einem anderen dem Benutzer sshd gehört? ... Allerdings würde ich UID 0 nicht im LDAP haben wollen. ...
    (de.comp.os.unix.linux.misc)