BDC support.
authorMatthew Chapman <matty@samba.org>
Thu, 22 Jul 1999 10:55:09 +0000 (10:55 +0000)
committerMatthew Chapman <matty@samba.org>
Thu, 22 Jul 1999 10:55:09 +0000 (10:55 +0000)
Fixing and clarifying SAM_PWD structure.
(This used to be commit 8e36b07a0e8e7ea8b72e1b9e3b747795b2685e85)

source3/include/proto.h
source3/include/rpc_netlogon.h
source3/rpc_parse/parse_net.c

index 758e394262c1bd08d55fd8743de80efe7e643d86..d7ab61cb614077d912694c2c4990370c88ab6f89 100644 (file)
@@ -791,6 +791,7 @@ void cred_hash1(unsigned char *out,unsigned char *in,unsigned char *key);
 void cred_hash2(unsigned char *out,unsigned char *in,unsigned char *key);
 void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int forw);
 void SamOEMhash( unsigned char *data, unsigned char *key, int val);
+void sam_pwd_hash(uint32 rid, const uchar *in, uchar *out, int forw);
 
 /*The following definitions come from  libsmb/smbencrypt.c  */
 
@@ -1765,6 +1766,7 @@ BOOL do_sam_sync(struct cli_state *cli,
                                SAM_DELTA_HDR hdr_deltas[MAX_SAM_DELTAS],
                                SAM_DELTA_CTR deltas    [MAX_SAM_DELTAS],
                                uint32 *num_deltas);
+BOOL synchronise_passdb(void);
 
 /*The following definitions come from  rpc_client/cli_pipe.c  */
 
index 6e28280dccf5074e8e1c4e600f4f19fa2e09ea46..e8ea7a4dcb66a7b672745b6d4c6827eed63c2946 100644 (file)
@@ -450,20 +450,18 @@ typedef struct sam_group_info_info
 /* SAM_PWD */
 typedef struct sam_passwd_info
 {
+       /* this structure probably contains password history */
+       /* this is probably a count of lm/nt pairs */
        uint32 unk_0; /* 0x0000 0002 */
 
        UNIHDR hdr_lm_pwd;
        uint8  buf_lm_pwd[16];
 
-       uint32 ptr_1; 
-
        UNIHDR hdr_nt_pwd;
        uint8  buf_nt_pwd[16];
 
-       uint32 ptr_2; 
-       uint32 ptr_3; 
-       uint32 ptr_4; 
-       uint32 ptr_5; 
+       UNIHDR hdr_empty_lm;
+       UNIHDR hdr_empty_nt;
 
 } SAM_PWD;
 
index b74fb7ab0df05b8f005a0ab0126a314df2066895..79b49855a9d0cbe231d77a7f784802977be3476a 100644 (file)
@@ -1338,15 +1338,11 @@ static void net_io_sam_passwd_info(char *desc, SAM_PWD *pwd,
        smb_io_unihdr ("hdr_lm_pwd", &(pwd->hdr_lm_pwd), ps, depth);
        prs_uint8s(False, "buf_lm_pwd", ps, depth, pwd->buf_lm_pwd, 16);
        
-       prs_uint32("ptr_1 ", ps, depth, &(pwd->ptr_1 ));
-
        smb_io_unihdr ("hdr_nt_pwd", &(pwd->hdr_nt_pwd), ps, depth);
        prs_uint8s(False, "buf_nt_pwd", ps, depth, pwd->buf_nt_pwd, 16);
-       
-       prs_uint32("ptr_2 ", ps, depth, &(pwd->ptr_2 ));
-       prs_uint32("ptr_3 ", ps, depth, &(pwd->ptr_3 ));
-       prs_uint32("ptr_4 ", ps, depth, &(pwd->ptr_4 ));
-       prs_uint32("ptr_5 ", ps, depth, &(pwd->ptr_5 ));
+
+       smb_io_unihdr("", &(pwd->hdr_empty_lm), ps, depth);
+       smb_io_unihdr("", &(pwd->hdr_empty_nt), ps, depth);
 }
 
 /*******************************************************************