Replaced upn by samaccountname as accountname in exchange accounts

ContactGeneralSettings reformatted
This commit is contained in:
robvde 2012-11-24 22:17:37 +04:00
parent 8d42682200
commit 695c0bc94f
5 changed files with 55 additions and 57 deletions

View file

@ -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();