File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ public class LDAPProperties
3434 public const string OperatingSystem = "operatingsystem" ;
3535 public const string ServicePack = "operatingsystemservicepack" ;
3636 public const string DNSHostName = "dnshostname" ;
37- public const string LAPSExpirationTime = "ms-mcs-admpwdexpirationtime" ;
37+ public const string LAPSExpirationTime = "mslaps-passwordexpirationtime" ;
38+ public const string LegacyLAPSExpirationTime = "ms-mcs-admpwdexpirationtime" ;
3839 public const string Members = "member" ;
3940 public const string SecurityDescriptor = "ntsecuritydescriptor" ;
4041 public const string SecurityIdentifier = "securityidentifier" ;
@@ -48,4 +49,4 @@ public class LDAPProperties
4849 public const string ScriptPath = "scriptpath" ;
4950 public const string HostServiceAccount = "msds-hostserviceaccount" ;
5051 }
51- }
52+ }
Original file line number Diff line number Diff line change @@ -247,12 +247,12 @@ public bool IsGMSA()
247247
248248 public bool HasLAPS ( )
249249 {
250- return GetProperty ( LDAPProperties . LAPSExpirationTime ) != null ;
250+ return GetProperty ( LDAPProperties . LAPSExpirationTime ) != null || GetProperty ( LDAPProperties . LegacyLAPSExpirationTime ) != null ;
251251 }
252252
253253 public SearchResultEntry GetEntry ( )
254254 {
255255 return _entry ;
256256 }
257257 }
258- }
258+ }
You can’t perform that action at this time.
0 commit comments