Skip to content

Commit e3a1288

Browse files
karuturiyadvr
authored andcommitted
CLOUDSTACK-6210: LDAP:listLdapUsers api throws exception when we click on "Add LDAP Account" This occurs when ldap basedn is not configured. Throwing an IAE and a proper message is returned from the api call
Signed-off-by: Ian Duffy <ian@ianduffy.ie> (cherry picked from commit 4552ec6) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Conflicts: plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapUserManager.java
1 parent 2de9388 commit e3a1288

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapUserManager.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
import org.apache.commons.lang.StringUtils;
3333

34+
import org.apache.commons.lang.StringUtils;
35+
3436
public class LdapUserManager {
3537

3638
@Inject
@@ -193,4 +195,4 @@ public NamingEnumeration<SearchResult> searchUsers(final String username, final
193195
}
194196
return context.search(basedn, generateSearchFilter(username), controls);
195197
}
196-
}
198+
}

0 commit comments

Comments
 (0)