Replaced upn by samaccountname as accountname in exchange accounts
ContactGeneralSettings reformatted
This commit is contained in:
parent
8d42682200
commit
695c0bc94f
5 changed files with 55 additions and 57 deletions
|
@ -371,7 +371,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
userPath = GetUserPath(organizationId, loginName);
|
||||
if (!ActiveDirectoryUtils.AdObjectExists(userPath))
|
||||
{
|
||||
userPath = ActiveDirectoryUtils.CreateUser(path, upn, loginName, displayName, password, enabled);
|
||||
userPath = ActiveDirectoryUtils.CreateUser(path, null, loginName, displayName, password, enabled);
|
||||
DirectoryEntry entry = new DirectoryEntry(userPath);
|
||||
ActiveDirectoryUtils.SetADObjectProperty(entry, ADAttributes.UserPrincipalName, upn);
|
||||
entry.CommitChanges();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue