Feature #42: Active Directory Interop Upgrade
AD Interop moved to Disco.Services; Supports multi-domain environments, sites, and searching restricted with OUs.
This commit is contained in:
@@ -8,25 +8,29 @@ namespace Disco.Models.Interop.ActiveDirectory
|
||||
{
|
||||
public class ActiveDirectoryUserAccount : IActiveDirectoryObject
|
||||
{
|
||||
public string DisplayName { get; set; }
|
||||
public string DistinguishedName { get; set; }
|
||||
public string Domain { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string GivenName { get; set; }
|
||||
public List<string> Groups { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string SamAccountName { get; set; }
|
||||
|
||||
public string DistinguishedName { get; set; }
|
||||
public string SecurityIdentifier { get; set; }
|
||||
public string Path { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string SamAccountName { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Surname { get; set; }
|
||||
public string GivenName { get; set; }
|
||||
public string Phone { get; set; }
|
||||
|
||||
public List<string> Groups { get; set; }
|
||||
|
||||
public Dictionary<string, object[]> LoadedProperties { get; set; }
|
||||
|
||||
public User ToRepositoryUser()
|
||||
{
|
||||
return new User
|
||||
{
|
||||
Id = this.SamAccountName,
|
||||
UserId = this.Domain + "\\" + this.SamAccountName,
|
||||
DisplayName = this.DisplayName,
|
||||
Surname = this.Surname,
|
||||
GivenName = this.GivenName,
|
||||
@@ -35,5 +39,6 @@ namespace Disco.Models.Interop.ActiveDirectory
|
||||
};
|
||||
}
|
||||
|
||||
public string NetBiosId { get { return string.Format(@"{0}\{1}", Domain, SamAccountName); } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user