-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Hey, it's me again.
As I'm very fascinated of this project, I got an idea for the length-based complexity rules.
I thought about an option, where you could set different password ages. (count of days, after which the password has to be changed)
That could be a great opportunity to allow people to still use smaller passwords, but also restricting them by letting their passwords expire faster.
To make this real, maybe the attribute "PwdLastSet" could be used, for example to be set a month before the actual change date. In my understanding, the password would then expire a month earlier.
$ReplaceHashTable = New-Object hashtable
$date = (Get-Date "16.05.2020").ToFileTime() #Windows NT Time Format
$ReplaceHashTable.Add("PwdLastSet", $date)
Set-ADUser -Identity Dave -Replace $ReplaceHashTableI tried this powershell commands, but it seems, that this attribute can be changed only to 0 or -1 from an admin.
0 => Password expires now
-1 => Password expires never
A system user may be able to change the attribute. Maybe the service of LPP is also able to do this.