karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1099704 - /karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java
Date Thu, 05 May 2011 06:58:30 GMT
Author: jbonofre
Date: Thu May  5 06:58:30 2011
New Revision: 1099704

URL: http://svn.apache.org/viewvc?rev=1099704&view=rev
Log:
[KARAF-606] Allow LDAPLoginModule to supply role "DN" from LDAP group search.

Modified:
    karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java

Modified: karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java?rev=1099704&r1=1099703&r2=1099704&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java
(original)
+++ karaf/branches/karaf-2.2.x/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPLoginModule.java
Thu May  5 06:58:30 2011
@@ -40,9 +40,6 @@ import java.util.Map;
  * <p>
  * Karaf JAAS login module which uses a LDAP backend.
  * </p>
- *
- * @author jbonofre
- * @author gnodet
  */
 public class LDAPLoginModule extends AbstractKarafLoginModule {
 
@@ -224,6 +221,7 @@ public class LDAPLoginModule extends Abs
             } else {
                 controls.setSearchScope(SearchControls.ONELEVEL_SCOPE);
             }
+            controls.setReturningAttributes(new String[]{ roleNameAttribute });
             logger.debug("Looking for the user roles in LDAP with ");
             logger.debug("  base DN: " + roleBaseDN);
             roleFilter = roleFilter.replaceAll("%u", user);



Mime
View raw message