Skip to content
Snippets Groups Projects
Commit 1e40e7b4 authored by Jeff Burke's avatar Jeff Burke
Browse files

Merge branch 's1651' of ssh://mach16/usr/cadc/dev/git/wopencadc into s1651

parents d60502f0 aa5c3e6b
No related branches found
No related tags found
No related merge requests found
......@@ -809,14 +809,14 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
* @throws ca.nrc.cadc.ac.GroupNotFoundException
*/
protected Group getGroup(final DN groupDN)
throws LDAPException, GroupNotFoundException
throws LDAPException, GroupNotFoundException, UserNotFoundException
{
Filter filter = Filter.createEqualityFilter("entrydn",
groupDN.toNormalizedString());
SearchRequest searchRequest = new SearchRequest(
config.getGroupsDN(), SearchScope.SUB, filter,
new String[] {"cn", "description"});
"cn", "description", "owner");
searchRequest.addControl(
new ProxiedAuthorizationV2RequestControl("dn:" +
......@@ -832,7 +832,10 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
throw new GroupNotFoundException(groupDN.toNormalizedString());
}
Group group = new Group(searchResult.getAttributeValue("cn"));
Group group = new Group(searchResult.getAttributeValue("cn"),
userPersist.getMember(
new DN(searchResult.getAttributeValue(
"owner"))));
group.description = searchResult.getAttributeValue("description");
return group;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment