Update #42: AD Migration
Refactor to target specific Domain Controllers, with failover.
This commit is contained in:
@@ -72,6 +72,9 @@ namespace Disco.Models.Repository
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DeviceDomainId == null)
|
||||
return null;
|
||||
|
||||
var index = DeviceDomainId.IndexOf('\\');
|
||||
return index < 0 ? DeviceDomainId : DeviceDomainId.Substring(index + 1);
|
||||
}
|
||||
@@ -82,6 +85,9 @@ namespace Disco.Models.Repository
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DeviceDomainId == null)
|
||||
return null;
|
||||
|
||||
var index = DeviceDomainId.IndexOf('\\');
|
||||
return index < 0 ? null : DeviceDomainId.Substring(0, index);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Disco.Models.Repository
|
||||
|
||||
public void UpdateSelf(User u)
|
||||
{
|
||||
if (!this.UserId.Equals(u.UserId, StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!this.UserId.Equals(u.UserId, StringComparison.OrdinalIgnoreCase))
|
||||
throw new ArgumentException("User Id's do not match", "u");
|
||||
|
||||
if (this.Surname != u.Surname)
|
||||
|
||||
Reference in New Issue
Block a user