From 83ee9372fc18eaef6d00fbc7c1fb68747e2303bb Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 10 Mar 2000 18:10:10 +0000 Subject: you know, when you do a cvs commit, you _really_ expect it to actually work. this explains why j-f wasn't happy. (This used to be commit c51e38214a5323d0aa9b6dcd948a76ddc29f5305) --- source3/include/rpc_spoolss.h | 7 ++++-- source3/include/smb.h | 51 ++++++++++++++++++++++++------------------- source3/smbd/password.c | 9 -------- 3 files changed, 34 insertions(+), 33 deletions(-) (limited to 'source3') diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index 21fa9b5586..43e5e40738 100755 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -1607,15 +1607,18 @@ typedef struct pjob_info_info JOB_INFO_1 *job_info_1; JOB_INFO_2 *job_info_2; void *info; - } job; + } + job; -} PJOB_INFO; +} +PJOB_INFO; typedef struct spool_r_getjob { NEW_BUFFER *buffer; uint32 needed; uint32 status; + } SPOOL_R_GETJOB; diff --git a/source3/include/smb.h b/source3/include/smb.h index 53454cc414..15b491239c 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -2,10 +2,10 @@ Unix SMB/Netbios implementation. Version 1.9. SMB parameters and setup - Copyright (C) Andrew Tridgell 1992-1998 - Copyright (C) John H Terpstra 1996-1998 - Copyright (C) Luke Kenneth Casson Leighton 1996-1998 - Copyright (C) Paul Ashton 1998 + Copyright (C) Andrew Tridgell 1992-2000 + Copyright (C) John H Terpstra 1996-2000 + Copyright (C) Luke Kenneth Casson Leighton 1996-2000 + Copyright (C) Paul Ashton 1998-2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -618,33 +618,43 @@ struct dcinfo uchar md4pw[16]; /* md4(machine password) */ }; +#include "nt_printing.h" + +#include "ntdomain.h" + typedef struct { - uid_t uid; /* uid of a validated user */ - gid_t gid; /* gid of a validated user */ + uid_t uid; /* uid of a validated user */ + gid_t gid; /* gid of a validated user */ - fstring requested_name; /* user name from the client */ - fstring name; /* unix user name of a validated user */ - fstring real_name; /* to store real name from password file - simeon */ - BOOL guest; + fstring requested_name; /* user name from the client */ + fstring name; /* unix user name of a validated user */ + fstring real_name; /* to store real name from password file - simeon */ + BOOL guest; - /* following groups stuff added by ih */ - /* This groups info is needed for when we become_user() for this uid */ - int n_groups; - gid_t *groups; + /* following groups stuff added by ih */ + /* This groups info is needed for when we become_user() for this uid */ + int n_groups; + gid_t *groups; - int n_sids; - int *sids; + /* per-user authentication information on NT RPCs */ + /* lkclXXXX - THIS SHOULD NOT BE HERE! */ + struct dcinfo dc; - /* per-user authentication information on NT RPCs */ - struct dcinfo dc; + NET_USER_INFO_3 usr; } user_struct; +typedef struct +{ + uint32 pid; + uint16 vuid; + +} vuser_key; enum {LPQ_QUEUED,LPQ_PAUSED,LPQ_SPOOLING,LPQ_PRINTING}; -typedef struct +typedef struct _print_queue_struct { int job; int size; @@ -1636,9 +1646,6 @@ extern int chain_size; #include "smb_macros.h" -#include "nt_printing.h" -#include "ntdomain.h" - /* A netbios name structure. */ struct nmb_name { char name[17]; diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 19e7d36443..bdb0385a48 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -122,18 +122,12 @@ void invalidate_vuid(uint16 vuid) vuser->uid = (uid_t)-1; vuser->gid = (gid_t)-1; - vuser->n_sids = 0; - /* same number of igroups as groups */ vuser->n_groups = 0; if (vuser->groups) free((char *)vuser->groups); - if (vuser->sids) - free((char *)vuser->sids); - - vuser->sids = NULL; vuser->groups = NULL; } @@ -255,9 +249,6 @@ uint16 register_vuid(uid_t uid,gid_t gid, char *unix_name, char *requested_name, fstrcpy(vuser->name,unix_name); fstrcpy(vuser->requested_name,requested_name); - vuser->n_sids = 0; - vuser->sids = NULL; - vuser->n_groups = 0; vuser->groups = NULL; -- cgit