Stefan Walters: purify spotted rverf should be alloc'd to 16 bytes not 8.
authorLuke Leighton <lkcl@samba.org>
Wed, 17 Mar 1999 19:49:14 +0000 (19:49 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 17 Mar 1999 19:49:14 +0000 (19:49 +0000)
(This used to be commit 4bb74fcc714fccac791ce86c8882d19d704b17a1)

source3/include/proto.h
source3/rpc_server/srv_pipe.c

index f563daaef2ec40146379ca5123df0bb08e41b395..af8eaa40746847c009917e12d024d2ea1997b988 100644 (file)
@@ -1402,6 +1402,41 @@ struct smb_passwd *ldap_getpw(void);
 BOOL ldap_allocaterid(uint32 *rid);
 struct smb_passdb_ops *ldap_initialise_password_db(void);
 
+/*The following definitions come from  passdb/mysqlpass.c  */
+
+int mysql_db_lock_connect( MYSQL *handle );
+void *mysql_startpwent( BOOL update );
+void mysql_endpwent( void *ptr );
+SMB_BIG_UINT mysql_getpwpos(void *vp);
+BOOL mysql_setpwpos(void *vp, SMB_BIG_UINT pos);
+void *mysql_fill_smb_passwd( MYSQL_ROW *row );
+struct smb_passwd *mysql_getsmbpwent(void *vp);
+void *mysql_fetch_passwd( void *(*filler)(MYSQL_ROW*), char *where );
+void *mysql_getpwuid(void *(*filler)(MYSQL_ROW *), uid_t uid);
+struct smb_passwd *mysql_getsmbpwuid(uid_t uid);
+void *mysql_getpwnam(void *(*filler)(MYSQL_ROW *), char *field, const char *name);
+struct smb_passwd *mysql_getsmbpwnam(const char *unix_name);
+BOOL mysql_del_smb( MYSQL *handle, char *unix_name );
+BOOL mysql_add_smb( MYSQL *handle, struct smb_passwd *smb );
+BOOL mysql_mod_smb( MYSQL *handle, struct smb_passwd *smb, BOOL override );
+BOOL mysql_add_smbpwd_entry(struct smb_passwd *smb);
+BOOL mysql_mod_smbpwd_entry(struct smb_passwd *smb, BOOL override);
+struct smb_passdb_ops *mysql_initialise_password_db(void);
+
+/*The following definitions come from  passdb/mysqlsampass.c  */
+
+void *mysql_fill_sam_passwd( MYSQL_ROW *row );
+struct sam_passwd *mysql_getsampwent(void *vp);
+struct sam_passwd *mysql_getsampwrid(uint32 rid);
+struct sam_passwd *mysql_getsampwuid(uid_t uid);
+struct sam_passwd *mysql_getsampwntnam(const char *nt_name);
+struct sam_disp_info *mysql_getsamdispntnam(const char *nt_name);
+struct sam_disp_info *mysql_getsamdisprid(uint32 rid);
+struct sam_disp_info *mysql_getsamdispent(void *vp);
+BOOL mysql_add_sampwd_entry(struct sam_passwd *sam);
+BOOL mysql_mod_sampwd_entry(struct sam_passwd *sam, BOOL override);
+struct sam_passdb_ops *mysql_initialise_sam_password_db(void);
+
 /*The following definitions come from  passdb/nispass.c  */
 
 struct passdb_ops *nisplus_initialise_password_db(void);
index e619797f6e1b8f5dc11b4ac773a6a4ba68a9c37f..ec5b547c86cef8488831902fb4e105ad5e21b2c4 100644 (file)
@@ -102,7 +102,7 @@ BOOL create_rpc_reply(pipes_struct *p,
 
        prs_init(&p->rhdr , 0x18, 4, 0, False);
        prs_init(&p->rauth, 1024, 4, 0, False);
-       prs_init(&p->rverf, 0x08, 4, 0, False);
+       prs_init(&p->rverf, 0x10, 4, 0, False);
 
        p->hdr.pkt_type = RPC_RESPONSE; /* mark header as an rpc response */