mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.7 to 4.8
* 4.7: Set default networkDomain to empty instead of username
This commit is contained in:
commit
234ed9fb0d
@ -82,7 +82,7 @@ public class LinkDomainToLdapCmd extends BaseCmd {
|
||||
if (account == null) {
|
||||
try {
|
||||
UserAccount userAccount = _accountService.createUserAccount(admin, "", ldapUser.getFirstname(), ldapUser.getLastname(), ldapUser.getEmail(), null,
|
||||
admin, Account.ACCOUNT_TYPE_DOMAIN_ADMIN, domainId, admin, null, UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
|
||||
admin, Account.ACCOUNT_TYPE_DOMAIN_ADMIN, domainId, null, null, UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
|
||||
response.setAdminId(String.valueOf(userAccount.getAccountId()));
|
||||
s_logger.info("created an account with name " + admin + " in the given domain " + domainId);
|
||||
} catch (Exception e) {
|
||||
|
||||
@ -119,7 +119,7 @@ public class LdapAuthenticator extends AdapterBase implements UserAuthenticator
|
||||
|
||||
private void createCloudStackUserAccount(LdapUser user, long domainId, short accountType) {
|
||||
String username = user.getUsername();
|
||||
_accountManager.createUserAccount(username, "", user.getFirstname(), user.getLastname(), user.getEmail(), null, username, accountType, domainId, username, null,
|
||||
_accountManager.createUserAccount(username, "", user.getFirstname(), user.getLastname(), user.getEmail(), null, username, accountType, domainId, null, null,
|
||||
UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user