1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

libcli/security Provide a common, top level libcli/security/security.h

This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.

This includes (along with other security headers) dom_sid.h and
security_token.h

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
This commit is contained in:
Andrew Bartlett 2010-10-12 15:27:50 +11:00
parent 5742f5115c
commit f768b32e37
156 changed files with 158 additions and 61 deletions

View File

@ -19,9 +19,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/security.h" #include "libcli/security/security.h"
#include "libcli/security/secace.h"
#include "libcli/security/dom_sid.h"
#include "librpc/ndr/libndr.h" #include "librpc/ndr/libndr.h"
/**************************************************************************** /****************************************************************************

View File

@ -20,7 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/security/dom_sid.h" #include "libcli/security/security.h"
#include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_misc.h"
#include "system/locale.h" #include "system/locale.h"

View File

@ -22,7 +22,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/dom_sid.h" #include "libcli/security/security.h"
#include "lib/util/tsort.h" #include "lib/util/tsort.h"
#define SEC_ACE_HEADER_SIZE (2 * sizeof(uint8_t) + sizeof(uint16_t) + sizeof(uint32_t)) #define SEC_ACE_HEADER_SIZE (2 * sizeof(uint8_t) + sizeof(uint16_t) + sizeof(uint32_t))

View File

@ -36,10 +36,13 @@ struct object_tree {
#include "libcli/security/dom_sid.h" #include "libcli/security/dom_sid.h"
#include "libcli/security/secace.h" #include "libcli/security/secace.h"
#include "libcli/security/secacl.h" #include "libcli/security/secacl.h"
#include "libcli/security/proto.h"
#include "libcli/security/security_descriptor.h" #include "libcli/security/security_descriptor.h"
#include "libcli/security/security_token.h" #include "libcli/security/security_token.h"
#include "libcli/security/sddl.h" #include "libcli/security/sddl.h"
#include "libcli/security/privileges.h" #include "libcli/security/privileges.h"
#if _SAMBA_BUILD_ >= 4
#include "libcli/security/proto.h"
#endif
#endif #endif

View File

@ -20,8 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/security/security_descriptor.h" #include "libcli/security/security.h"
#include "libcli/security/dom_sid.h"
/* /*
return a blank security descriptor (no owners, dacl or sacl) return a blank security descriptor (no owners, dacl or sacl)

View File

@ -23,6 +23,7 @@
#include "libgpo/gpo_s4.h" #include "libgpo/gpo_s4.h"
#include "source4/libgpo/ads_convenience.h" #include "source4/libgpo/ads_convenience.h"
#endif #endif
#include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
parse the raw extension string into a GP_EXT structure parse the raw extension string into a GP_EXT structure

View File

@ -18,7 +18,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/security/dom_sid.h" #include "libcli/security/security.h"
#include "../libgpo/gpo.h" #include "../libgpo/gpo.h"
#if _SAMBA_BUILD_ == 4 #if _SAMBA_BUILD_ == 4
#include "libgpo/ads_convenience.h" #include "libgpo/ads_convenience.h"

View File

@ -21,6 +21,7 @@
#include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_misc.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "../libgpo/gpo.h" #include "../libgpo/gpo.h"
#include "../libcli/security/security.h"
#if _SAMBA_BUILD_ == 4 #if _SAMBA_BUILD_ == 4
#include "system/filesys.h" #include "system/filesys.h"
#include "auth/auth.h" #include "auth/auth.h"

View File

@ -23,10 +23,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#if _SAMBA_BUILD_ == 4
#include "libcli/security/security.h"
#endif
/* /*
return the wire size of a security_ace return the wire size of a security_ace

View File

@ -26,7 +26,7 @@
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "../lib/crypto/arcfour.h" #include "../lib/crypto/arcfour.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH #define DBGC_CLASS DBGC_AUTH

View File

@ -20,7 +20,7 @@
#include "includes.h" #include "includes.h"
#include "../lib/crypto/arcfour.h" #include "../lib/crypto/arcfour.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH #define DBGC_CLASS DBGC_AUTH

View File

@ -27,8 +27,8 @@
#include "includes.h" #include "includes.h"
#include "secrets.h" #include "secrets.h"
#include "memcache.h" #include "memcache.h"
#include "../libcli/security/dom_sid.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/security.h"
/**************************************************************************** /****************************************************************************
Check for a SID in an struct security_token Check for a SID in an struct security_token

View File

@ -28,6 +28,7 @@
#include "../lib/util/select.h" #include "../lib/util/select.h"
#include "system/readline.h" #include "system/readline.h"
#include "../libcli/smbreadline/smbreadline.h" #include "../libcli/smbreadline/smbreadline.h"
#include "../libcli/security/security.h"
#ifndef REGISTER #ifndef REGISTER
#define REGISTER 0 #define REGISTER 0

View File

@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "groupdb/mapping.h" #include "groupdb/mapping.h"
#include "../libcli/security/security.h"
static const struct mapping_backend *backend; static const struct mapping_backend *backend;

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "groupdb/mapping.h" #include "groupdb/mapping.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
static struct db_context *db; /* used for driver files */ static struct db_context *db; /* used for driver files */

View File

@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "lib/eventlog/eventlog.h" #include "lib/eventlog/eventlog.h"
#include "../libcli/security/security.h"
/* maintain a list of open eventlog tdbs with reference counts */ /* maintain a list of open eventlog tdbs with reference counts */

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "idmap_cache.h" #include "idmap_cache.h"
#include "../libcli/security/security.h"
/** /**
* Find a sid2uid mapping * Find a sid2uid mapping

View File

@ -25,7 +25,7 @@
#include "lib/netapi/libnetapi.h" #include "lib/netapi/libnetapi.h"
#include "../librpc/gen_ndr/cli_samr.h" #include "../librpc/gen_ndr/cli_samr.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
****************************************************************/ ****************************************************************/

View File

@ -27,7 +27,7 @@
#include "../librpc/gen_ndr/cli_lsa.h" #include "../librpc/gen_ndr/cli_lsa.h"
#include "rpc_client/cli_lsarpc.h" #include "rpc_client/cli_lsarpc.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
static NTSTATUS libnetapi_samr_lookup_and_open_alias(TALLOC_CTX *mem_ctx, static NTSTATUS libnetapi_samr_lookup_and_open_alias(TALLOC_CTX *mem_ctx,
struct rpc_pipe_client *pipe_cli, struct rpc_pipe_client *pipe_cli,

View File

@ -23,6 +23,7 @@
#include "../librpc/gen_ndr/cli_samr.h" #include "../librpc/gen_ndr/cli_samr.h"
#include "rpc_client/cli_samr.h" #include "rpc_client/cli_samr.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
****************************************************************/ ****************************************************************/

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "lib/netapi/netapi.h" #include "lib/netapi/netapi.h"
#include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
****************************************************************/ ****************************************************************/

View File

@ -27,7 +27,7 @@
#include "rpc_client/init_samr.h" #include "rpc_client/init_samr.h"
#include "../libds/common/flags.h" #include "../libds/common/flags.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
****************************************************************/ ****************************************************************/

View File

@ -24,6 +24,7 @@
#include "includes.h" #include "includes.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "libcli/security/privileges_private.h" #include "libcli/security/privileges_private.h"
#include "../libcli/security/security.h"
#define PRIVPREFIX "PRIV_" #define PRIVPREFIX "PRIV_"

View File

@ -22,7 +22,7 @@
#include "includes.h" #include "includes.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#define ALL_SECURITY_INFORMATION (SECINFO_OWNER|SECINFO_GROUP|\ #define ALL_SECURITY_INFORMATION (SECINFO_OWNER|SECINFO_GROUP|\
SECINFO_DACL|SECINFO_SACL|\ SECINFO_DACL|SECINFO_SACL|\

View File

@ -18,6 +18,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "dbwrap.h" #include "dbwrap.h"

View File

@ -25,6 +25,7 @@
#include "includes.h" #include "includes.h"
#include "smbldap.h" #include "smbldap.h"
#include "secrets.h" #include "secrets.h"
#include "../libcli/security/security.h"
/* Try not to hit the up or down server forever */ /* Try not to hit the up or down server forever */

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "tldap.h" #include "tldap.h"
#include "tldap_util.h" #include "tldap_util.h"
#include "../libcli/security/security.h"
bool tldap_entry_values(struct tldap_message *msg, const char *attribute, bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
int *num_values, DATA_BLOB **values) int *num_values, DATA_BLOB **values)

View File

@ -26,7 +26,7 @@
/* function(s) moved from auth/auth_util.c to minimize linker deps */ /* function(s) moved from auth/auth_util.c to minimize linker deps */
#include "includes.h" #include "includes.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/**************************************************************************** /****************************************************************************
Duplicate a SID token. Duplicate a SID token.

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/security/security.h"
/* Map generic access rights to object specific rights. This technique is /* Map generic access rights to object specific rights. This technique is
used to give meaning to assigning read, write, execute and all access to used to give meaning to assigning read, write, execute and all access to

View File

@ -19,6 +19,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/security.h"
#if defined(WITH_WINBIND) #if defined(WITH_WINBIND)

View File

@ -28,6 +28,7 @@
#include "libads/dns.h" #include "libads/dns.h"
#include "../libds/common/flags.h" #include "../libds/common/flags.h"
#include "smbldap.h" #include "smbldap.h"
#include "../libcli/security/security.h"
#ifdef HAVE_LDAP #ifdef HAVE_LDAP

View File

@ -25,6 +25,7 @@
#include "registry/reg_backend_db.h" #include "registry/reg_backend_db.h"
#include "registry/reg_api_util.h" #include "registry/reg_api_util.h"
#include "registry/reg_init_basic.h" #include "registry/reg_init_basic.h"
#include "../libcli/security/security.h"
/**************************************************************** /****************************************************************

View File

@ -35,7 +35,7 @@
#include "secrets.h" #include "secrets.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "krb5_env.h" #include "krb5_env.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/**************************************************************** /****************************************************************
****************************************************************/ ****************************************************************/

View File

@ -28,7 +28,7 @@
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/ndr_netlogon.h" #include "../librpc/gen_ndr/ndr_netlogon.h"
#include "../librpc/gen_ndr/cli_netlogon.h" #include "../librpc/gen_ndr/cli_netlogon.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/** /**
* Fix up the delta, dealing with encryption issues so that the final * Fix up the delta, dealing with encryption issues so that the final

View File

@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "libnet/libnet_samsync.h" #include "libnet/libnet_samsync.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/* Convert a struct samu_DELTA to a struct samu. */ /* Convert a struct samu_DELTA to a struct samu. */
#define STRING_CHANGED (old_string && !new_string) ||\ #define STRING_CHANGED (old_string && !new_string) ||\

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "fake_file.h" #include "fake_file.h"
#include "../libcli/security/security.h"
NTSTATUS cli_get_quota_handle(struct cli_state *cli, uint16_t *quota_fnum) NTSTATUS cli_get_quota_handle(struct cli_state *cli, uint16_t *quota_fnum)
{ {

View File

@ -28,6 +28,7 @@
#include "libsmb_internal.h" #include "libsmb_internal.h"
#include "../librpc/gen_ndr/ndr_lsa.h" #include "../librpc/gen_ndr/ndr_lsa.h"
#include "rpc_client/cli_lsarpc.h" #include "rpc_client/cli_lsarpc.h"
#include "libcli/security/security.h"
/* /*
* Check a server for being alive and well. * Check a server for being alive and well.

View File

@ -27,8 +27,7 @@
#include "libsmb_internal.h" #include "libsmb_internal.h"
#include "../librpc/gen_ndr/ndr_lsa.h" #include "../librpc/gen_ndr/ndr_lsa.h"
#include "rpc_client/cli_lsarpc.h" #include "rpc_client/cli_lsarpc.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/* /*
* Find an lsa pipe handle associated with a cli struct. * Find an lsa pipe handle associated with a cli struct.

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_krb5pac.h" #include "librpc/gen_ndr/ndr_krb5pac.h"
#include "../libcli/security/security.h"
#define NETSAMLOGON_TDB "netsamlogon_cache.tdb" #define NETSAMLOGON_TDB "netsamlogon_cache.tdb"

View File

@ -20,6 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_ALL /* there's no proper class yet */ #define DBGC_CLASS DBGC_ALL /* there's no proper class yet */

View File

@ -39,6 +39,7 @@
#include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/messaging.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_LOCKING #define DBGC_CLASS DBGC_LOCKING

View File

@ -19,6 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
static NTSTATUS create_acl_blob(const struct security_descriptor *psd, static NTSTATUS create_acl_blob(const struct security_descriptor *psd,

View File

@ -22,7 +22,7 @@
#include "includes.h" #include "includes.h"
#include "../lib/crypto/crypto.h" #include "../lib/crypto/crypto.h"
#include "vfs_smb_traffic_analyzer.h" #include "vfs_smb_traffic_analyzer.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#include "secrets.h" #include "secrets.h"
#include "../librpc/gen_ndr/ndr_netlogon.h" #include "../librpc/gen_ndr/ndr_netlogon.h"

View File

@ -27,7 +27,7 @@
#include "../libcli/netlogon.h" #include "../libcli/netlogon.h"
#include "../libcli/cldap/cldap.h" #include "../libcli/cldap/cldap.h"
#include "../lib/tsocket/tsocket.h" #include "../lib/tsocket/tsocket.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#include "secrets.h" #include "secrets.h"
#include "nmbd/nmbd.h" #include "nmbd/nmbd.h"

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/security.h"
static struct db_context *db; static struct db_context *db;
/* cache all entries for 60 seconds for to save ldap-queries (cache is updated /* cache all entries for 60 seconds for to save ldap-queries (cache is updated

View File

@ -24,7 +24,7 @@
#include "secrets.h" #include "secrets.h"
#include "memcache.h" #include "memcache.h"
#include "idmap_cache.h" #include "idmap_cache.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/***************************************************************** /*****************************************************************
Dissect a user-provided name into domain, name, sid and type. Dissect a user-provided name into domain, name, sid and type.

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "secrets.h" #include "secrets.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/* NOTE! the global_sam_sid is the SID of our local SAM. This is only /* NOTE! the global_sam_sid is the SID of our local SAM. This is only
equal to the domain SID when we are a DC, otherwise its our equal to the domain SID when we are a DC, otherwise its our

View File

@ -25,6 +25,7 @@
#include "includes.h" #include "includes.h"
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "secrets.h" #include "secrets.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -24,6 +24,7 @@
#include "secrets.h" #include "secrets.h"
#include "../librpc/gen_ndr/samr.h" #include "../librpc/gen_ndr/samr.h"
#include "../libcli/ldap/ldap_ndr.h" #include "../libcli/ldap/ldap_ndr.h"
#include "../libcli/security/security.h"
struct pdb_ads_state { struct pdb_ads_state {
struct sockaddr_un socket_address; struct sockaddr_un socket_address;

View File

@ -22,6 +22,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -25,7 +25,7 @@
#include "../librpc/gen_ndr/samr.h" #include "../librpc/gen_ndr/samr.h"
#include "memcache.h" #include "memcache.h"
#include "nsswitch/winbind_client.h" #include "nsswitch/winbind_client.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -47,7 +47,7 @@
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "secrets.h" #include "secrets.h"
#include "idmap_cache.h" #include "idmap_cache.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -22,7 +22,7 @@
#include "includes.h" #include "includes.h"
#include "../librpc/gen_ndr/samr.h" #include "../librpc/gen_ndr/samr.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -24,6 +24,7 @@
#include "includes.h" #include "includes.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/security.h"
#if 0 /* when made a module use this */ #if 0 /* when made a module use this */

View File

@ -27,6 +27,7 @@
#include "librpc/gen_ndr/ndr_secrets.h" #include "librpc/gen_ndr/ndr_secrets.h"
#include "secrets.h" #include "secrets.h"
#include "dbwrap.h" #include "dbwrap.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB #define DBGC_CLASS DBGC_PASSDB

View File

@ -18,7 +18,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
struct rid_name_map { struct rid_name_map {
uint32 rid; uint32 rid;

View File

@ -18,7 +18,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
bool sid_check_is_unix_users(const struct dom_sid *sid) bool sid_check_is_unix_users(const struct dom_sid *sid)
{ {

View File

@ -21,7 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
struct rid_name_map { struct rid_name_map {
uint32 rid; uint32 rid;

View File

@ -32,6 +32,7 @@
#include "nt_printing.h" #include "nt_printing.h"
#include "secrets.h" #include "secrets.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/security.h"
/* Map generic permissions to printer object specific permissions */ /* Map generic permissions to printer object specific permissions */

View File

@ -24,6 +24,7 @@
#include "printing/nt_printing_tdb.h" #include "printing/nt_printing_tdb.h"
#include "librpc/gen_ndr/spoolss.h" #include "librpc/gen_ndr/spoolss.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/security.h"
#define FORMS_PREFIX "FORMS/" #define FORMS_PREFIX "FORMS/"
#define DRIVERS_PREFIX "DRIVERS/" #define DRIVERS_PREFIX "DRIVERS/"

View File

@ -22,6 +22,7 @@
#include "../librpc/gen_ndr/cli_spoolss.h" #include "../librpc/gen_ndr/cli_spoolss.h"
#include "rpc_server/rpc_ncacn_np.h" #include "rpc_server/rpc_ncacn_np.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../libcli/security/security.h"
void print_spool_terminate(struct connection_struct *conn, void print_spool_terminate(struct connection_struct *conn,
struct print_file_data *print_file); struct print_file_data *print_file);

View File

@ -26,6 +26,7 @@
#include "includes.h" #include "includes.h"
#include "registry.h" #include "registry.h"
#include "reg_dispatcher.h" #include "reg_dispatcher.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_REGISTRY #define DBGC_CLASS DBGC_REGISTRY

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "reg_util_token.h" #include "reg_util_token.h"
#include "../libcli/security/security.h"
/* /*
* create a fake token just with enough rights to * create a fake token just with enough rights to

View File

@ -26,7 +26,7 @@
#include "../librpc/gen_ndr/cli_lsa.h" #include "../librpc/gen_ndr/cli_lsa.h"
#include "rpc_client/cli_lsarpc.h" #include "rpc_client/cli_lsarpc.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
/** @defgroup lsa LSA - Local Security Architecture /** @defgroup lsa LSA - Local Security Architecture
* @ingroup rpc_client * @ingroup rpc_client

View File

@ -26,6 +26,7 @@
#include "registry.h" #include "registry.h"
#include "registry/reg_api.h" #include "registry/reg_api.h"
#include "registry/reg_api_util.h" #include "registry/reg_api_util.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV #define DBGC_CLASS DBGC_RPC_SRV

View File

@ -34,7 +34,7 @@
#include "secrets.h" #include "secrets.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV #define DBGC_CLASS DBGC_RPC_SRV

View File

@ -36,7 +36,7 @@
#include "../lib/crypto/md4.h" #include "../lib/crypto/md4.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "rpc_server/rpc_ncacn_np.h" #include "rpc_server/rpc_ncacn_np.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
extern userdom_struct current_user_info; extern userdom_struct current_user_info;

View File

@ -39,7 +39,7 @@
#include "../lib/crypto/arcfour.h" #include "../lib/crypto/arcfour.h"
#include "secrets.h" #include "secrets.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV #define DBGC_CLASS DBGC_RPC_SRV

View File

@ -34,6 +34,7 @@
#include "../librpc/gen_ndr/cli_spoolss.h" #include "../librpc/gen_ndr/cli_spoolss.h"
#include "rpc_client/init_spoolss.h" #include "rpc_client/init_spoolss.h"
#include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/messaging.h"
#include "../libcli/security/security.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "registry.h" #include "registry.h"
#include "registry/reg_objects.h" #include "registry/reg_objects.h"

View File

@ -28,7 +28,7 @@
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "secrets.h" #include "secrets.h"
#include "rpc_server/rpc_ncacn_np.h" #include "rpc_server/rpc_ncacn_np.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
#define TOP_LEVEL_PRINT_KEY "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print" #define TOP_LEVEL_PRINT_KEY "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print"
#define TOP_LEVEL_PRINT_PRINTERS_KEY TOP_LEVEL_PRINT_KEY "\\Printers" #define TOP_LEVEL_PRINT_PRINTERS_KEY TOP_LEVEL_PRINT_KEY "\\Printers"

View File

@ -26,6 +26,7 @@
#include "includes.h" #include "includes.h"
#include "../librpc/gen_ndr/srv_srvsvc.h" #include "../librpc/gen_ndr/srv_srvsvc.h"
#include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/messaging.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "dbwrap.h" #include "dbwrap.h"

View File

@ -25,6 +25,7 @@
#include "includes.h" #include "includes.h"
#include "../librpc/gen_ndr/srv_svcctl.h" #include "../librpc/gen_ndr/srv_svcctl.h"
#include "services/services.h" #include "services/services.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#undef DBGC_CLASS #undef DBGC_CLASS

View File

@ -27,6 +27,7 @@
#include "libnet/libnet_join.h" #include "libnet/libnet_join.h"
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/srv_wkssvc.h" #include "../librpc/gen_ndr/srv_wkssvc.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV #define DBGC_CLASS DBGC_RPC_SRV

View File

@ -27,6 +27,7 @@
#include "../librpc/gen_ndr/cli_lsa.h" #include "../librpc/gen_ndr/cli_lsa.h"
#include "rpc_client/cli_lsarpc.h" #include "rpc_client/cli_lsarpc.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/security.h"
/* useful function to allow entering a name instead of a SID and /* useful function to allow entering a name instead of a SID and
* looking it up automatically */ * looking it up automatically */

View File

@ -30,7 +30,7 @@
#include "rpc_client/cli_samr.h" #include "rpc_client/cli_samr.h"
#include "rpc_client/init_samr.h" #include "rpc_client/init_samr.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
extern struct dom_sid domain_sid; extern struct dom_sid domain_sid;

View File

@ -28,6 +28,7 @@
#include "../librpc/gen_ndr/ndr_netlogon.h" #include "../librpc/gen_ndr/ndr_netlogon.h"
#include "rpc_client/cli_netlogon.h" #include "rpc_client/cli_netlogon.h"
#include "../libcli/smbreadline/smbreadline.h" #include "../libcli/smbreadline/smbreadline.h"
#include "../libcli/security/security.h"
enum pipe_auth_type_spnego { enum pipe_auth_type_spnego {
PIPE_AUTH_TYPE_SPNEGO_NONE = 0, PIPE_AUTH_TYPE_SPNEGO_NONE = 0,

View File

@ -25,6 +25,7 @@
#include "registry.h" #include "registry.h"
#include "registry/reg_api.h" #include "registry/reg_api.h"
#include "registry/reg_api_util.h" #include "registry/reg_api_util.h"
#include "../libcli/security/security.h"
struct rcinit_file_information { struct rcinit_file_information {
char *description; char *description;

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "libcli/security/security.h"
/* /*
This module implements directory related functions for Samba. This module implements directory related functions for Samba.

View File

@ -19,6 +19,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#undef DBGC_CLASS #undef DBGC_CLASS

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "libcli/security/security.h"
#define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < real_max_open_files)) #define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < real_max_open_files))

View File

@ -39,6 +39,7 @@
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "rpc_client/init_lsa.h" #include "rpc_client/init_lsa.h"
#include "rpc_server/rpc_ncacn_np.h" #include "rpc_server/rpc_ncacn_np.h"
#include "../libcli/security/security.h"
#ifdef CHECK_TYPES #ifdef CHECK_TYPES
#undef CHECK_TYPES #undef CHECK_TYPES

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "fake_file.h" #include "fake_file.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
extern const struct generic_mapping file_generic_mapping; extern const struct generic_mapping file_generic_mapping;

View File

@ -24,6 +24,7 @@
#include "smbd/globals.h" #include "smbd/globals.h"
#include "fake_file.h" #include "fake_file.h"
#include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/messaging.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
extern const struct generic_mapping file_generic_mapping; extern const struct generic_mapping file_generic_mapping;

View File

@ -27,6 +27,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "libcli/security/security.h"
#define PIPE "\\PIPE\\" #define PIPE "\\PIPE\\"
#define PIPELEN strlen(PIPE) #define PIPELEN strlen(PIPE)

View File

@ -20,7 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "../libcli/security/dom_sid.h" #include "../libcli/security/security.h"
extern const struct generic_mapping file_generic_mapping; extern const struct generic_mapping file_generic_mapping;

View File

@ -32,6 +32,7 @@
#include "rpc_client/cli_spoolss.h" #include "rpc_client/cli_spoolss.h"
#include "rpc_client/init_spoolss.h" #include "rpc_client/init_spoolss.h"
#include "rpc_server/rpc_ncacn_np.h" #include "rpc_server/rpc_ncacn_np.h"
#include "libcli/security/security.h"
/**************************************************************************** /****************************************************************************
Ensure we check the path in *exactly* the same way as W2K for a findfirst/findnext Ensure we check the path in *exactly* the same way as W2K for a findfirst/findnext

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/security.h"
extern userdom_struct current_user_info; extern userdom_struct current_user_info;

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../libcli/security/security.h"
/* /*
* No prefix means direct username * No prefix means direct username

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../libcli/smb/smb_common.h" #include "../libcli/smb/smb_common.h"
#include "libcli/security/security.h"
static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx, static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev, struct tevent_context *ev,

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../libcli/smb/smb_common.h" #include "../libcli/smb/smb_common.h"
#include "../libcli/security/security.h"
static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req, static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
const char *in_path, const char *in_path,

View File

@ -29,6 +29,7 @@
#include "../libcli/auth/libcli_auth.h" #include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/xattr.h" #include "../librpc/gen_ndr/xattr.h"
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "libcli/security/security.h"
#define DIR_ENTRY_SAFETY_MARGIN 4096 #define DIR_ENTRY_SAFETY_MARGIN 4096

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/globals.h" #include "smbd/globals.h"
#include "../librpc/gen_ndr/netlogon.h" #include "../librpc/gen_ndr/netlogon.h"
#include "libcli/security/security.h"
/* what user is current? */ /* what user is current? */
extern struct current_user current_user; extern struct current_user current_user;

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/proto.h" #include "torture/proto.h"
#include "../libcli/security/security.h"
#define MAX_FILES 1000 #define MAX_FILES 1000

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "torture/proto.h" #include "torture/proto.h"
#include "../libcli/security/security.h"
/* /*
* Make sure that GENERIC_WRITE does not trigger append. See * Make sure that GENERIC_WRITE does not trigger append. See

View File

@ -21,7 +21,7 @@
#include "includes.h" #include "includes.h"
#include "nsswitch/libwbclient/wbc_async.h" #include "nsswitch/libwbclient/wbc_async.h"
#include "torture/proto.h" #include "torture/proto.h"
#include "libcli/security/dom_sid.h" #include "libcli/security/security.h"
#include "tldap.h" #include "tldap.h"
#include "tldap_util.h" #include "tldap_util.h"
#include "../librpc/gen_ndr/svcctl.h" #include "../librpc/gen_ndr/svcctl.h"

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "torture/proto.h" #include "torture/proto.h"
#include "../libcli/security/security.h"
bool torture_utable(int dummy) bool torture_utable(int dummy)
{ {

View File

@ -45,6 +45,7 @@
#include "utils/net.h" #include "utils/net.h"
#include "secrets.h" #include "secrets.h"
#include "lib/netapi/netapi.h" #include "lib/netapi/netapi.h"
#include "../libcli/security/security.h"
extern bool AllowDebugChange; extern bool AllowDebugChange;

View File

@ -34,6 +34,7 @@
#include "smb_krb5.h" #include "smb_krb5.h"
#include "secrets.h" #include "secrets.h"
#include "krb5_env.h" #include "krb5_env.h"
#include "../libcli/security/security.h"
#ifdef HAVE_ADS #ifdef HAVE_ADS

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "utils/net.h" #include "utils/net.h"
#include "../libcli/security/security.h"
/********************************************************* /*********************************************************
Figure out if the input was an NT group or a SID string. Figure out if the input was an NT group or a SID string.

Some files were not shown because too many files have changed in this diff Show More