Loading projects/cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/ldap/LdapGroupDAO.java +13 −4 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO final DN ownerDN, final String description, final Set<User<? extends Principal>> users, final Set<Group> groups) throws UserNotFoundException, LDAPException, TransientException throws UserNotFoundException, LDAPException, TransientException, AccessControlException { // add new group List<Attribute> attributes = new ArrayList<Attribute>(); Loading Loading @@ -751,7 +751,16 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO GroupNotFoundException, UserNotFoundException { 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>(); if (role == Role.OWNER) Loading Loading
projects/cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/ldap/LdapGroupDAO.java +13 −4 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO final DN ownerDN, final String description, final Set<User<? extends Principal>> users, final Set<Group> groups) throws UserNotFoundException, LDAPException, TransientException throws UserNotFoundException, LDAPException, TransientException, AccessControlException { // add new group List<Attribute> attributes = new ArrayList<Attribute>(); Loading Loading @@ -751,7 +751,16 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO GroupNotFoundException, UserNotFoundException { 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>(); if (role == Role.OWNER) Loading