Bug Fixes: enrolment, assignment and search order

This commit is contained in:
Gary Sharp committed 2014-04-22 13:55:46 +10:00
1 parent 74df073b29
commit 3cf6d5475d
22 files changed
+310 -127

No files matched your search

@@ -65,7 +65,7 @@ namespace Disco.Services.Interop.ActiveDirectory
System.DateTime? lastLogon = null;
if (!string.IsNullOrEmpty(Device.DeviceDomainId))
if (!string.IsNullOrEmpty(Device.DeviceDomainId) && Device.DeviceDomainId.Contains('\\'))
{
var context = ActiveDirectory.Context;
var deviceSamAccountName = UserExtensions.SplitUserId(Device.DeviceDomainId).Item2 + "$";