mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
s3-passdb: use passdb headers where needed.
Guenther
This commit is contained in:
parent
a22a53ea44
commit
235f148590
@ -24,6 +24,7 @@
|
||||
#include "rpc_client/cli_pipe.h"
|
||||
#include "rpc_client/cli_netlogon.h"
|
||||
#include "secrets.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_AUTH
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../lib/util/util_pw.h"
|
||||
#include "lib/winbind_util.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_AUTH
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../lib/util/util_pw.h"
|
||||
#include "lib/winbind_util.h"
|
||||
#include "passdb.h"
|
||||
|
||||
/****************************************************************************
|
||||
Check for a SID in an struct security_token
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/krb5pac.h"
|
||||
#include "nsswitch/libwbclient/wbclient.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_AUTH
|
||||
|
@ -115,6 +115,7 @@ char *secrets_fetch_machine_password(const char *domain,
|
||||
bool trusted_domain_password_delete(const char *domain);
|
||||
bool secrets_store_ldap_pw(const char* dn, char* pw);
|
||||
bool fetch_ldap_pw(char **dn, char** pw);
|
||||
struct trustdom_info;
|
||||
NTSTATUS secrets_trusted_domains(TALLOC_CTX *mem_ctx, uint32 *num_domains,
|
||||
struct trustdom_info ***domains);
|
||||
bool secrets_store_afs_keyfile(const char *cell, const struct afs_keyfile *keyfile);
|
||||
|
@ -213,6 +213,7 @@ struct ldapsam_privates {
|
||||
};
|
||||
|
||||
/* Functions shared between pdb_ldap.c and pdb_nds.c. */
|
||||
struct pdb_methods;
|
||||
NTSTATUS pdb_init_ldapsam_compat( struct pdb_methods **pdb_method, const char *location);
|
||||
void private_data_free_fn(void **result);
|
||||
int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "dbwrap.h"
|
||||
#include "libcli/security/privileges_private.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#define PRIVPREFIX "PRIV_"
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbldap.h"
|
||||
#include "passdb.h"
|
||||
|
||||
/**********************************************************************
|
||||
Add the account-policies below the sambaDomain object to LDAP,
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "include/dbwrap.h"
|
||||
#include "system/filesys.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_ACLS
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "secrets.h"
|
||||
#include "../librpc/gen_ndr/netlogon.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
/* Map generic permissions to printer object specific permissions */
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "includes.h"
|
||||
#include "registry.h"
|
||||
#include "reg_objects.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_REGISTRY
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "rpc_client/cli_pipe.h"
|
||||
#include "librpc/gen_ndr/ndr_dcerpc.h"
|
||||
#include "librpc/rpc/dcerpc.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_RPC_CLI
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
/* The following definitions come from rpc_server/srv_samr_util.c */
|
||||
|
||||
struct samu;
|
||||
|
||||
void copy_id2_to_sam_passwd(struct samu *to,
|
||||
struct samr_UserInfo2 *from);
|
||||
void copy_id4_to_sam_passwd(struct samu *to,
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "rpc_client/cli_netlogon.h"
|
||||
#include "../libcli/smbreadline/smbreadline.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
|
||||
enum pipe_auth_type_spnego {
|
||||
PIPE_AUTH_TYPE_SPNEGO_NONE = 0,
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "rpc_server/rpc_ncacn_np.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "printing.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#ifdef CHECK_TYPES
|
||||
#undef CHECK_TYPES
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "../librpc/gen_ndr/messaging.h"
|
||||
#include "../librpc/gen_ndr/ndr_security.h"
|
||||
#include "idmap_cache.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
struct id {
|
||||
union {
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "../lib/util/util_pw.h"
|
||||
#include "system/passwd.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_QUOTA
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "fake_file.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../librpc/gen_ndr/ndr_security.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
extern const struct generic_mapping file_generic_mapping;
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "trans2.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
extern const struct generic_mapping file_generic_mapping;
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "../lib/util/select.h"
|
||||
#include "printing/pcap.h"
|
||||
#include "system/select.h"
|
||||
#include "passdb.h"
|
||||
|
||||
extern bool global_machine_password_needs_changing;
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "printing/pcap.h"
|
||||
#include "printing.h"
|
||||
#include "serverid.h"
|
||||
#include "passdb.h"
|
||||
|
||||
extern void start_epmd(struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx);
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "../librpc/gen_ndr/netlogon.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "printing/pcap.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
extern userdom_struct current_user_info;
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
/*
|
||||
* No prefix means direct username
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "smbd/globals.h"
|
||||
#include "../librpc/gen_ndr/netlogon.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
/* what user is current? */
|
||||
extern struct current_user current_user;
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "../librpc/gen_ndr/ndr_netlogon.h"
|
||||
#include "smb_krb5.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
|
||||
int net_lookup_usage(struct net_context *c, int argc, const char **argv)
|
||||
{
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "../libcli/security/display_sec.h"
|
||||
#include "../libcli/security/sddl.h"
|
||||
#include "../libcli/registry/util_reg.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "libsmb/clirap.h"
|
||||
#include "nsswitch/libwbclient/wbclient.h"
|
||||
#include "passdb.h"
|
||||
|
||||
static int net_mode_share;
|
||||
static NTSTATUS sync_files(struct copy_clistate *cp_clistate, const char *mask);
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "libnet/libnet_samsync.h"
|
||||
#include "libnet/libnet_dssync.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
static void parse_samsync_partial_replication_objects(TALLOC_CTX *mem_ctx,
|
||||
int argc,
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "includes.h"
|
||||
#include "popt_common.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
static TALLOC_CTX *ctx;
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "rpc_client/cli_lsarpc.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "libsmb/clirap.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
static int test_args;
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "web/swat_proto.h"
|
||||
#include "printing/pcap.h"
|
||||
#include "printing/load.h"
|
||||
#include "passdb.h"
|
||||
|
||||
static int demo_mode = False;
|
||||
static int passwd_only = False;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "includes.h"
|
||||
#include "winbindd.h"
|
||||
#include "idmap.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_IDMAP
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "winbindd.h"
|
||||
#include "librpc/gen_ndr/ndr_wbint_c.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
struct wb_gettoken_state {
|
||||
struct tevent_context *ev;
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "winbindd.h"
|
||||
#include "librpc/gen_ndr/ndr_wbint_c.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
struct wb_next_grent_state {
|
||||
struct tevent_context *ev;
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "winbindd.h"
|
||||
#include "librpc/gen_ndr/ndr_wbint_c.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
struct wb_next_pwent_state {
|
||||
struct tevent_context *ev;
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "../libcli/ldap/ldap_ndr.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../libds/common/flag_mapping.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#ifdef HAVE_ADS
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "ads.h"
|
||||
#include "nss_info.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -74,6 +74,7 @@
|
||||
#include "ads.h"
|
||||
#include "secrets.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "ads.h"
|
||||
#include "../librpc/gen_ndr/krb5pac.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "../librpc/gen_ndr/srv_lsa.h"
|
||||
#include "rpc_server/rpc_ncacn_np.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "secrets.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../libcli/auth/pam_errors.h"
|
||||
#include "passdb/machine_sid.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
Loading…
x
Reference in New Issue
Block a user