mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
r837: get rid of some more old rpc headers, and the genparser headers
(This used to be commit 3068b766edb17accbf52f82a81734f6d76e9f9bc)
This commit is contained in:
parent
fa62ea0853
commit
d62e63304d
@ -1,82 +0,0 @@
|
||||
/*
|
||||
Copyright (C) Andrew Tridgell <genstruct@tridgell.net> 2002
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#error SAMBA4 clean up
|
||||
#error this file should be (re)moved
|
||||
#error and all unused stuff should go
|
||||
|
||||
#ifndef _GENPARSER_H
|
||||
#define _GENPARSER_H
|
||||
|
||||
/* these macros are needed for genstruct auto-parsers */
|
||||
#ifndef GENSTRUCT
|
||||
#define GENSTRUCT
|
||||
#define _LEN(x)
|
||||
#define _NULLTERM
|
||||
#endif
|
||||
|
||||
/*
|
||||
automatic marshalling/unmarshalling system for C structures
|
||||
*/
|
||||
|
||||
/* flag to mark a fixed size array as actually being null terminated */
|
||||
#define FLAG_NULLTERM 1
|
||||
#define FLAG_ALWAYS 2
|
||||
|
||||
struct enum_struct {
|
||||
const char *name;
|
||||
unsigned value;
|
||||
};
|
||||
|
||||
/* intermediate dumps are stored in one of these */
|
||||
struct parse_string {
|
||||
unsigned allocated;
|
||||
unsigned length;
|
||||
char *s;
|
||||
};
|
||||
|
||||
typedef int (*gen_dump_fn)(TALLOC_CTX *, struct parse_string *, const char *ptr, unsigned indent);
|
||||
typedef int (*gen_parse_fn)(TALLOC_CTX *, char *ptr, const char *str);
|
||||
|
||||
/* genstruct.pl generates arrays of these */
|
||||
struct parse_struct {
|
||||
const char *name;
|
||||
unsigned ptr_count;
|
||||
unsigned size;
|
||||
unsigned offset;
|
||||
unsigned array_len;
|
||||
const char *dynamic_len;
|
||||
unsigned flags;
|
||||
gen_dump_fn dump_fn;
|
||||
gen_parse_fn parse_fn;
|
||||
};
|
||||
|
||||
#define DUMP_PARSE_DECL(type) \
|
||||
int gen_dump_ ## type(TALLOC_CTX *, struct parse_string *, const char *, unsigned); \
|
||||
int gen_parse_ ## type(TALLOC_CTX *, char *, const char *);
|
||||
|
||||
DUMP_PARSE_DECL(char)
|
||||
DUMP_PARSE_DECL(int)
|
||||
DUMP_PARSE_DECL(unsigned)
|
||||
DUMP_PARSE_DECL(double)
|
||||
DUMP_PARSE_DECL(float)
|
||||
|
||||
#define gen_dump_unsigned_char gen_dump_char
|
||||
#define gen_parse_unsigned_char gen_parse_char
|
||||
|
||||
#endif /* _GENPARSER_H */
|
@ -1,62 +0,0 @@
|
||||
/*
|
||||
Copyright (C) Simo Sorce <idra@samba.org> 2002
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#error SAMBA4 clean up
|
||||
#error this file should be (re)moved
|
||||
#error and all unused stuff should go
|
||||
|
||||
#ifndef _GENPARSER_SAMBA_H
|
||||
#define _GENPARSER_SAMBA_H
|
||||
|
||||
const struct parse_struct pinfo_security_ace_info[] = {
|
||||
{"type", 0, sizeof(uint8), offsetof(struct security_ace_info, type), 0, NULL, 0, gen_dump_uint8, gen_parse_uint8},
|
||||
{"flags", 0, sizeof(uint8), offsetof(struct security_ace_info, flags), 0, NULL, 0, gen_dump_uint8, gen_parse_uint8},
|
||||
{"size", 0, sizeof(uint16), offsetof(struct security_ace_info, size), 0, NULL, 0, gen_dump_uint16, gen_parse_uint16},
|
||||
{"info", 0, sizeof(char), offsetof(struct security_ace_info, info), 0, NULL, 0, gen_dump_SEC_ACCESS, gen_parse_SEC_ACCESS},
|
||||
{"obj_flags", 0, sizeof(uint32), offsetof(struct security_ace_info, obj_flags), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"obj_guid", 0, sizeof(char), offsetof(struct security_ace_info, obj_guid), 0, NULL, 0, gen_dump_GUID, gen_parse_GUID},
|
||||
{"inh_guid", 0, sizeof(char), offsetof(struct security_ace_info, inh_guid), 0, NULL, 0, gen_dump_GUID, gen_parse_GUID},
|
||||
{"trustee", 0, sizeof(char), offsetof(struct security_ace_info, trustee), 0, NULL, 0, gen_dump_DOM_SID, gen_parse_DOM_SID},
|
||||
{NULL, 0, 0, 0, 0, NULL, 0, NULL, NULL}};
|
||||
|
||||
const struct parse_struct pinfo_security_acl_info[] = {
|
||||
{"revision", 0, sizeof(uint16), offsetof(struct security_acl_info, revision), 0, NULL, 0, gen_dump_uint16, gen_parse_uint16},
|
||||
{"size", 0, sizeof(uint16), offsetof(struct security_acl_info, size), 0, NULL, 0, gen_dump_uint16, gen_parse_uint16},
|
||||
{"num_aces", 0, sizeof(uint32), offsetof(struct security_acl_info, num_aces), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"ace", 1, sizeof(struct security_ace_info), offsetof(struct security_acl_info, ace), 0, "size", 0, gen_dump_SEC_ACE, gen_parse_SEC_ACE},
|
||||
{NULL, 0, 0, 0, 0, NULL, 0, NULL, NULL}};
|
||||
|
||||
const struct parse_struct pinfo_security_descriptor_info[] = {
|
||||
{"revision", 0, sizeof(uint16), offsetof(struct security_descriptor_info, revision), 0, NULL, 0, gen_dump_uint16, gen_parse_uint16},
|
||||
{"type", 0, sizeof(uint16), offsetof(struct security_descriptor_info, type), 0, NULL, 0, gen_dump_uint16, gen_parse_uint16},
|
||||
{"off_owner_sid", 0, sizeof(uint32), offsetof(struct security_descriptor_info, off_owner_sid), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"off_grp_sid", 0, sizeof(uint32), offsetof(struct security_descriptor_info, off_grp_sid), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"off_sacl", 0, sizeof(uint32), offsetof(struct security_descriptor_info, off_sacl), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"off_dacl", 0, sizeof(uint32), offsetof(struct security_descriptor_info, off_dacl), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"dacl", 1, sizeof(struct security_acl_info), offsetof(struct security_descriptor_info, dacl), 0, NULL, 0, gen_dump_SEC_ACL, gen_parse_SEC_ACL},
|
||||
{"sacl", 1, sizeof(struct security_acl_info), offsetof(struct security_descriptor_info, sacl), 0, NULL, 0, gen_dump_SEC_ACL, gen_parse_SEC_ACL},
|
||||
{"owner_sid", 1, sizeof(char), offsetof(struct security_descriptor_info, owner_sid), 0, NULL, 0, gen_dump_DOM_SID, gen_parse_DOM_SID},
|
||||
{"grp_sid", 1, sizeof(char), offsetof(struct security_descriptor_info, grp_sid), 0, NULL, 0, gen_dump_DOM_SID, gen_parse_DOM_SID},
|
||||
{NULL, 0, 0, 0, 0, NULL, 0, NULL, NULL}};
|
||||
|
||||
const struct parse_struct pinfo_luid_attr_info[] = {
|
||||
{"attr", 0, sizeof(uint32), offsetof(struct LUID_ATTR, attr), 0, NULL, 0, gen_dump_uint32, gen_parse_uint32},
|
||||
{"luid", 1, sizeof(LUID), offsetof(struct LUID_ATTR, luid), 0, NULL, 0, gen_dump_LUID, gen_parse_LUID},
|
||||
{NULL, 0, 0, 0, 0, NULL, 0, NULL, NULL}};
|
||||
|
||||
#endif /* _GENPARSER_SAMBA_H */
|
@ -1,100 +0,0 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
SMB parameters and setup
|
||||
Copyright (C) Andrew Tridgell 1992-1999
|
||||
Copyright (C) Luke Kenneth Casson Leighton 1996-1999
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#error SAMBA4 clean up
|
||||
#error this file should be (re)moved
|
||||
#error and all unused stuff should go
|
||||
|
||||
#ifndef _RPC_CREDS_H /* _RPC_CREDS_H */
|
||||
#define _RPC_CREDS_H
|
||||
|
||||
typedef struct ntuser_creds
|
||||
{
|
||||
fstring user_name;
|
||||
fstring domain;
|
||||
struct pwd_info pwd;
|
||||
|
||||
uint32 ntlmssp_flags;
|
||||
|
||||
} CREDS_NT;
|
||||
|
||||
typedef struct unixuser_creds
|
||||
{
|
||||
fstring user_name;
|
||||
fstring requested_name;
|
||||
fstring real_name;
|
||||
BOOL guest;
|
||||
|
||||
} CREDS_UNIX;
|
||||
|
||||
typedef struct unixsec_creds
|
||||
{
|
||||
uint32 uid;
|
||||
uint32 gid;
|
||||
int num_grps;
|
||||
uint32 *grps;
|
||||
|
||||
} CREDS_UNIX_SEC;
|
||||
|
||||
typedef struct ntsec_creds
|
||||
{
|
||||
DOM_SID sid;
|
||||
uint32 num_grps;
|
||||
uint32 *grp_rids;
|
||||
|
||||
} CREDS_NT_SEC;
|
||||
|
||||
typedef struct user_creds
|
||||
{
|
||||
BOOL reuse;
|
||||
|
||||
uint32 ptr_ntc;
|
||||
uint32 ptr_uxc;
|
||||
uint32 ptr_nts;
|
||||
uint32 ptr_uxs;
|
||||
uint32 ptr_ssk;
|
||||
|
||||
CREDS_NT ntc;
|
||||
CREDS_UNIX uxc;
|
||||
|
||||
CREDS_NT_SEC nts;
|
||||
CREDS_UNIX_SEC uxs;
|
||||
|
||||
uchar usr_sess_key[16];
|
||||
|
||||
} CREDS_HYBRID;
|
||||
|
||||
typedef struct cred_command
|
||||
{
|
||||
uint16 version;
|
||||
uint16 command;
|
||||
uint32 pid; /* unique process id */
|
||||
|
||||
fstring name;
|
||||
|
||||
uint32 ptr_creds;
|
||||
CREDS_HYBRID *cred;
|
||||
|
||||
} CREDS_CMD;
|
||||
|
||||
#endif /* _RPC_CREDS_H */
|
||||
|
@ -1,112 +0,0 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
SMB parameters and setup
|
||||
Copyright (C) Andrew Tridgell 1992-1997
|
||||
Copyright (C) Luke Kenneth Casson Leighton 1996-1997
|
||||
Copyright (C) Paul Ashton 1997
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#error SAMBA4 clean up
|
||||
#error this file should be (re)moved
|
||||
#error and all unused stuff should go
|
||||
|
||||
#ifndef _RPC_LSA_H /* _RPC_LSA_H */
|
||||
#define _RPC_LSA_H
|
||||
|
||||
#include "rpc_misc.h"
|
||||
|
||||
typedef struct seq_qos_info
|
||||
{
|
||||
uint32 len; /* 12 */
|
||||
uint16 sec_imp_level; /* 0x02 - impersonation level */
|
||||
uint8 sec_ctxt_mode; /* 0x01 - context tracking mode */
|
||||
uint8 effective_only; /* 0x00 - effective only */
|
||||
|
||||
} LSA_SEC_QOS;
|
||||
|
||||
typedef struct obj_attr_info
|
||||
{
|
||||
uint32 len; /* 0x18 - length (in bytes) inc. the length field. */
|
||||
uint32 ptr_root_dir; /* 0 - root directory (pointer) */
|
||||
uint32 ptr_obj_name; /* 0 - object name (pointer) */
|
||||
uint32 attributes; /* 0 - attributes (undocumented) */
|
||||
uint32 ptr_sec_desc; /* 0 - security descriptior (pointer) */
|
||||
uint32 ptr_sec_qos; /* security quality of service */
|
||||
LSA_SEC_QOS *sec_qos;
|
||||
|
||||
} LSA_OBJ_ATTR;
|
||||
|
||||
/* LSA_Q_OPEN_POL - LSA Query Open Policy */
|
||||
typedef struct lsa_q_open_pol_info
|
||||
{
|
||||
uint32 ptr; /* undocumented buffer pointer */
|
||||
uint16 system_name; /* 0x5c - system name */
|
||||
LSA_OBJ_ATTR attr ; /* object attributes */
|
||||
|
||||
uint32 des_access; /* desired access attributes */
|
||||
|
||||
} LSA_Q_OPEN_POL;
|
||||
|
||||
#define POLICY_VIEW_LOCAL_INFORMATION 0x00000001
|
||||
#define POLICY_VIEW_AUDIT_INFORMATION 0x00000002
|
||||
#define POLICY_GET_PRIVATE_INFORMATION 0x00000004
|
||||
#define POLICY_TRUST_ADMIN 0x00000008
|
||||
#define POLICY_CREATE_ACCOUNT 0x00000010
|
||||
#define POLICY_CREATE_SECRET 0x00000020
|
||||
#define POLICY_CREATE_PRIVILEGE 0x00000040
|
||||
#define POLICY_SET_DEFAULT_QUOTA_LIMITS 0x00000080
|
||||
#define POLICY_SET_AUDIT_REQUIREMENTS 0x00000100
|
||||
#define POLICY_AUDIT_LOG_ADMIN 0x00000200
|
||||
#define POLICY_SERVER_ADMIN 0x00000400
|
||||
#define POLICY_LOOKUP_NAMES 0x00000800
|
||||
|
||||
#define POLICY_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED_ACCESS |\
|
||||
POLICY_VIEW_LOCAL_INFORMATION |\
|
||||
POLICY_VIEW_AUDIT_INFORMATION |\
|
||||
POLICY_GET_PRIVATE_INFORMATION |\
|
||||
POLICY_TRUST_ADMIN |\
|
||||
POLICY_CREATE_ACCOUNT |\
|
||||
POLICY_CREATE_SECRET |\
|
||||
POLICY_CREATE_PRIVILEGE |\
|
||||
POLICY_SET_DEFAULT_QUOTA_LIMITS |\
|
||||
POLICY_SET_AUDIT_REQUIREMENTS |\
|
||||
POLICY_AUDIT_LOG_ADMIN |\
|
||||
POLICY_SERVER_ADMIN |\
|
||||
POLICY_LOOKUP_NAMES )
|
||||
|
||||
|
||||
#define POLICY_READ ( STANDARD_RIGHTS_READ_ACCESS |\
|
||||
POLICY_VIEW_AUDIT_INFORMATION |\
|
||||
POLICY_GET_PRIVATE_INFORMATION)
|
||||
|
||||
#define POLICY_WRITE ( STANDARD_RIGHTS_WRITE_ACCESS |\
|
||||
POLICY_TRUST_ADMIN |\
|
||||
POLICY_CREATE_ACCOUNT |\
|
||||
POLICY_CREATE_SECRET |\
|
||||
POLICY_CREATE_PRIVILEGE |\
|
||||
POLICY_SET_DEFAULT_QUOTA_LIMITS |\
|
||||
POLICY_SET_AUDIT_REQUIREMENTS |\
|
||||
POLICY_AUDIT_LOG_ADMIN |\
|
||||
POLICY_SERVER_ADMIN)
|
||||
|
||||
#define POLICY_EXECUTE ( STANDARD_RIGHTS_EXECUTE_ACCESS |\
|
||||
POLICY_VIEW_LOCAL_INFORMATION |\
|
||||
POLICY_LOOKUP_NAMES )
|
||||
|
||||
#endif /* _RPC_LSA_H */
|
||||
|
||||
|
@ -240,33 +240,9 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN];
|
||||
|
||||
#define MAX_HOURS_LEN 32
|
||||
|
||||
#ifndef MAXSUBAUTHS
|
||||
#define MAXSUBAUTHS 15 /* max sub authorities in a SID */
|
||||
#endif
|
||||
|
||||
/* for compatibility */
|
||||
#define SID_NAME_USE samr_SidType
|
||||
|
||||
/**
|
||||
* @brief Security Identifier
|
||||
*
|
||||
* @sa http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/accctrl_38yn.asp
|
||||
**/
|
||||
typedef struct sid_info
|
||||
{
|
||||
uint8 sid_rev_num; /**< SID revision number */
|
||||
uint8 num_auths; /**< Number of sub-authorities */
|
||||
uint8 id_auth[6]; /**< Identifier Authority */
|
||||
/*
|
||||
* Pointer to sub-authorities.
|
||||
*
|
||||
* @note The values in these uint32's are in *native* byteorder, not
|
||||
* neccessarily little-endian...... JRA.
|
||||
*/
|
||||
uint32 sub_auths[MAXSUBAUTHS];
|
||||
|
||||
} DOM_SID;
|
||||
|
||||
/*
|
||||
* The complete list of SIDS belonging to this user.
|
||||
* Created when a vuid is registered.
|
||||
|
@ -28,8 +28,6 @@
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
||||
extern DOM_SID global_sid_NULL; /* NULL sid */
|
||||
|
||||
NSS_STATUS winbindd_request(int req_type,
|
||||
struct winbindd_request *request,
|
||||
struct winbindd_response *response);
|
||||
|
Loading…
x
Reference in New Issue
Block a user