[PATCH] pam_smbpass final touch

Alexander Bokovoy a.bokovoy at sam-solutions.net
Fri Jan 4 09:42:13 GMT 2002


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.

-- 
/ 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