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

Small fix for integration testing

parent cec1067f
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO ...@@ -205,7 +205,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
final DN ownerDN, final String description, final DN ownerDN, final String description,
final Set<User<? extends Principal>> users, final Set<User<? extends Principal>> users,
final Set<Group> groups) final Set<Group> groups)
throws UserNotFoundException, LDAPException, TransientException throws UserNotFoundException, LDAPException, TransientException, AccessControlException
{ {
// add new group // add new group
List<Attribute> attributes = new ArrayList<Attribute>(); List<Attribute> attributes = new ArrayList<Attribute>();
...@@ -751,7 +751,16 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO ...@@ -751,7 +751,16 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
GroupNotFoundException, UserNotFoundException GroupNotFoundException, UserNotFoundException
{ {
User<T> user = new User<T>(userID); User<T> user = new User<T>(userID);
DN userDN = userPersist.getUserDN(user); DN userDN = null;
try
{
userDN = userPersist.getUserDN(user);
}
catch (UserNotFoundException e)
{
// no anonymous searches
throw new AccessControlException("Not authorized to search");
}
Collection<DN> groupDNs = new HashSet<DN>(); Collection<DN> groupDNs = new HashSet<DN>();
if (role == Role.OWNER) if (role == Role.OWNER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment