[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Ppolicy does not seem to work
On Wed, Feb 16, 2011 at 12:58:48PM +0100, Jan Kohnert wrote:
> > I assume that you are talking about setting pwdAccountLockedTime to
> > 000001010000Z which is what I have generally done in these situations.
>
> This is exactly what I was looking for. Did I overread why this special date
> is supposed to be date "0"? From a simple point of view I would have expected
> it to be all zeros. Date gives:
> jankoh@kohni ~ $ date -d 0 "+%Y%m%d%H%M%SZ"
> 20110216000000Z
> jankoh@kohni ~ $
> which was today 0 o'clock.
There is no month zero nor day zero. Try this:
$ date -d 00000101
Sat Jan 1 00:00:00 LMT 0000
The actual date used for this purpose is defined in the standard
(actually an Internet Draft). The designers could have chosen any date
obviously preceding the invention of digital computers.
Andrew
--
-----------------------------------------------------------------------
| From Andrew Findlay, Skills 1st Ltd |
| Consultant in large-scale systems, networks, and directory services |
| http://www.skills-1st.co.uk/ +44 1628 782565 |
-----------------------------------------------------------------------