[PATCH] pam_smbpass final touch

Steve Langasek vorlon at netexpress.net
Fri Jan 4 11:31:02 GMT 2002


On Fri, Jan 04, 2002 at 07:39:01PM +0200, Alexander Bokovoy wrote:
> This is final patch to get pam_smbpass compilable in HEAD. It was flying
> for a while on my hard drive but I was constantly forgetting to send it.

I don't see any reason that pam_smbpass should continue carrying around 
a local copy of a deprecated structure.  This only inhibits 
forward-compatibility with other SAM database back-ends.  The correct 
fix is to change the pam_smbpass module to use the new structures; I 
thought I'd already submitted patches to address this on the 2_2 branch, 
but I'll check again.

Cheers,
Steve Langasek
postmodern programmer

> -- 
> / Alexander Bokovoy
> $ cat /proc/identity >~/.signature
>   `Senior software developer and analyst for SaM-Solutions Ltd.`
> ---
> Nov 21 20:58:58 alconost kernel: VFS: Busy inodes after unmount. 
> 		    Self-destruct in 5 seconds.  Have a nice day...

> diff -urNk.original samba-ads/source/pam_smbpass/general.h.original samba-ads/source/pam_smbpass/general.h
> --- samba-ads/source/pam_smbpass/general.h.original	Thu Aug 16 18:20:08 2001
> +++ samba-ads/source/pam_smbpass/general.h	Mon Dec 17 14:26:34 2001
> @@ -121,3 +121,21 @@
>      char *agent;                /* attempt from user with name */
>      int count;                  /* number of failures so far */
>  };
> +
> +/* 
> +   smb_passwd is analogous to sam_passwd used everywhere
> +   else.  However, smb_passwd is limited to the information
> +   stored by an smbpasswd entry 
> + */
> + 
> +struct smb_passwd
> +{
> +        uid_t smb_userid;     /* this is actually the unix uid_t */
> +        const char *smb_name;     /* username string */
> +
> +        const unsigned char *smb_passwd; /* Null if no password */
> +        const unsigned char *smb_nt_passwd; /* Null if no password */
> +
> +        uint16 acct_ctrl; /* account info (ACB_xxxx bit-mask) */
> +        time_t pass_last_set_time;    /* password last set time */
> +};

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020104/304d3c99/attachment.bin


More information about the samba-technical mailing list