S
Sam Doyle
Hello,
I am having an interesting (grrr) problem with my default domain policy. It
is configured with a max password age of 90 days and for an account to lock
out after 4 failed logins.
Accounts do indeed lockout after 4 failed attempts but for some reason users
are required to change their passwords after 42 days.
I ran a script to query AD to find out what the setting is at and IT
REPORTED 42 DAYS TOO. (See code at bottom of this post)
I found other threads that seemed to deal with this topic a bit. The setting
IS made at the domain level to the 'default domain policy'. One poster
talked about fixing the problem after accidentally renaming the Default
Domain Policy but I tried this every which way in the lab and could not get
the problem to reproduce.
The gptTmpl.inf file for the default domain policy on both DS's show the max
password age is set to 90.
All servers are Win2k with sp3.
Does anybody have any ideas?
All help graciously accepted.
Sam
======
Code
======
Option Explicit
Const ONE_HUNDRED_NANOSECOND = .000000100
Const SECONDS_IN_DAY = 86400
Dim strPwdLastChg
Dim intTimeInterval, intMaxPwNano, intMaxPwSec, intMaxPwDay
Dim objDomainPw, objMaxPwdAge
set objDomainPw = GetObject("LDAP://DC=domain,DC=com")
set objMaxPwdAge = objDomainPw.Get("maxPwdAge")
intTimeInterval = Int(Now - strPwdLastChg)
' Convert the time of the password age from nanoseconds to Days
intMaxPwNano = Abs(objMaxPwdAge.HighPart * 2^32 + objMaxPwdAge.LowPart)
intMaxPwSec = intMaxPwNano * ONE_HUNDRED_NANOSECOND
intMaxPwDay = Int(intMaxPwSec / SECONDS_IN_DAY)
WScript.Echo "Maximum password age is " & intMaxPwDay & " day(s)"
I am having an interesting (grrr) problem with my default domain policy. It
is configured with a max password age of 90 days and for an account to lock
out after 4 failed logins.
Accounts do indeed lockout after 4 failed attempts but for some reason users
are required to change their passwords after 42 days.
I ran a script to query AD to find out what the setting is at and IT
REPORTED 42 DAYS TOO. (See code at bottom of this post)
I found other threads that seemed to deal with this topic a bit. The setting
IS made at the domain level to the 'default domain policy'. One poster
talked about fixing the problem after accidentally renaming the Default
Domain Policy but I tried this every which way in the lab and could not get
the problem to reproduce.
The gptTmpl.inf file for the default domain policy on both DS's show the max
password age is set to 90.
All servers are Win2k with sp3.
Does anybody have any ideas?
All help graciously accepted.
Sam
======
Code
======
Option Explicit
Const ONE_HUNDRED_NANOSECOND = .000000100
Const SECONDS_IN_DAY = 86400
Dim strPwdLastChg
Dim intTimeInterval, intMaxPwNano, intMaxPwSec, intMaxPwDay
Dim objDomainPw, objMaxPwdAge
set objDomainPw = GetObject("LDAP://DC=domain,DC=com")
set objMaxPwdAge = objDomainPw.Get("maxPwdAge")
intTimeInterval = Int(Now - strPwdLastChg)
' Convert the time of the password age from nanoseconds to Days
intMaxPwNano = Abs(objMaxPwdAge.HighPart * 2^32 + objMaxPwdAge.LowPart)
intMaxPwSec = intMaxPwNano * ONE_HUNDRED_NANOSECOND
intMaxPwDay = Int(intMaxPwSec / SECONDS_IN_DAY)
WScript.Echo "Maximum password age is " & intMaxPwDay & " day(s)"