[Samba] Your password expires today problem

Richard Lamboj richard.lamboj at bilcom.at
Fri Mar 12 00:03:13 MST 2010


Good Morning,

Its definitly a signed 32 bit int:
net sam policy set "maximum password age" 4294967291
Account policy "maximum password age" value was: -1
Account policy "maximum password age" value is now: -5

Does not work:
net sam policy set "maximum password age" never
Account policy "maximum password age" value was: 2147483647
Account policy "maximum password age" value is now: -1

Does also not work:
net sam policy set "maximum password age" 2147483647
Account policy "maximum password age" value was: -5
Account policy "maximum password age" value is now: 2147483647

So when i'am using "never" it will be set to -1, so it must be a signed 
integer and this has a maximal value of 2147483647.

Napalm and a new Job on the Beach could be the Solution...

King Regards

Richi

Am Friday 12 March 2010 02:14:10 schrieb Michael B. Trausch:
> On 03/11/2010 03:52 PM, Richard Lamboj wrote:
> > Hello,
> >
> > server-p:/# net sam policy set "maximum password age" 4294967294
> > Account policy "maximum password age" value was: -2
> > Account policy "maximum password age" value is now: -2
> >
> > Is that Output Normal?
>
> Looks like there is some wrapping going on there.  Try:
>
> # net sam policy set "maximum password age" 4294967291
>
> That said, I don't know why there would be wrapping.  An unsigned 32-bit
> integer's maximum value is 4294967295, so 4294967294 (the value that you
> used) should be something that would fit.  I don't know what would cause
> that to happen that way.
>
> 	--- Mike



More information about the samba mailing list