Skip to content

Commit 234ed9f

Browse files
committed
Merge release branch 4.7 to 4.8
* 4.7: Set default networkDomain to empty instead of username
2 parents 126a039 + f434f50 commit 234ed9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LinkDomainToLdapCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void execute() throws ServerApiException {
8282
if (account == null) {
8383
try {
8484
UserAccount userAccount = _accountService.createUserAccount(admin, "", ldapUser.getFirstname(), ldapUser.getLastname(), ldapUser.getEmail(), null,
85-
admin, Account.ACCOUNT_TYPE_DOMAIN_ADMIN, domainId, admin, null, UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
85+
admin, Account.ACCOUNT_TYPE_DOMAIN_ADMIN, domainId, null, null, UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
8686
response.setAdminId(String.valueOf(userAccount.getAccountId()));
8787
s_logger.info("created an account with name " + admin + " in the given domain " + domainId);
8888
} catch (Exception e) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private void enableUserInCloudStack(UserAccount user) {
119119

120120
private void createCloudStackUserAccount(LdapUser user, long domainId, short accountType) {
121121
String username = user.getUsername();
122-
_accountManager.createUserAccount(username, "", user.getFirstname(), user.getLastname(), user.getEmail(), null, username, accountType, domainId, username, null,
122+
_accountManager.createUserAccount(username, "", user.getFirstname(), user.getLastname(), user.getEmail(), null, username, accountType, domainId, null, null,
123123
UUID.randomUUID().toString(), UUID.randomUUID().toString(), User.Source.LDAP);
124124
}
125125

0 commit comments

Comments
 (0)