Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Kevin Jackson
I am trying to configure a JNDIRealm to authenticate against an Active Directory. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm The authentication seems to work but I wonder how to map LDAP groups to security roles. I do not want to add groups in the LDAP server, but to

Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Jérôme Delattre
2008/10/9 Kevin Jackson [EMAIL PROTECTED]: I am trying to configure a JNDIRealm to authenticate against an Active Directory. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm The authentication seems to work but I wonder how to map LDAP groups to security roles. I do not

Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Juergen Weber
Geronimo maps roles to security principals: http://cwiki.apache.org/GMOxDOC10/jboss-to-geronimo-security-migration.html Maybe this feature could be ported into tomcat. On Thu, Oct 9, 2008 at 3:18 PM, Kevin Jackson [EMAIL PROTECTED] wrote: I am trying to configure a JNDIRealm to authenticate

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/9/23 Jérôme Delattre [EMAIL PROTECTED] Hello, Env: Tomcat 6.0.18 / Java 6 / Windows I am trying to configure a JNDIRealm to authenticate against an Active Directory. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm The authentication seems to work but I wonder how

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Felix Schumacher
Hi Jerome, have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Consider having an objectClass tomcatRoleMapping which has one attribute tomcatRole. Than with your mapping like below securityrole1=group1,group2,group4

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Caldarale, Charles R
From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Even that's not necessary. The servlet security model already has

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Felix Schumacher
Am Mittwoch, den 08.10.2008, 12:04 -0500 schrieb Caldarale, Charles R: From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/10/8 Caldarale, Charles R [EMAIL PROTECTED] From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Even

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/10/8 Felix Schumacher [EMAIL PROTECTED]: Hi Jerome, have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Consider having an objectClass tomcatRoleMapping which has one attribute tomcatRole. Than with your mapping like below

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Delattre Subject: Re: JNDIRealm - mapping LDAP group to security role What should I do with it? add the same security-role-ref for each LDAP group to all my Servlets? sound strange... Yes, you're right; I missed

Re: JNDIRealm - mapping LDAP group to security role

2008-09-28 Thread Jérôme Delattre
No idea? I thought it was a common use case ... Jerome 2008/9/23 Jérôme Delattre [EMAIL PROTECTED] Hello, Env: Tomcat 6.0.18 / Java 6 / Windows I am trying to configure a JNDIRealm to authenticate against an Active Directory.

Re: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Jérôme Delattre
I do not want to add groups in the LDAP server, but to map existing ones to the roles defined in my web application instead. Perhaps you can use the security-role-ref declaration; look in section 12 of the servlet spec. If I remember well the security-role-ref just creates an alias on an

RE: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Delattre Subject: Re: JNDIRealm - mapping LDAP group to security role If I remember well the security-role-ref just creates an alias on an existing security-role for servlets. It's not related to the mapping between my

Re: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Jérôme Delattre
If I remember well the security-role-ref just creates an alias on an existing security-role for servlets. It's not related to the mapping between my system groups and the application roles. O.k., I'm confused. Isn't an alias just what you need to do the mapping from any role names used