Skip to content
Snippets Groups Projects
Commit cec1067f authored by Adrian Damian's avatar Adrian Damian
Browse files

Temporary fix integration testing

parent 19738385
No related branches found
No related tags found
No related merge requests found
......@@ -473,7 +473,12 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
throw new GroupNotFoundException(groupID);
}
String groupCN = searchEntry.getAttributeValue("cn");
if (searchEntry.getAttributeValueAsDN("owner") == null)
{
//TODO assume user not allowed to read group
throw new AccessControlException(groupID);
}
DN groupOwner = searchEntry.getAttributeValueAsDN("owner");
User<X500Principal> owner;
......@@ -486,7 +491,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
throw new RuntimeException("BUG: group owner not found");
}
Group ldapGroup = new Group(groupCN, owner);
Group ldapGroup = new Group(groupID, owner);
if (searchEntry.hasAttribute("description"))
{
ldapGroup.description =
......
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