#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Check user is in correct domain if required
****************************************************************************/
return False;
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
BOOL global_machine_password_needs_changing = False;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/****************************************************************************
Read the a hosts.equiv or .rhosts file and check if it
allows this user from this machine.
return nt_status;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
core of smb password checking routine.
****************************************************************************/
pdb_free_sam(&sampass);
return nt_status;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
/****************************************************************************
return(nt_status);
}
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
update the encrypted smbpasswd file from the plaintext username and password
return nt_status;
}
-
-
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-extern int DEBUGLEVEL;
+#include "includes.h"
/* Data to do lanman1/2 password challenge. */
static unsigned char saved_challenge[8];
#include "includes.h"
-extern int DEBUGLEVEL;
-
#ifdef WITH_PAM
/*******************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* these are kept here to keep the string_combinations function simple */
static fstring this_user;
#if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH))
return NT_STATUS_WRONG_PASSWORD;
}
-
-
-
int archive_level = 0;
extern pstring debugf;
-extern int DEBUGLEVEL;
BOOL translation = False;
stack dir_stack = {NULL, 0}; /* Want an empty stack */
#define SEPARATORS " \t\n\r"
-extern int DEBUGLEVEL;
extern struct cli_state *cli;
/* These defines are for the do_setrattr routine, to indicate
#include <linux/smb_fs.h>
extern struct in_addr ipzero;
-extern int DEBUGLEVEL;
extern BOOL in_client;
extern pstring user_socket_options;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern fstring global_sam_name;
/*
#ifdef USE_SMBPASS_DB
static int al_file_lock_depth = 0;
-extern int DEBUGLEVEL;
static char s_readbuf[1024];
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
* NOTE. All these functions are abstracted into a structure
* that points to the correct function for the selected database. JRA.
#ifdef USE_SMBPASS_DB
static int gp_file_lock_depth = 0;
-extern int DEBUGLEVEL;
static char s_readbuf[1024];
#include "includes.h"
-extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
static TDB_CONTEXT *tdb; /* used for driver files */
BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2);
extern XFILE *dbf;
-extern int DEBUGLEVEL;
/* If we have these macros, we can add additional info to the header. */
#ifdef HAVE_FILE_MACRO
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define FAIL (-1)
/* masked_match - match address against netnumber/netmask */
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* these functions provide a simple way to allocate integers from a
pool without repitition */
-
/****************************************************************************
allocate a bitmap of the specified size
****************************************************************************/
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static pstring cvtbuf;
static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];
extern struct user_creds *usr_creds;
-extern int DEBUGLEVEL;
-
-
#define CNV_LANG(s) dos2unix_format(s,False)
#define CNV_INPUT(s) unix2dos_format(s,True)
*/
#include "includes.h"
-extern int DEBUGLEVEL;
static unsigned long CRCTable[256] =
{
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static void (*cont_fn)(void *);
-
/*******************************************************************
report a fault
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
static unsigned char hash[258];
static uint32 counter;
unsigned char *reseed_data;
#include "includes.h"
-extern int DEBUGLEVEL;
-
static BOOL enlarge_hash_table(hash_table *table);
static int primes[] =
{17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411};
static struct iface_struct *probed_ifaces;
static int total_probed;
-extern int DEBUGLEVEL;
-
struct in_addr ipzero;
struct in_addr allones_ip;
struct in_addr loopback_ip;
#ifdef WITH_NETATALK
-extern int DEBUGLEVEL;
-
/*****************
ntalk_resourcepath: creates the path to the netatalk resource fork for
a given file
return chmod(fname, perms);
}
-
#endif /* WITH_NETATALK */
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
#ifndef O_NONBLOCK
#define O_NONBLOCK
#endif
#include "includes.h"
-extern int DEBUGLEVEL;
-
void replace_dummy(void);
void replace_dummy(void) {}
-
#ifndef HAVE_FTRUNCATE
/*******************************************************************
ftruncate for operating systems that don't have it
/* need to move this from here!! need some sleep ... */
struct current_user current_user;
-extern int DEBUGLEVEL;
-
/****************************************************************************
This is a utility function of smbrun().
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
fstring local_machine="";
fstring remote_arch="UNKNOWN";
userdom_struct current_user_info;
fstring remote_proto="UNKNOWN";
fstring remote_machine="";
-
/*******************************************************************
Given a pointer to a %$(NAME) expand it as an environment variable.
Return the number of characters by which the pointer should be advanced.
{
standard_sub_advanced(snum, vuser->user.unix_name, "", -1, str);
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
This file wraps all differing system ACL interfaces into a consistent
one based on the POSIX interface. It also returns the correct errors
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
The idea is that this file will eventually have wrappers around all
important system calls in samba. The aims are:
int serverzone=0;
int extra_time_offset = 0;
-extern int DEBUGLEVEL;
-
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif
*/
#include "includes.h"
-extern int DEBUGLEVEL;
/* internal functions */
static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (char *), int N);
extern int sslFd;
#endif /* WITH_SSL */
-extern int DEBUGLEVEL;
-
int Protocol = PROTOCOL_COREPLUS;
/* a default finfo structure to ensure all fields are sensible */
#include "includes.h"
-extern int DEBUGLEVEL;
-
static int gotalarm;
/***************************************************************
#include "nterr.h"
#include "sids.h"
-extern int DEBUGLEVEL;
-
/**********************************************************************************
Check if this ACE has a SID in common with the token.
**********************************************************************************/
#ifndef AUTOCONF_TEST
#include "includes.h"
-extern int DEBUGLEVEL;
#else
/* we are running this code in autoconf test mode to see which type of setuid
function works */
#include "includes.h"
-
-extern int DEBUGLEVEL;
DOM_SID global_sam_sid;
extern pstring global_myname;
extern fstring global_myworkgroup;
extern int sslFd;
#endif /* WITH_SSL */
-extern int DEBUGLEVEL;
-
/* the last IP received from */
struct in_addr lastip;
close(fd[1]);
return fd[0];
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Get the next token from a string, return False if none found
handles double-quotes.
* as source string even in multibyte encoding. (VIV) */
unix_strupper(s,strlen(s)+1,s,strlen(s)+1);
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
#ifndef MAXUNI
#define MAXUNI 1024
#endif
SAFE_FREE(ucs2_src);
return dest;
}
-
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
/*
* Change the port number used to call on
*/
cli->pid = pid;
return ret;
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*****************************************************
RAP error codes - a small start but will be extended.
*******************************************************/
return cli_is_error(cli) && !(flgs2 & FLAGS2_32_BIT_ERROR_CODES);
}
-
#define NO_SYSLOG
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
send an ack for an oplock break request
{
cli->oplock_handler = handler;
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
-
/****************************************************************************
represent a credential as a string
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
extern pstring global_myname;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* nmbd.c sets this to True. */
BOOL global_in_nmbd = False;
#include "includes.h"
-extern int DEBUGLEVEL;
-
int num_good_sends = 0;
int num_good_receives = 0;
return(len);
} /* name_len */
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/****************************************************************************
initialises a password structure
****************************************************************************/
*/
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
#include "byteorder.h"
/*
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* error code stuff - put together by Merik Karman
merik@blackadder.dsh.oz.au */
NTSTATUS status = map_nt_error_from_unix(error);
return ntstatus_to_werror(status);
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
static TDB_CONTEXT *tdbd = NULL;
/* the key type used in the unexpeceted packet database */
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define ZERO_ZERO 0
/* This contains elements that differentiate locks. The smbpid is a
*/
#include "includes.h"
-extern int DEBUGLEVEL;
uint16 global_smbpid;
/* the locking database handle */
*/
#include "includes.h"
-extern int DEBUGLEVEL;
/*
* The POSIX locking database handle.
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
/**********************************************************************
}
return jn_count;
}
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/***************************************************************************
Add a DNS result to the name cache.
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring debugf;
pstring servicesf = CONFIGFILE;
x_fclose(dbf);
return(0);
} /* main */
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
extern char **my_netbios_names;
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
extern uint16 samba_nb_type; /* Samba's NetBIOS name type. */
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* -------------------------------------------------------------------------- **
* Variables...
*
#include "includes.h"
#include "smb.h"
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
extern pstring global_myname;
extern fstring global_myworkgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
extern BOOL found_lm_clients;
#include "includes.h"
-extern int DEBUGLEVEL;
extern fstring global_myworkgroup;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Load a lmhosts file.
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
extern char **my_netbios_names;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern char **my_netbios_names;
extern fstring global_myworkgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern char **my_netbios_names;
uint16 samba_nb_type = 0; /* samba's NetBIOS name type */
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern fstring global_myworkgroup;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Deal with a response packet when releasing one of our names.
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Deal with a successful node status response.
****************************************************************************/
extern int ClientDGRAM;
extern int global_nmb_port;
-extern int DEBUGLEVEL;
-
extern int num_response_packets;
extern struct in_addr loopback_ip;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
extern int ClientNMB;
-extern int DEBUGLEVEL;
-
extern struct in_addr ipzero;
int num_response_packets = 0;
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
extern fstring global_myworkgroup;
extern char **my_netbios_names;
extern int ClientNMB;
-extern int DEBUGLEVEL;
-
extern fstring global_myworkgroup;
extern char **my_netbios_names;
extern int ClientDGRAM;
extern int global_nmb_port;
-extern int DEBUGLEVEL;
-
extern fstring myworkgroup;
extern char **my_netbios_names;
extern struct in_addr ipzero;
#include "includes.h"
#include "smb.h"
-extern int DEBUGLEVEL;
-
struct sync_record {
struct sync_record *next, *prev;
fstring workgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Function called when the name lookup succeeded.
****************************************************************************/
#define WINS_LIST "wins.dat"
#define WINS_VERSION 1
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
-
/****************************************************************************
possibly call the WINS hook external program when a WINS change is made
*****************************************************************************/
extern int ClientNMB;
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
extern fstring global_myworkgroup;
extern char **my_netbios_names;
#include "winbindd_nss.h"
-/* Naughty global stuff */
-
-extern int DEBUGLEVEL;
-
/* Client state structure */
struct winbindd_cli_state {
#include "includes.h"
#include <nss.h>
-extern int DEBUGLEVEL;
-
#ifndef INADDRSZ
#define INADDRSZ 4
#endif
* bSize - The size of the global buffer <bufr>.
*/
-extern int DEBUGLEVEL;
-
static char *bufr = NULL;
static int bSize = 0;
#define ADD_USER 1
#define MODIFY_USER 2
-extern int DEBUGLEVEL;
-
/*******************************************************************
open a connection to the ldap serve.
******************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
#ifdef WITH_PAM
/*******************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* these are kept here to keep the string_combinations function simple */
static fstring this_user;
#if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH))
return NT_STATUS_WRONG_PASSWORD;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
* This is set on startup - it defines the SID for this
* machine, and therefore the SAM database for which it is
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
* NOTE. All these functions are abstracted into a structure
* that points to the correct function for the selected database. JRA.
{
return pwgrp_ops->getsmbgrpuid(smb_userid, grps, num_grps, alss, num_alss);
}
-
#define SAM_ACCOUNT struct sam_passwd
#endif
-extern int DEBUGLEVEL;
-
struct ldap_enum_info
{
LDAP *ldap_struct;
};
-extern int DEBUGLEVEL;
extern pstring samlogon_user;
extern BOOL sam_logon_in_ssb;
extern struct passdb_ops pdb_ops;
-
/* used for maintain locks on the smbpasswd file */
static int pw_file_lock_depth;
static void *global_vp;
#ifdef USE_SMBPASS_DB
static int grp_file_lock_depth = 0;
-extern int DEBUGLEVEL;
/***************************************************************
Start to enumerate the smbpasswd list. Returns a void pointer
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static char *Months[13] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Err"};
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
extern DOM_SID global_sid_World;
#include "smb.h"
-extern int DEBUGLEVEL;
-
#ifdef AIX
/* ******************************************
Extend for AIX system and qconfig file
cups_job_submit,
};
-extern int DEBUGLEVEL;
-
-
/*
* 'cups_passwd_cb()' - The CUPS password callback...
*/
generic_job_submit,
};
-extern int DEBUGLEVEL;
-
/****************************************************************************
run a given print command
a null terminated list of value/substitute pairs is provided
#ifdef SYSV
-extern int DEBUGLEVEL;
-
typedef struct printer {
char *name;
struct printer *next;
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/***************************************************************************
open a print file and setup a fsp for it. This is a wrapper around
#include "printing.h"
-extern int DEBUGLEVEL;
-
/* Current printer interface */
struct printif *current_printif = &generic_printif;
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
static int shm_id;
message_register(MSG_REQ_PROFILELEVEL, reqprofile_message);
return True;
}
-
struct user_creds *usr_creds = NULL;
vuser_key *user_key = NULL;
-extern int DEBUGLEVEL;
extern pstring global_myname;
/*
* needed for the struct cli_connection
return True;
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
extern fstring global_myworkgroup;
extern pstring global_myname;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a LSA Open Policy
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
extern fstring global_myworkgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct pipe_id_info pipe_names[];
extern fstring global_myworkgroup;
extern pstring global_myname;
-
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a REG Open Policy
****************************************************************************/
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
-
#ifdef SYSLOG
#undef SYSLOG
#endif
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a SAMR query user groups
****************************************************************************/
#include "rpc_parse.h"
#include "nterr.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a SPOOLSS Enum Printer Drivers
****************************************************************************/
return r_o.status;
}
-
-
#include "rpc_parse.h"
#include "nterr.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
/*********************************************************
return True;
}
-
-
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#ifdef SYSLOG
#undef SYSLOG
#endif
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a server net conn enum
****************************************************************************/
#include "includes.h"
#include "trans2.h"
-extern int DEBUGLEVEL;
extern pstring scope;
extern pstring global_myname;
-
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#ifdef SYSLOG
#undef SYSLOG
#endif
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
do a WKS Open Policy
****************************************************************************/
#include "rpc_parse.h"
#include "rpcclient.h"
-extern int DEBUGLEVEL;
-
#define DEBUG_TESTING
extern FILE* out_hnd;
return True;
}
-
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#define NO_SYSLOG
#include "includes.h"
#include "rpc_parse.h"
#include "trans2.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
struct ncacn_np_use
cli->num_users++;
return cli->cli;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/************************************************************************
check workstation trust account status
cli_shutdown(&cli_trust);
return right_error_code;
}
-
-
* Foundation, Inc., 675 Mass Ave, Cambgrpsge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/*******************************************************************
makes a CREDS_UNIX structure.
********************************************************************/
#include "nterr.h"
#include "rpc_parse.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
Make a DFS_Q_DFS_QUERY structure
*******************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static BOOL lsa_io_trans_names(char *desc, LSA_TRANS_NAME_ENUM *trn, prs_struct *ps, int depth);
/*******************************************************************
return True;
}
-
-
-
-
-
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
A temporary TALLOC context for things like unistrs, that is valid for
the life of a complete RPC call.
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
Reads or writes a structure.
********************************************************************/
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-extern int DEBUGLEVEL;
-
#include "includes.h"
-
/*******************************************************************
dump a prs to a file
********************************************************************/
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/*******************************************************************
Inits a structure.
********************************************************************/
return True;
}
-
-
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/*******************************************************************
interface/version dce/rpc pipe identification
********************************************************************/
#include "rpc_parse.h"
#include "nterr.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
inits a SAMR_Q_CLOSE_HND structure.
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define SD_HEADER_SIZE 0x14
/*******************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
return the length of a UNISTR string.
********************************************************************/
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
Inits a SH_INFO_1_STR structure
********************************************************************/
-
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
Init
********************************************************************/
#define MAX_MSDFS_JUNCTIONS 256
-extern int DEBUGLEVEL;
extern pstring global_myname;
/**********************************************************************
{
return api_rpcTNP(p, "api_netdfs_rpc", api_netdfs_cmds);
}
-
#include "includes.h"
#include "nterr.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
#define MAX_MSDFS_JUNCTIONS 256
#include "includes.h"
-extern int DEBUGLEVEL;
-
/***************************************************************************
api_lsa_open_policy2
***************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* This is the max handles across all instances of a pipe name. */
#ifndef MAX_OPEN_POLS
#define MAX_OPEN_POLS 1024
#include "includes.h"
-extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
extern fstring global_myworkgroup;
extern pstring global_myname;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*************************************************************************
api_net_req_chal:
*************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern BOOL sam_logon_in_ssb;
extern pstring samlogon_user;
extern pstring global_myname;
#include "includes.h"
-extern int DEBUGLEVEL;
-
static void NTLMSSPcalc_p( pipes_struct *p, unsigned char *data, int len)
{
unsigned char *hash = p->ntlmssp_hash;
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include "includes.h"
-
#define PIPE "\\PIPE\\"
#define PIPELEN strlen(PIPE)
-extern int DEBUGLEVEL;
static pipes_struct *chain_p;
static int pipes_open;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
api_reg_close
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
struct reg_info
{
/* for use by \PIPE\winreg */
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
api_samr_close_hnd
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern fstring global_myworkgroup;
extern pstring global_myname;
extern DOM_SID global_sam_sid;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/********************************************************************
* api_spoolss_open_printer_ex
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
#ifndef MAX_OPEN_PRINTER_EXS
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
api_srv_net_srv_get_info
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
/*******************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
* A list of the rids of well known BUILTIN and Domain users
* and groups.
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*******************************************************************
api_wks_query_info
********************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring global_myname;
/*******************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring server;
/* Check DFS is supported by the remote server */
#include "includes.h"
-extern int DEBUGLEVEL;
extern pstring server;
/* Look up domain related information on a remote host */
#include "includes.h"
-extern int DEBUGLEVEL;
-
static NTSTATUS cmd_netlogon_logon_ctrl2(struct cli_state *cli, int argc,
char **argv)
{
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
-
#ifdef SYSLOG
#undef SYSLOG
#endif
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern int smb_tidx;
extern FILE* out_hnd;
*/
{ NULL }
};
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring server;
extern pstring global_myname;
extern pstring username, password;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Display server query info */
static char *get_server_type_str(uint32 type)
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define DEBUG_TESTING
extern struct cli_state *smb_cli;
DEBUG(5,("cmd_wks_query_info: query failed\n"));
}
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
extern fstring debugf;
DOM_SID domain_sid;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Synchronise sam database */
static NTSTATUS sam_sync(struct cli_state *cli, unsigned char trust_passwd[16],
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Check user is in correct domain if required
****************************************************************************/
return False;
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
BOOL global_machine_password_needs_changing = False;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/****************************************************************************
Read the a hosts.equiv or .rhosts file and check if it
allows this user from this machine.
return nt_status;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
/****************************************************************************
return(nt_status);
}
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
core of smb password checking routine.
****************************************************************************/
pdb_free_sam(&sampass);
return nt_status;
}
-
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
update the encrypted smbpasswd file from the plaintext username and password
return nt_status;
}
-
-
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-extern int DEBUGLEVEL;
+#include "includes.h"
/* Data to do lanman1/2 password challenge. */
static unsigned char saved_challenge[8];
*/
#include "includes.h"
-extern int DEBUGLEVEL;
+
extern char *OutBuffer;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct passdb_ops pdb_ops;
static BOOL check_oem_password(char *user,
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
run a file if it is a magic script
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* set these to define the limits of the server. NOTE These are on a
per-client basis. Thus any one machine can't connect to more than
MAX_CONNECTIONS services, but any number of machines may connect at
#include "includes.h"
-
extern fstring remote_machine;
static TDB_CONTEXT *tdb;
-extern int DEBUGLEVEL;
-
/****************************************************************************
Return the connection tdb context (used for message send all).
****************************************************************************/
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
/****************************************************************************
normalise for DOS usage
****************************************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
This module implements directory related functions for Samba.
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
change a dos mode to a unix mode
base permission for files:
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* these can be set by some functions to override the error codes */
int unix_ERR_class=SMB_SUCCESS;
int unix_ERR_code=0;
#include "includes.h"
-extern int DEBUGLEVEL;
-
static BOOL setup_write_cache(files_struct *, SMB_OFF_T);
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
extern BOOL case_sensitive;
extern BOOL case_preserve;
extern BOOL short_case_preserve;
#include "includes.h"
-extern int DEBUGLEVEL;
-
static int real_max_open_files;
#define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < real_max_open_files))
#ifdef USING_GROUPNAME_MAP
#include "includes.h"
-extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
-
/**************************************************************************
Groupname map functionality. The code loads a groupname map file and
(currently) loads it into a linked list. This is slow and memory
#include "includes.h"
-extern int DEBUGLEVEL;
extern int max_send;
extern fstring local_machine;
#endif
#define CHECK_TYPES 0
-extern int DEBUGLEVEL;
-
extern fstring local_machine;
extern pstring global_myname;
extern fstring global_myworkgroup;
* External Variables...
*/
-extern int DEBUGLEVEL; /* Global debug level. */
extern int case_default; /* Are conforming 8.3 names all upper or lower? */
extern BOOL case_mangle; /* If true, all chars in 8.3 should be same case. */
}
#endif /* TEST_MANGLE_CODE */
-
#include "includes.h"
/* look in server.c for some explanation of these variables */
-extern int DEBUGLEVEL;
-
-
static char msgbuf[1600];
static int msgpos;
static fstring msgfrom;
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern int max_recv;
extern fstring global_myworkgroup;
#include "includes.h"
-extern int DEBUGLEVEL;
-
static struct cnotify_fns *cnotify;
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
struct change_data {
time_t last_check_time; /* time we last checked this entry */
time_t modify_time; /* Info from the directory we're monitoring. */
#if HAVE_KERNEL_CHANGE_NOTIFY
-extern int DEBUGLEVEL;
static VOLATILE sig_atomic_t fd_pending;
static VOLATILE sig_atomic_t signals_received;
static VOLATILE sig_atomic_t signals_processed;
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern int smb_read_error;
extern int global_oplock_break;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern userdom_struct current_user_info;
extern uint16 global_oplock_port;
extern BOOL global_client_failed_oplock_break;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Oplock ipc UDP socket. */
static int oplock_sock = -1;
uint16 global_oplock_port = 0;
#include "includes.h"
#if HAVE_KERNEL_OPLOCKS_IRIX
-extern int DEBUGLEVEL;
static int oplock_pipe_write = -1;
static int oplock_pipe_read = -1;
#if HAVE_KERNEL_OPLOCKS_LINUX
-extern int DEBUGLEVEL;
-
static VOLATILE sig_atomic_t signals_received;
static VOLATILE sig_atomic_t signals_processed;
static VOLATILE sig_atomic_t fd_pending; /* the fd of the current pending signal */
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
/* users from session setup */
#define PIPE "\\PIPE\\"
#define PIPELEN strlen(PIPE)
-extern int DEBUGLEVEL;
-
extern struct pipe_id_info pipe_names[];
/****************************************************************************
#include "includes.h"
-extern int DEBUGLEVEL;
-
struct timeval smb_last_time;
static char *InBuffer = NULL;
#include "includes.h"
-extern int DEBUGLEVEL;
-
#if defined(VXFS_QUOTA)
/*
/* look in server.c for some explanation of these variables */
extern int Protocol;
-extern int DEBUGLEVEL;
extern int max_send;
extern int max_recv;
extern char magic_char;
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct current_user current_user;
struct sec_ctx {
/* a useful macro to debug the last message processed */
#define LAST_MESSAGE() smb_fn_name(last_message)
-extern int DEBUGLEVEL;
-
extern pstring user_socket_options;
#ifdef WITH_DFS
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern struct timeval smb_last_time;
extern int case_default;
extern BOOL case_preserve;
}
conn_free(conn);
}
-
-
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern BOOL case_sensitive;
extern int smb_read_error;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* what user is current? */
extern struct current_user current_user;
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Some structures to help us initialise the vfs operations table */
struct vfs_syminfo {
#include "includes.h"
-extern int DEBUGLEVEL;
-
static int shared_fd;
static char *variables;
static int shared_size;
struct bitmap *smbw_file_bmap;
extern pstring global_myname;
-extern int DEBUGLEVEL;
fstring smbw_prefix = SMBW_PREFIX;
static struct smbw_dir *smbw_dirs;
extern struct bitmap *smbw_file_bmap;
-extern int DEBUGLEVEL;
extern int smbw_busy;
struct smbw_dir *d = (struct smbw_dir *)dirp;
return smbw_dir_lseek(d->fd,0,SEEK_CUR);
}
-
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern int smbw_busy;
-
/*****************************************************
setup basic info in a stat structure
*******************************************************/
#include "includes.h"
-extern int DEBUGLEVEL;
static fstring password;
static fstring username;
static int got_pass;
extern pstring debugf;
-extern int DEBUGLEVEL;
-
extern file_info def_finfo;
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern struct in_addr ipzero;
static BOOL use_bcast = True;
#include "includes.h"
extern pstring global_myname;
-extern int DEBUGLEVEL;
/*
* Next two lines needed for SunOS and don't
#include "includes.h"
-extern int DEBUGLEVEL;
-
main()
{
char filter[]="0123456789ABCDEF";
static char *netbiosname;
static char packet[BUFFER_SIZE];
-extern int DEBUGLEVEL;
-
static void filter_reply(char *buf)
{
int msg_type = CVAL(buf,0);
#include "includes.h"
extern pstring global_myname;
-extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
/*
return 0;
}
-
-
#include "includes.h"
extern pstring global_myname;
-extern int DEBUGLEVEL;
/*
* Next two lines needed for SunOS and don't
struct session_record *next;
} *srecs;
-extern int DEBUGLEVEL;
-
static pstring Ucrit_username = ""; /* added by OH */
static pid_t Ucrit_pid[100]; /* Ugly !!! */ /* added by OH */
static int Ucrit_MaxPid=0; /* added by OH */
return (0);
}
-
#include "includes.h"
#include "smb.h"
-/* these live in util.c */
-extern int DEBUGLEVEL;
-
/***********************************************
Here we do a set of 'hard coded' checks for bad
configuration settings.
#include "includes.h"
#include "smb.h"
-/* these live in util.c */
-extern int DEBUGLEVEL;
-
int main(int argc, char *argv[])
{
char *pszTemp;
}
return (0);
}
-