Update: Lync: Support for multiple sipdomains per tenant.
Fixed: Hosted Organizations: user principal name updated when settings primary email address. User principal name will not change when changing the primary email address. SIP address is based on EmailAddress
This commit is contained in:
parent
a65b72f858
commit
867e6a96f2
4 changed files with 86 additions and 11 deletions
|
@ -159,6 +159,14 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
collection.Value = value;
|
||||
}
|
||||
|
||||
public static void SetADObjectPropertyValue(DirectoryEntry oDE, string name, string[] values)
|
||||
{
|
||||
PropertyValueCollection collection = oDE.Properties[name];
|
||||
collection.Value = values;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void SetADObjectPropertyValue(DirectoryEntry oDE, string name, Guid value)
|
||||
{
|
||||
PropertyValueCollection collection = oDE.Properties[name];
|
||||
|
@ -177,6 +185,19 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
return entry.Properties.Contains(name) ? entry.Properties[name][0] : null;
|
||||
}
|
||||
|
||||
public static string[] GetADObjectPropertyMultiValue(DirectoryEntry entry, string name)
|
||||
{
|
||||
if (!entry.Properties.Contains(name))
|
||||
return null;
|
||||
|
||||
List<string> returnList = new List<string>();
|
||||
for (int i = 0; i < entry.Properties[name].Count; i++)
|
||||
returnList.Add(entry.Properties[name][i].ToString());
|
||||
|
||||
return returnList.ToArray();
|
||||
}
|
||||
|
||||
|
||||
public static string GetADObjectStringProperty(DirectoryEntry entry, string name)
|
||||
{
|
||||
object ret = GetADObjectProperty(entry, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue