Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

import javax.inject.Inject;

import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.response.DomainResponse;
import org.apache.log4j.Logger;

import org.apache.cloudstack.api.APICommand;
Expand Down Expand Up @@ -56,6 +58,9 @@ public class LdapListUsersCmd extends BaseListCmd {
description = "Determines whether all ldap users are returned or just non-cloudstack users")
private String listType;

@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, required = false, entityType = DomainResponse.class, description = "linked domain")
private Long domainId;

public LdapListUsersCmd() {
super();
}
Expand Down Expand Up @@ -83,7 +88,7 @@ public void execute() throws ServerApiException {
List<LdapUserResponse> ldapResponses = null;
final ListResponse<LdapUserResponse> response = new ListResponse<LdapUserResponse>();
try {
final List<LdapUser> users = _ldapManager.getUsers(null);
final List<LdapUser> users = _ldapManager.getUsers(domainId);
ldapResponses = createLdapUserResponse(users);
} catch (final NoLdapUserMatchingQueryException ex) {
ldapResponses = new ArrayList<LdapUserResponse>();
Expand Down
2 changes: 1 addition & 1 deletion ui/scripts/ui-custom/accountsWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}
});
$.ajax({
url: createURL("listLdapUsers&listtype=new"),
url: createURL("listLdapUsers&listtype=new&domainid=" + args.currentData.domainid),
dataType: "json",
async: false,
success: function(json) {
Expand Down