[PATCH] pam_smbpass

Alexander Bokovoy a.bokovoy at sam-solutions.net
Wed Dec 19 02:58:01 GMT 2001


Yet another fix for pam_smbpass in HEAD which makes it finally compilable.
This is not very good fix due the need to maintain same structure in private
places so if you have a better solution, please commit that one instead of 
this. However, given that pam_smbpass is in less use for last >6 months
(no development seen so far), it may be acceptable solution.

-- 
/ 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...
-------------- next part --------------
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 */
+};


More information about the samba-technical mailing list