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

Small fix

parent 62110d22
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO ...@@ -197,7 +197,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
{ {
LdapDAO.checkLdapResult(e.getResultCode(), LdapDAO.checkLdapResult(e.getResultCode(),
e.getDiagnosticMessage()); e.getDiagnosticMessage());
return null; //TODO throw new RuntimeException("Unexpected LDAP exception", e);
} }
} }
...@@ -303,8 +303,8 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO ...@@ -303,8 +303,8 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
catch (LDAPException e) catch (LDAPException e)
{ {
LdapDAO.checkLdapResult(e.getResultCode(), e.getDiagnosticMessage()); LdapDAO.checkLdapResult(e.getResultCode(), e.getDiagnosticMessage());
throw new RuntimeException("Unexpected LDAP exception", e);
} }
return null;
} }
...@@ -788,8 +788,8 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO ...@@ -788,8 +788,8 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
for (SearchResultEntry result : results.getSearchEntries()) for (SearchResultEntry result : results.getSearchEntries())
{ {
String groupName = result.getAttributeValue("cn"); String groupName = result.getAttributeValue("cn");
groups.add(new Group(groupName, null));
} }
} }
catch (LDAPException e) catch (LDAPException e)
{ {
......
...@@ -342,8 +342,8 @@ public class LdapUserDAO<T extends Principal> extends LdapDAO ...@@ -342,8 +342,8 @@ public class LdapUserDAO<T extends Principal> extends LdapDAO
catch (LDAPException e) catch (LDAPException e)
{ {
LdapDAO.checkLdapResult(e.getResultCode(), e.getDiagnosticMessage()); LdapDAO.checkLdapResult(e.getResultCode(), e.getDiagnosticMessage());
throw new RuntimeException("Unexpected LDAP exception", e);
} }
return false;
} }
/** /**
......
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