summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/check_samsec.c1
-rw-r--r--source3/auth/server_info.c1
-rw-r--r--source3/auth/server_info_sam.c1
-rw-r--r--source3/groupdb/mapping.c1
-rw-r--r--source3/groupdb/mapping_tdb.c1
-rw-r--r--source3/libnet/libnet_dssync_passdb.c1
-rw-r--r--source3/libnet/libnet_join.c1
-rw-r--r--source3/libnet/libnet_samsync_display.c1
-rw-r--r--source3/libnet/libnet_samsync_ldif.c1
-rw-r--r--source3/libnet/libnet_samsync_passdb.c1
-rw-r--r--source3/libsmb/trusts_util.c1
-rw-r--r--source3/pam_smbpass/general.h1
-rw-r--r--source3/passdb/account_pol.c1
-rw-r--r--source3/passdb/login_cache.c1
-rw-r--r--source3/passdb/lookup_sid.c1
-rw-r--r--source3/passdb/machine_account_secrets.c1
-rw-r--r--source3/passdb/machine_sid.c1
-rw-r--r--source3/passdb/passdb.c1
-rw-r--r--source3/passdb/pdb_ads.c1
-rw-r--r--source3/passdb/pdb_compat.c1
-rw-r--r--source3/passdb/pdb_get_set.c1
-rw-r--r--source3/passdb/pdb_interface.c1
-rw-r--r--source3/passdb/pdb_ipa.c1
-rw-r--r--source3/passdb/pdb_ldap.c1
-rw-r--r--source3/passdb/pdb_nds.c1
-rw-r--r--source3/passdb/pdb_smbpasswd.c1
-rw-r--r--source3/passdb/pdb_tdb.c1
-rw-r--r--source3/passdb/pdb_wbc_sam.c1
-rw-r--r--source3/passdb/secrets.c1
-rw-r--r--source3/passdb/util_builtin.c1
-rw-r--r--source3/passdb/util_unixsids.c1
-rw-r--r--source3/passdb/util_wellknown.c1
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c1
-rw-r--r--source3/rpc_server/netlogon/srv_netlog_nt.c1
-rw-r--r--source3/rpc_server/samr/srv_samr_chgpasswd.c1
-rw-r--r--source3/rpc_server/samr/srv_samr_nt.c1
-rw-r--r--source3/rpc_server/samr/srv_samr_util.c1
-rw-r--r--source3/torture/pdbtest.c1
-rw-r--r--source3/utils/net.c1
-rw-r--r--source3/utils/net_groupmap.c1
-rw-r--r--source3/utils/net_sam.c1
-rw-r--r--source3/utils/pdbedit.c1
-rw-r--r--source3/utils/smbpasswd.c1
-rw-r--r--source3/winbindd/idmap_passdb.c1
44 files changed, 44 insertions, 0 deletions
diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c
index db5f68fdfe..98d7ce87e3 100644
--- a/source3/auth/check_samsec.c
+++ b/source3/auth/check_samsec.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "../libcli/auth/libcli_auth.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index 363236c734..ca35ba76a1 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -23,6 +23,7 @@
#include "../libcli/security/security.h"
#include "rpc_client/util_netlogon.h"
#include "nsswitch/libwbclient/wbclient.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/server_info_sam.c b/source3/auth/server_info_sam.c
index c09ae764b9..35bbebabfe 100644
--- a/source3/auth/server_info_sam.c
+++ b/source3/auth/server_info_sam.c
@@ -25,6 +25,7 @@
#include "smbd/globals.h"
#include "../libcli/auth/libcli_auth.h"
#include "nsswitch/winbind_client.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 00ae4a1790..3646e04d0a 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "system/passwd.h"
+#include "passdb.h"
#include "groupdb/mapping.h"
#include "../libcli/security/security.h"
#include "lib/winbind_util.h"
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 2634552127..1137b8f658 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "passdb.h"
#include "groupdb/mapping.h"
#include "dbwrap.h"
#include "../libcli/security/security.h"
diff --git a/source3/libnet/libnet_dssync_passdb.c b/source3/libnet/libnet_dssync_passdb.c
index cd5943e5f0..ab347567f1 100644
--- a/source3/libnet/libnet_dssync_passdb.c
+++ b/source3/libnet/libnet_dssync_passdb.c
@@ -26,6 +26,7 @@
#include "../librpc/gen_ndr/ndr_drsuapi.h"
#include "dbwrap.h"
#include "../libds/common/flag_mapping.h"
+#include "passdb.h"
/****************************************************************
****************************************************************/
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index a11145b851..e702ffc13b 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -37,6 +37,7 @@
#include "rpc_client/cli_pipe.h"
#include "krb5_env.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
/****************************************************************
****************************************************************/
diff --git a/source3/libnet/libnet_samsync_display.c b/source3/libnet/libnet_samsync_display.c
index f2cff78dd9..d503ffb428 100644
--- a/source3/libnet/libnet_samsync_display.c
+++ b/source3/libnet/libnet_samsync_display.c
@@ -25,6 +25,7 @@
#include "includes.h"
#include "libnet/libnet_samsync.h"
+#include "passdb.h"
static void display_group_mem_info(uint32_t rid,
struct netr_DELTA_GROUP_MEMBER *r)
diff --git a/source3/libnet/libnet_samsync_ldif.c b/source3/libnet/libnet_samsync_ldif.c
index 8c6522a723..4154a07fda 100644
--- a/source3/libnet/libnet_samsync_ldif.c
+++ b/source3/libnet/libnet_samsync_ldif.c
@@ -27,6 +27,7 @@
#include "libnet/libnet_samsync.h"
#include "smbldap.h"
#include "transfer_file.h"
+#include "passdb.h"
#ifdef HAVE_LDAP
diff --git a/source3/libnet/libnet_samsync_passdb.c b/source3/libnet/libnet_samsync_passdb.c
index 3ad9ffe652..b579723f6f 100644
--- a/source3/libnet/libnet_samsync_passdb.c
+++ b/source3/libnet/libnet_samsync_passdb.c
@@ -27,6 +27,7 @@
#include "system/passwd.h"
#include "libnet/libnet_samsync.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
/* Convert a struct samu_DELTA to a struct samu. */
#define STRING_CHANGED (old_string && !new_string) ||\
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c
index 7ecc167343..08377fbfbc 100644
--- a/source3/libsmb/trusts_util.c
+++ b/source3/libsmb/trusts_util.c
@@ -26,6 +26,7 @@
#include "rpc_client/cli_pipe.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "secrets.h"
+#include "passdb.h"
/*********************************************************
Change the domain password on the PDC.
diff --git a/source3/pam_smbpass/general.h b/source3/pam_smbpass/general.h
index 74bd870bc5..6e13f8d936 100644
--- a/source3/pam_smbpass/general.h
+++ b/source3/pam_smbpass/general.h
@@ -1,5 +1,6 @@
#include "../librpc/gen_ndr/samr.h"
#include "../libcli/auth/pam_errors.h"
+#include "passdb.h"
#ifndef LINUX
/* This is only needed by modules in the Sun implementation. */
diff --git a/source3/passdb/account_pol.c b/source3/passdb/account_pol.c
index a30b9ca32a..7eeb38fdd8 100644
--- a/source3/passdb/account_pol.c
+++ b/source3/passdb/account_pol.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "passdb.h"
#include "dbwrap.h"
#include "../libcli/security/security.h"
static struct db_context *db;
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c
index a12265642d..1785a4daca 100644
--- a/source3/passdb/login_cache.c
+++ b/source3/passdb/login_cache.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 386207889a..677566187c 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../librpc/gen_ndr/ndr_security.h"
#include "secrets.h"
#include "memcache.h"
diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c
index f3206d4eb8..dcf37d1b2b 100644
--- a/source3/passdb/machine_account_secrets.c
+++ b/source3/passdb/machine_account_secrets.c
@@ -23,6 +23,7 @@
such as the local SID and machine trust password */
#include "includes.h"
+#include "passdb.h"
#include "../libcli/auth/libcli_auth.h"
#include "secrets.h"
#include "dbwrap.h"
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index 977cd20eb9..8fd5103164 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/passdb/machine_sid.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "secrets.h"
#include "dbwrap.h"
#include "../libcli/security/security.h"
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 80366a24e6..62af5be7eb 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -23,6 +23,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "system/passwd.h"
#include "../libcli/auth/libcli_auth.h"
#include "secrets.h"
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index dc728ee454..3746da3a4f 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "tldap.h"
#include "tldap_util.h"
#include "../libds/common/flags.h"
diff --git a/source3/passdb/pdb_compat.c b/source3/passdb/pdb_compat.c
index 17a18bca8e..a4fb1bf3c0 100644
--- a/source3/passdb/pdb_compat.c
+++ b/source3/passdb/pdb_compat.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../libcli/security/security.h"
#undef DBGC_CLASS
diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c
index e572c3d94f..6c1a2ab23d 100644
--- a/source3/passdb/pdb_get_set.c
+++ b/source3/passdb/pdb_get_set.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../libcli/auth/libcli_auth.h"
#include "../libcli/security/security.h"
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 56b66892d0..36d5aaa01a 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "system/passwd.h"
+#include "passdb.h"
#include "secrets.h"
#include "../librpc/gen_ndr/samr.h"
#include "memcache.h"
diff --git a/source3/passdb/pdb_ipa.c b/source3/passdb/pdb_ipa.c
index feae2287e7..3fffbe0657 100644
--- a/source3/passdb/pdb_ipa.c
+++ b/source3/passdb/pdb_ipa.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "libcli/security/dom_sid.h"
#include "smbldap.h"
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 7621bb6279..7ce5edcefa 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -44,6 +44,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../libcli/auth/libcli_auth.h"
#include "secrets.h"
#include "idmap_cache.h"
diff --git a/source3/passdb/pdb_nds.c b/source3/passdb/pdb_nds.c
index 1545b45d74..56375a813f 100644
--- a/source3/passdb/pdb_nds.c
+++ b/source3/passdb/pdb_nds.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include <lber.h>
#include <ldap.h>
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index c39394bfa5..43d6eaf664 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "system/passwd.h"
#include "system/filesys.h"
#include "../librpc/gen_ndr/samr.h"
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index f249538208..79c0ed196a 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "passdb.h"
#include "dbwrap.h"
#include "../libcli/security/security.h"
diff --git a/source3/passdb/pdb_wbc_sam.c b/source3/passdb/pdb_wbc_sam.c
index 742e789901..64529c7896 100644
--- a/source3/passdb/pdb_wbc_sam.c
+++ b/source3/passdb/pdb_wbc_sam.c
@@ -37,6 +37,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "lib/winbind_util.h"
/***************************************************************************
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index db9fb7275d..c16d15807b 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "passdb.h"
#include "../libcli/auth/libcli_auth.h"
#include "librpc/gen_ndr/ndr_secrets.h"
#include "secrets.h"
diff --git a/source3/passdb/util_builtin.c b/source3/passdb/util_builtin.c
index 9cd6780784..d37b8edff4 100644
--- a/source3/passdb/util_builtin.c
+++ b/source3/passdb/util_builtin.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../libcli/security/security.h"
struct rid_name_map {
diff --git a/source3/passdb/util_unixsids.c b/source3/passdb/util_unixsids.c
index fba4749dbb..e6f73a1443 100644
--- a/source3/passdb/util_unixsids.c
+++ b/source3/passdb/util_unixsids.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "system/passwd.h"
#include "../libcli/security/security.h"
#include "../lib/util/util_pw.h"
diff --git a/source3/passdb/util_wellknown.c b/source3/passdb/util_wellknown.c
index 2d83ebef12..1810efac17 100644
--- a/source3/passdb/util_wellknown.c
+++ b/source3/passdb/util_wellknown.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "passdb.h"
#include "../libcli/security/security.h"
struct rid_name_map {
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c
index 01e4a644b5..07d7fd46dd 100644
--- a/source3/rpc_server/lsa/srv_lsa_nt.c
+++ b/source3/rpc_server/lsa/srv_lsa_nt.c
@@ -41,6 +41,7 @@
#include "../lib/crypto/arcfour.h"
#include "../libcli/security/dom_sid.h"
#include "../librpc/gen_ndr/ndr_security.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c
index 6fe92eb172..90e8c6c6e3 100644
--- a/source3/rpc_server/netlogon/srv_netlog_nt.c
+++ b/source3/rpc_server/netlogon/srv_netlog_nt.c
@@ -43,6 +43,7 @@
#include "lib/crypto/md4.h"
#include "nsswitch/libwbclient/wbclient.h"
#include "../libcli/registry/util_reg.h"
+#include "passdb.h"
extern userdom_struct current_user_info;
diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c
index 613758f454..c5394edec0 100644
--- a/source3/rpc_server/samr/srv_samr_chgpasswd.c
+++ b/source3/rpc_server/samr/srv_samr_chgpasswd.c
@@ -52,6 +52,7 @@
#include "../libcli/auth/libcli_auth.h"
#include "../lib/crypto/arcfour.h"
#include "rpc_server/samr/srv_samr_util.h"
+#include "passdb.h"
#ifndef ALLOW_CHANGE_PASSWORD
#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
diff --git a/source3/rpc_server/samr/srv_samr_nt.c b/source3/rpc_server/samr/srv_samr_nt.c
index cbb72f8fdd..6759f238a3 100644
--- a/source3/rpc_server/samr/srv_samr_nt.c
+++ b/source3/rpc_server/samr/srv_samr_nt.c
@@ -41,6 +41,7 @@
#include "secrets.h"
#include "rpc_client/init_lsa.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/samr/srv_samr_util.c b/source3/rpc_server/samr/srv_samr_util.c
index 8dfeae15e8..29123321f8 100644
--- a/source3/rpc_server/samr/srv_samr_util.c
+++ b/source3/rpc_server/samr/srv_samr_util.c
@@ -25,6 +25,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/samr.h"
#include "rpc_server/samr/srv_samr_util.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index 82f8132797..7ab20c7692 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "popt_common.h"
+#include "passdb.h"
static bool samu_correct(struct samu *s1, struct samu *s2)
{
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 965cd443f3..9eace76661 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -46,6 +46,7 @@
#include "secrets.h"
#include "lib/netapi/netapi.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
#ifdef WITH_FAKE_KASERVER
#include "utils/net_afs.h"
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index 6f9a6ce802..818905e122 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -25,6 +25,7 @@
#include "system/passwd.h"
#include "utils/net.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
/*********************************************************
Figure out if the input was an NT group or a SID string.
diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c
index 0156660e86..dfd9a78cc3 100644
--- a/source3/utils/net_sam.c
+++ b/source3/utils/net_sam.c
@@ -25,6 +25,7 @@
#include "smbldap.h"
#include "../libcli/security/security.h"
#include "lib/winbind_util.h"
+#include "passdb.h"
/*
* Set a user's data
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index ec324cd5e8..cea3e3b295 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -24,6 +24,7 @@
#include "popt_common.h"
#include "../librpc/gen_ndr/samr.h"
#include "../libcli/security/security.h"
+#include "passdb.h"
#define BIT_BACKEND 0x00000004
#define BIT_VERBOSE 0x00000008
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 487f7a68d9..ada057c247 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -21,6 +21,7 @@
#include "secrets.h"
#include "../librpc/gen_ndr/samr.h"
#include "../lib/util/util_pw.h"
+#include "passdb.h"
/*
* Next two lines needed for SunOS and don't
diff --git a/source3/winbindd/idmap_passdb.c b/source3/winbindd/idmap_passdb.c
index 276ae2c104..4731756d5a 100644
--- a/source3/winbindd/idmap_passdb.c
+++ b/source3/winbindd/idmap_passdb.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "idmap.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_IDMAP