Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 71363 invoked from network); 13 Feb 2002 18:21:53 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Feb 2002 18:21:53 -0000 Received: (qmail 26345 invoked by uid 97); 13 Feb 2002 18:21:48 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 26328 invoked by uid 97); 13 Feb 2002 18:21:47 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 26314 invoked by uid 50); 13 Feb 2002 18:21:47 -0000 Date: 13 Feb 2002 18:21:47 -0000 Message-ID: <20020213182147.26312.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 6431] New: - JNDIRealm.getRoles() should return more than a single role attribute X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6431 JNDIRealm.getRoles() should return more than a single role attribute Summary: JNDIRealm.getRoles() should return more than a single role attribute Product: Tomcat 4 Version: 4.0.2 Final Platform: All OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: mteegarden@yahoo.com I am using the jndi realm with a Novell directory. In setting up the role query I am using: roleBase="" roleName="groupMembership" roleSearch="(&(objectClass=person)(mail={1}@akc.org))" roleSubtree="true" So I'm querying the user and getting all of group (role) attributes assigned to it. In getRoles(DirContext, String, String) it does not loop through the list of attributes for the single entity. It only returns the first attribute. I propose it be changed to the following code. //Add enumeration & while to loop through all roles. NamingEnumeration rolesList = attr.getAll(); while (rolesList.hasMore()) { // String role = (String) attr.get(); String role = (String) rolesList.next(); if (debug >= 3) log(" Found role '" + role + "'"); list.add(role); } -- To unsubscribe, e-mail: For additional commands, e-mail: