Re: [PATCH] Password Locked Account Control

2002-07-13 Thread Andrew Bartlett
Patrick McCarty wrote: > > > Basiclly, the code needs a general rewrite - at the very lest we need > > the BOOLs converted to NTSTATUS. > > These are the three functions that call change_oem_password: > > pass_oem_change in smbd/chgpassword.c > api_SetUserPassword in smbd/lanman.c api_SamOEMCh

Re: [PATCH] Password Locked Account Control

2002-07-13 Thread Andrew Bartlett
Patrick McCarty wrote: > > > Patrick McCarty wrote: > >> > >> Attached is a patch against HEAD that provides the 'P' option for > >> acctFlags. > > > > Can you please verify that this is the correct bit to set? Rember, MS > > defines them - so we should check. Ethereal should be able to show yo

Re: [PATCH] Password Locked Account Control

2002-07-13 Thread Patrick McCarty
> Basiclly, the code needs a general rewrite - at the very lest we need > the BOOLs converted to NTSTATUS. These are the three functions that call change_oem_password: pass_oem_change in smbd/chgpassword.c api_SetUserPassword in smbd/lanman.c update_smbpassword_file in smbd/password.c They are

Re: [PATCH] Password Locked Account Control

2002-07-13 Thread Patrick McCarty
> Patrick McCarty wrote: >> >> Attached is a patch against HEAD that provides the 'P' option for >> acctFlags. > > Can you please verify that this is the correct bit to set? Rember, MS > defines them - so we should check. Ethereal should be able to show you. I 'borrowed' this bit from the Samb

Re: [PATCH] Password Locked Account Control

2002-07-12 Thread Andrew Bartlett
Patrick McCarty wrote: > > Attached is a patch against HEAD that provides the 'P' option for > acctFlags. Can you please verify that this is the correct bit to set? Rember, MS defines them - so we should check. Ethereal should be able to show you. > I havent been able to test this yet, so use

[PATCH] Password Locked Account Control

2002-07-12 Thread Patrick McCarty
Attached is a patch against HEAD that provides the 'P' option for acctFlags. I havent been able to test this yet, so use with care. Ideally, this would eventually set the "user cannot change password" bit to the client, but as Andrew mentioned, this hasnt been fully implemented, and I'm not c