#include "auth/auth.h"
#include "librpc/gen_ndr/ndr_samr.h"
#include "librpc/gen_ndr/ndr_security.h"
+#include "pstring.h"
/**
* Return an error based on username
#include "system/time.h"
#include "auth/auth.h"
#include "lib/ldb/include/ldb.h"
+#include "pstring.h"
/****************************************************************************
Do a specific test for an smb password being correct, given a smb_password and
#include "includes.h"
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "auth/auth.h"
+#include "nsswitch/winbind_client.h"
static NTSTATUS get_info3_from_ndr(TALLOC_CTX *mem_ctx, struct winbindd_response *response, struct netr_SamInfo3 *info3)
{
static NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
{
NTSTATUS status;
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
dce_call->fault_code = 0;
static NTSTATUS $name\__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
{
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
switch (opnum) {
";
static NTSTATUS $name\__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
{
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
switch (opnum) {
";
static NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, void *r)
{
NTSTATUS status;
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
status = dcerpc_table_$name.calls[opnum].ndr_push(push, NDR_OUT, r);
if (!NT_STATUS_IS_OK(status)) {
return NT_STATUS_OK;
}
-static BOOL $name\__op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32 if_version)
+static BOOL $name\__op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32_t if_version)
{
if ($name\_interface.if_version == if_version &&
strcmp($name\_interface.uuid, uuid)==0) {
static NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
{
NTSTATUS status;
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
dce_call->fault_code = 0;
static NTSTATUS $name\__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
{
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
struct GUID ipid = dce_call->pkt.u.request.object.object;
struct dcom_interface_p *iface = dcom_get_local_iface_p(&ipid);
const struct dcom_$name\_vtable *vtable = iface->vtable;
static NTSTATUS $name\__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
{
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
switch (opnum) {
";
static NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, void *r)
{
NTSTATUS status;
- uint16 opnum = dce_call->pkt.u.request.opnum;
+ uint16_t opnum = dce_call->pkt.u.request.opnum;
status = dcerpc_table_$name.calls[opnum].ndr_push(push, NDR_OUT, r);
if (!NT_STATUS_IS_OK(status)) {
return NT_STATUS_OK;
}
-static BOOL $name\__op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32 if_version)
+static BOOL $name\__op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32_t if_version)
{
if (dcerpc_table_$name.if_version == if_version &&
strcmp(dcerpc_table_$name.uuid, uuid)==0) {
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "lib/ldb/include/ldb.h"
#include "system/time.h"
+#include "system/filesys.h"
/*
connect to the SAM database
const int units_per_week = 168;
const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr);
ZERO_STRUCT(hours);
- hours.bits = talloc_array(mem_ctx, uint8, units_per_week);
+ hours.bits = talloc_array(mem_ctx, uint8_t, units_per_week);
if (!hours.bits) {
return hours;
}
*/
#include "includes.h"
+#include "pstring.h"
/**
* @file dynconfig.c
* @brief Exported global configurations.
**/
+#include "pstring.h"
+
extern char const *dyn_SBINDIR,
*dyn_BINDIR;
#include "debug.h"
#include "doserr.h"
#include "enums.h"
-#include "pstring.h"
#include "smb_macros.h"
#include "smb.h"
#include "lib/socket/socket.h"
#include "smb_interfaces.h"
#include "ntvfs/ntvfs.h"
#include "cli_context.h"
-#include "nsswitch/winbind_client.h"
#include "ads.h"
#define malloc_p(type) (type *)malloc(sizeof(type))
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef _PSTRING
+
#define PSTRING_LEN 1024
#define FSTRING_LEN 256
typedef char fstring[FSTRING_LEN];
#define _PSTRING
+#endif
struct rap_shareenum_info_1 {
char name[13];
char pad;
- uint16 type;
+ uint16_t type;
char *comment;
};
struct rap_NetShareEnum {
struct {
- uint16 level;
- uint16 bufsize;
+ uint16_t level;
+ uint16_t bufsize;
} in;
struct {
- uint16 status;
- uint16 convert;
- uint16 count;
- uint16 available;
+ uint16_t status;
+ uint16_t convert;
+ uint16_t count;
+ uint16_t available;
union rap_shareenum_info *info;
} out;
};
struct rap_NetServerEnum2 {
struct {
- uint16 level;
- uint16 bufsize;
- uint32 servertype;
+ uint16_t level;
+ uint16_t bufsize;
+ uint32_t servertype;
const char *domain;
} in;
struct {
- uint16 status;
- uint16 convert;
- uint16 count;
- uint16 available;
+ uint16_t status;
+ uint16_t convert;
+ uint16_t count;
+ uint16_t available;
union rap_server_info *info;
} out;
};
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/time.h"
+#include "system/filesys.h"
+#include "pstring.h"
static TDB_CONTEXT *tdb;
*/
#include "includes.h"
#include "system/iconv.h"
+#include "pstring.h"
/**
* @file
#define _POPT_COMMON_H
#include "popt.h"
+#include "pstring.h"
/* Common popt structures */
extern struct poptOption popt_common_samba[];
*/
#include "includes.h"
+#include "pstring.h"
#include <unistd.h>
*/
#include "includes.h"
+#include "system/filesys.h"
#include "dlinklist.h"
#include "librpc/gen_ndr/ndr_epmapper.h"
#include "librpc/gen_ndr/ndr_remact.h"
static WERROR dcom_create_object_remote(struct dcom_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct dcom_interface_p ***ip, WERROR *results)
{
- uint16 protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
+ uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
struct dcerpc_pipe *p;
struct dcom_object_exporter *m;
NTSTATUS status;
struct DUALSTRINGARRAY dualstring;
NTSTATUS status;
struct pMInterfacePointer pm;
- uint16 protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
+ uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
status = dcom_connect_host(ctx, &p, server);
if (NT_STATUS_IS_ERR(status)) {
if (!m) {
struct dcerpc_pipe *po;
struct ResolveOxid r;
- uint16 protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
+ uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
DEBUG(3, ("No binding data present yet, resolving OXID %llu\n", p->ox->oxid));
*/
#include "includes.h"
+#include "system/filesys.h"
#include "dynconfig.h"
/* this global variable determines what messages are printed */
#include "includes.h"
#include "system/time.h"
#include "system/select.h"
+#include "system/filesys.h"
#include "dlinklist.h"
#include "lib/events/events.h"
#include "includes.h"
#include "version.h"
#include "system/wait.h"
+#include "system/filesys.h"
static void (*cont_fn)(void *);
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/time.h"
+#include "system/filesys.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_TDB
#include "includes.h"
#include "system/iconv.h"
+#include "system/filesys.h"
#include "lib/crypto/crypto.h"
static unsigned char hash[258];
-static uint32 counter;
+static uint32_t counter;
static BOOL done_reseed = False;
static void (*reseed_callback)(int *newseed);
static int do_reseed(BOOL use_fd, int fd)
{
unsigned char seed_inbuf[40];
- uint32 v1, v2; struct timeval tval; pid_t mypid;
+ uint32_t v1, v2; struct timeval tval; pid_t mypid;
int reseed_data = 0;
if (use_fd) {
#include "includes.h"
#include "dlinklist.h"
#include "system/iconv.h"
+#include "system/filesys.h"
/**
#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
#include "lib/tdb/include/tdb.h"
#else
#include "tdb.h"
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static int failures;
static void usage(void)
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static int ldb_delete_recursive(struct ldb_context *ldb, const char *dn)
{
int ret, i, total=0;
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static int verbose;
/*
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static int failures;
static void usage(void)
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static void usage(void)
{
printf("Usage: ldbrename [<options>] <olddn> <newdn>\n");
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static void usage(void)
{
printf("Usage: ldbsearch <options> <expression> <attrs...>\n");
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"
+#ifdef _SAMBA_BUILD_
+#include "system/filesys.h"
+#endif
+
static const char *ldb_url;
static const char *base_dn = "ou=Ldb Test,ou=People,o=University of Michigan,c=US";
#include "includes.h"
#include "lib/events/events.h"
+#include "system/filesys.h"
#include "system/time.h"
#include "messages.h"
#include "dlinklist.h"
*/
#include "includes.h"
+#include "pstring.h"
+#include "system/filesys.h"
#ifndef O_NONBLOCK
#define O_NONBLOCK
#include "includes.h"
#include "registry.h"
#include "system/dir.h"
+#include "system/filesys.h"
static WERROR reg_dir_add_key(TALLOC_CTX *mem_ctx, struct registry_key *parent, const char *name, uint32_t access_mask, struct security_descriptor *desc, struct registry_key **result)
{
return 0;
}
-static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, char **name, uint32 *type, void **data, int *len)
+static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, char **name, uint32_t *type, void **data, int *len)
{
const struct ldb_val *val;
*name = talloc_strdup(mem_ctx, ldb_msg_find_string(msg, "value", NULL));
case REG_DWORD_LE:
*len = 4;
- *data = talloc(mem_ctx, uint32);
+ *data = talloc(mem_ctx, uint32_t);
SIVAL(*data, 0, strtol(val->data, NULL, 0));
break;
}
}
-static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, TALLOC_CTX *mem_ctx, const char *name, uint32 type, void *data, int len)
+static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, TALLOC_CTX *mem_ctx, const char *name, uint32_t type, void *data, int len)
{
struct ldb_val val;
struct ldb_message *msg = talloc_zero(mem_ctx, struct ldb_message);
return WERR_OK;
}
-static WERROR ldb_set_value (struct registry_key *parent, const char *name, uint32 type, void *data, int len)
+static WERROR ldb_set_value (struct registry_key *parent, const char *name, uint32_t type, void *data, int len)
{
struct ldb_context *ctx = parent->hive->backend_data;
struct ldb_message *msg;
};
struct {
- uint32 hkey;
+ uint32_t hkey;
WERROR (*open) (struct dcerpc_pipe *p, TALLOC_CTX *, struct policy_handle *h);
} known_hives[] = {
{ HKEY_LOCAL_MACHINE, open_HKLM },
static WERROR rpc_query_key(struct registry_key *k);
-static WERROR rpc_get_predefined_key (struct registry_context *ctx, uint32 hkey_type, struct registry_key **k)
+static WERROR rpc_get_predefined_key (struct registry_context *ctx, uint32_t hkey_type, struct registry_key **k)
{
int n;
struct registry_hive *h;
struct rpc_key_data *mykeydata = parent->backend_data;
WERROR error;
struct winreg_EnumValue r;
- uint32 type, len1, zero = 0;
+ uint32_t type, len1, zero = 0;
NTSTATUS status;
uint8_t buf8;
uint16_t buf16;
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_REGISTRY
-static WERROR reg_samba_get_predef (struct registry_context *ctx, uint32 hkey, struct registry_key **k)
+static WERROR reg_samba_get_predef (struct registry_context *ctx, uint32_t hkey, struct registry_key **k)
{
WERROR error;
const char *conf;
*/
#include "includes.h"
+#include "system/filesys.h"
/* This is here because it allows us to avoid a nasty race in signal handling.
We need to guarantee that when we get a signal we get out of a select immediately
*/
#include "includes.h"
+#include "system/filesys.h"
/*
auto-close sockets on free
#include "includes.h"
#include "system/network.h"
+#include "system/filesys.h"
static NTSTATUS ipv4_init(struct socket_context *sock)
{
#include "includes.h"
#include "system/network.h"
+#include "system/filesys.h"
static struct in6_addr interpret_addr6(const char *name)
{
#include "includes.h"
#include "system/network.h"
+#include "system/filesys.h"
#include "system/network.h"
#include "system/wait.h"
#include "system/filesys.h"
+#include "pstring.h"
/*
The idea is that this file will eventually have wrappers around all
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
+#include "system/filesys.h"
#endif
#ifdef USE_SPINLOCKS
#include "lib/tdb/include/tdbutil.h"
#include "system/glob.h"
#include "system/wait.h"
+#include "system/filesys.h"
#include "dlinklist.h"
+#include "pstring.h"
/* these are little tdb utility functions that are meant to make
dealing with a tdb database a little less cumbersome in Samba */
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "system/iconv.h"
+#include "system/filesys.h"
#endif
#include "lib/tdb/include/tdb.h"
#include "system/time.h"
#include "system/wait.h"
+#include "system/filesys.h"
#endif
#include "includes.h"
#include "system/passwd.h"
+#include "system/filesys.h"
/*
there are times when smbd needs to temporarily gain root privileges
*/
#include "includes.h"
+#include "pstring.h"
/*****************************************************************
Splits passed user or group name to domain and user/group name parts
#include "dynconfig.h"
#include "system/network.h"
#include "system/iconv.h"
+#include "system/filesys.h"
/**************************************************************************n
Find a suitable temporary directory. The result should be copied immediately
#include "includes.h"
#include "system/shmem.h"
+#include "system/filesys.h"
/*************************************************************************
gets a line out of a file.
#include "includes.h"
#include "system/network.h"
+#include "pstring.h"
enum SOCK_OPT_TYPES {OPT_BOOL,OPT_INT,OPT_ON};
#include "includes.h"
#include "system/iconv.h"
+#include "pstring.h"
/**
* @file
struct auth_context *auth_context;
struct auth_serversupplied_info *server_info;
struct ntlmssp_state *ntlmssp_state;
- uint32 have_features;
+ uint32_t have_features;
};
}
static BOOL gensec_ntlmssp_have_feature(struct gensec_security *gensec_security,
- uint32 feature)
+ uint32_t feature)
{
struct gensec_ntlmssp_state *gensec_ntlmssp_state = gensec_security->private_data;
if (gensec_ntlmssp_state->have_features & feature) {
#include "includes.h"
#include "auth/auth.h"
#include "lib/crypto/crypto.h"
+#include "pstring.h"
static NTSTATUS ntlmssp_client_initial(struct ntlmssp_state *ntlmssp_state,
TALLOC_CTX *out_mem_ctx,
*/
#include "includes.h"
+#include "pstring.h"
/*
this is a tiny msrpc packet generator. I am only using this to
#include "system/time.h"
#include "auth/auth.h"
#include "lib/crypto/crypto.h"
+#include "pstring.h"
/*
This implements the X/Open SMB password encryption
}
static BOOL gensec_spnego_have_feature(struct gensec_security *gensec_security,
- uint32 feature)
+ uint32_t feature)
{
struct spnego_state *spnego_state = gensec_security->private_data;
if (!spnego_state->sub_sec_security) {
#include "includes.h"
#include "system/iconv.h"
+#include "system/filesys.h"
#include "asn_1.h"
/****************************************************************************
static BOOL ldap_decode_filter(TALLOC_CTX *mem_ctx, struct asn1_data *data,
char **filter)
{
- uint8 filter_tag, tag_desc;
+ uint8_t filter_tag, tag_desc;
if (!asn1_peek_uint8(data, &filter_tag))
return False;
BOOL ldap_decode(struct asn1_data *data, struct ldap_message *msg)
{
- uint8 tag;
+ uint8_t tag;
asn1_start_tag(data, ASN1_SEQUENCE(0));
asn1_read_Integer(data, &msg->messageid);
#include "includes.h"
#include "system/network.h"
+#include "system/filesys.h"
#include "auth/auth.h"
#include "asn_1.h"
#include "dlinklist.h"
#include "includes.h"
#include "libcli/raw/libcliraw.h"
+#include "system/filesys.h"
#include "auth/auth.h"
#define SETUP_REQUEST_SESSION(cmd, wct, buflen) do { \
#include "includes.h"
#include "lib/events/events.h"
#include "system/network.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/composite/composite.h"
/* DOS error codes. please read doserr.h */
#include "includes.h"
+#include "pstring.h"
struct werror_code_struct {
const char *dos_errstr;
/* NT error codes. please read nterr.h */
#include "includes.h"
+#include "pstring.h"
typedef struct
{
struct samr_GetUserPwInfo pwp;
struct samr_String samr_account_name;
- uint32 acct_flags;
- uint32 rid, access_granted;
+ uint32_t acct_flags;
+ uint32_t rid, access_granted;
int policy_min_pw_len = 0;
/* prepare connect to the SAMR pipe of users domain PDC */
struct _libnet_JoinDomain_in {
const char *domain_name;
const char *account_name;
- uint32 acct_type;
+ uint32_t acct_type;
} in;
struct _libnet_JoinDomain_out {
const char *server_name;
const char *dcerpc_iface_name;
const char *dcerpc_iface_uuid;
- uint32 dcerpc_iface_version;
+ uint32_t dcerpc_iface_version;
} in;
struct _libnet_rpc_connect_out {
const char *domain_name;
const char *dcerpc_iface_name;
const char *dcerpc_iface_uuid;
- uint32 dcerpc_iface_version;
+ uint32_t dcerpc_iface_version;
} in;
struct _libnet_rpc_connect_out out;
return status;
}
-DATA_BLOB dcerpc_floor_pack_lhs_data(TALLOC_CTX *mem_ctx, struct GUID *uuid, uint32 if_version)
+DATA_BLOB dcerpc_floor_pack_lhs_data(TALLOC_CTX *mem_ctx, struct GUID *uuid, uint32_t if_version)
{
struct ndr_push *ndr = ndr_push_init_ctx(mem_ctx);
*/
#include "includes.h"
+#include "nsswitch/winbind_client.h"
/* Global variables. These are effectively the client state information */
used. This allows us to provide the same semantics as NT */
#include "includes.h"
+#include "system/filesys.h"
#include "lib/tdb/include/tdb.h"
#include "messages.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "lib/tdb/include/tdb.h"
#include "messages.h"
#include "librpc/gen_ndr/ndr_security.h"
*/
#include "includes.h"
+#include "system/filesys.h"
+#include "system/passwd.h"
#include "librpc/gen_ndr/ndr_security.h"
/*
struct rap_call {
TALLOC_CTX *mem_ctx;
- uint16 callno;
+ uint16_t callno;
const char *paramdesc;
const char *datadesc;
- uint16 status;
- uint16 convert;
+ uint16_t status;
+ uint16_t convert;
- uint16 rcv_paramlen, rcv_datalen;
+ uint16_t rcv_paramlen, rcv_datalen;
struct ndr_push *ndr_push_param;
struct ndr_push *ndr_push_data;
return call;
}
-static NTSTATUS rap_srv_pull_word(struct rap_call *call, uint16 *result)
+static NTSTATUS rap_srv_pull_word(struct rap_call *call, uint16_t *result)
{
if (*call->paramdesc++ != 'W')
return NT_STATUS_INVALID_PARAMETER;
return ndr_pull_uint16(call->ndr_pull_param, NDR_SCALARS, result);
}
-static NTSTATUS rap_srv_pull_dword(struct rap_call *call, uint32 *result)
+static NTSTATUS rap_srv_pull_dword(struct rap_call *call, uint32_t *result)
{
if (*call->paramdesc++ != 'D')
return NT_STATUS_INVALID_PARAMETER;
return ndr_pull_string(call->ndr_pull_param, NDR_SCALARS, result);
}
-static NTSTATUS rap_srv_pull_bufsize(struct rap_call *call, uint16 *bufsize)
+static NTSTATUS rap_srv_pull_bufsize(struct rap_call *call, uint16_t *bufsize)
{
NTSTATUS result;
*/
#include "includes.h"
+#include "system/filesys.h"
#include "smb_server/smb_server.h"
/* this is stored in ntvfs_private */
#include "includes.h"
#include "auth/auth.h"
-#include "system/filesys.h"
#include "vfs_posix.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "includes.h"
#include "vfs_posix.h"
#include "system/time.h"
-#include "system/filesys.h"
#include "dlinklist.h"
#include "messages.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "includes.h"
#include "vfs_posix.h"
-#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
/*
#include "includes.h"
#include "vfs_posix.h"
#include "system/time.h"
-#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
*/
#include "includes.h"
-#include "system/filesys.h"
#include "vfs_posix.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#ifndef _VFS_POSIX_H_
#define _VFS_POSIX_H_
+#include "system/filesys.h"
#include "smb_server/smb_server.h"
/* this is the private structure for the posix vfs backend. It is used
*/
#include "includes.h"
-#include "system/filesys.h"
#include "vfs_posix.h"
/*
*/
#include "includes.h"
+#include "system/filesys.h"
#include "svfs.h"
#include "system/time.h"
#include "system/dir.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "svfs.h"
#include "system/time.h"
#include "dlinklist.h"
*/
#include "includes.h"
+#include "system/filesys.h"
+#include "system/passwd.h"
#include "auth/auth.h"
#include "libcli/security/security.h"
#include "smb_server/smb_server.h"
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "secrets.h"
+#include "system/filesys.h"
+#include "pstring.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB
/*
handle a bind request
*/
-static NTSTATUS dcesrv_alter_new_context(struct dcesrv_call_state *call, uint32 context_id)
+static NTSTATUS dcesrv_alter_new_context(struct dcesrv_call_state *call, uint32_t context_id)
{
uint32_t if_version, transfer_syntax_version;
const char *uuid, *transfer_syntax;
*/
#include "includes.h"
+#include "system/filesys.h"
#include "lib/events/events.h"
#include "rpc_server/dcerpc_server.h"
#include "smbd/service_stream.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "rpc_server/dcerpc_server.h"
#include "librpc/gen_ndr/ndr_rot.h"
#include "rpc_server/common/common.h"
#include "lib/ldb/include/ldb.h"
static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX *mem_ctx,
- uint32 format_flags, uint32 format_offered, uint32 format_desired,
+ uint32_t format_flags, uint32_t format_offered, uint32_t format_desired,
const char *name, struct drsuapi_DsNameInfo1 *info1)
{
int ret;
int ret;
struct ldb_message **res;
enum dssetup_DsRole role = DS_ROLE_STANDALONE_SERVER;
- uint32 flags = 0;
+ uint32_t flags = 0;
const char *domain = NULL;
const char *dns_domain = NULL;
const char *forest = NULL;
*/
#include "includes.h"
+#include "system/filesys.h"
#include "rpc_server/dcerpc_server.h"
#include "librpc/gen_ndr/ndr_echo.h"
#include "lib/events/events.h"
*
* (I think ... = 0; seems wrong here --metze)
*/
- uint32 negotiate_flags = 0;
+ uint32_t negotiate_flags = 0;
r3.in.server_name = r->in.server_name;
r3.in.account_name = r->in.account_name;
struct netr_ServerAuthenticate2 *r)
{
struct netr_ServerAuthenticate3 r3;
- uint32 rid = 0;
+ uint32_t rid = 0;
r3.in.server_name = r->in.server_name;
r3.in.account_name = r->in.account_name;
This is a bad temporary hack until we have at least some kind of schema
support
*/
-static char *ldb_hexstr(TALLOC_CTX *mem_ctx, uint32 val)
+static char *ldb_hexstr(TALLOC_CTX *mem_ctx, uint32_t val)
{
return talloc_asprintf(mem_ctx, "0x%.8x", val);
}
array->count = el->num_values;
- array->rids = talloc_array(mem_ctx, uint32,
+ array->rids = talloc_array(mem_ctx, uint32_t,
el->num_values);
if (array->rids == NULL)
return NT_STATUS_NO_MEMORY;
- array->unknown = talloc_array(mem_ctx, uint32,
+ array->unknown = talloc_array(mem_ctx, uint32_t,
el->num_values);
if (array->unknown == NULL)
return NT_STATUS_NO_MEMORY;
r->out.type = &val->data_type;
r->out.length = &val->data_len;
if (!r->in.data) {
- r->out.size = talloc(mem_ctx, uint32);
+ r->out.size = talloc(mem_ctx, uint32_t);
*r->out.size = val->data_len;
} else {
r->out.size = r->in.size;
#include "lib/tdb/include/tdb.h"
#include "dlinklist.h"
#include "smb_server/smb_server.h"
+#include "system/filesys.h"
/*
called when the process model is selected
#include "dynconfig.h"
#include "lib/cmdline/popt_common.h"
#include "system/dir.h"
+#include "system/filesys.h"
/*
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#define BASEDIR "\\delaywrite"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
static void list_fn(struct clilist_file_info *finfo, const char *name, void *state)
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#define BASEDIR "\\locktest"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "lib/tdb/include/tdbutil.h"
+#include "pstring.h"
static TDB_CONTEXT *tdb;
#include "includes.h"
#include "libcli/raw/libcliraw.h"
+#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
+#include "pstring.h"
#define VERBOSE 0
#define OP_MIN 0
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "includes.h"
#include "system/iconv.h"
+#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
+#include "pstring.h"
BOOL torture_utable(void)
{
#include "includes.h"
#include "dynconfig.h"
#include "system/time.h"
+#include "system/filesys.h"
#include "request.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "lib/events/events.h"
enum {MY_PING=1000, MY_PONG, MY_EXIT};
*/
#include "includes.h"
+#include "system/filesys.h"
#include "dynconfig.h"
#include "system/time.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#include "dynconfig.h"
#include "clilist.h"
#include "libcli/raw/libcliraw.h"
*/
#include "includes.h"
+#include "system/filesys.h"
+#include "pstring.h"
int nbench_line_count = 0;
static int timelimit = 600;
#include "includes.h"
#include "system/time.h"
+#include "system/filesys.h"
#include "dlinklist.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "rap.h"
struct rap_call {
- uint16 callno;
+ uint16_t callno;
char *paramdesc;
const char *datadesc;
- uint16 status;
- uint16 convert;
+ uint16_t status;
+ uint16_t convert;
- uint16 rcv_paramlen, rcv_datalen;
+ uint16_t rcv_paramlen, rcv_datalen;
struct ndr_push *ndr_push_param;
struct ndr_push *ndr_push_data;
#define RAPNDR_FLAGS (LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
-static struct rap_call *new_rap_cli_call(TALLOC_CTX *mem_ctx, uint16 callno)
+static struct rap_call *new_rap_cli_call(TALLOC_CTX *mem_ctx, uint16_t callno)
{
struct rap_call *call;
call->paramdesc[len+1] = '\0';
}
-static void rap_cli_push_word(struct rap_call *call, uint16 val)
+static void rap_cli_push_word(struct rap_call *call, uint16_t val)
{
rap_cli_push_paramdesc(call, 'W');
ndr_push_uint16(call->ndr_push_param, NDR_SCALARS, val);
}
-static void rap_cli_push_dword(struct rap_call *call, uint32 val)
+static void rap_cli_push_dword(struct rap_call *call, uint32_t val)
{
rap_cli_push_paramdesc(call, 'D');
ndr_push_uint32(call->ndr_push_param, NDR_SCALARS, val);
{
rap_cli_push_paramdesc(call, 'e');
rap_cli_push_paramdesc(call, 'h');
- call->rcv_paramlen += 4; /* uint16 entry count, uint16 total */
+ call->rcv_paramlen += 4; /* uint16_t entry count, uint16_t total */
}
static void rap_cli_push_string(struct rap_call *call, const char *str)
}
static NTSTATUS rap_pull_string(TALLOC_CTX *mem_ctx, struct ndr_pull *ndr,
- uint16 convert, char **dest)
+ uint16_t convert, char **dest)
{
- uint16 string_offset;
- uint16 ignore;
+ uint16_t string_offset;
+ uint16_t ignore;
const char *p;
size_t len;
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
expected_bits = SEC_FILE_WRITE_DATA | SEC_FILE_READ_ATTRIBUTE;
for (i=0;i<16;i++) {
- uint32 bit = (1<<i);
+ uint32_t bit = (1<<i);
io.ntcreatex.in.access_mask = bit;
status = smb_raw_open(cli->tree, mem_ctx, &io);
if (expected_bits & bit) {
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h"
/* enum for whether reads/writes are possible on a file */
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
*/
#include "includes.h"
+#include "system/filesys.h"
#include "libcli/raw/libcliraw.h"
*/
#include "includes.h"
+#include "system/filesys.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h"
+#include "system/filesys.h"
#define BASEDIR "\\teststreams"
*/
#include "includes.h"
+#include "system/filesys.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
+#include "system/filesys.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
NTSTATUS status;
/* produce a reasonable range of language output without screwing up
terminals */
- uint16 language_id = (random() % 4) + 0x409;
+ uint16_t language_id = (random() % 4) + 0x409;
printf("testing LookupPrivDisplayName(%s)\n", priv_name->string);
struct netr_ServerAuthenticate3 a;
struct netr_Credential credentials1, credentials2, credentials3;
struct samr_Password mach_password;
- uint32 rid;
+ uint32_t rid;
printf("Testing ServerReqChallenge\n");
struct RemoteActivation r;
NTSTATUS status;
struct GUID iids[2];
- uint16 protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID };
+ uint16_t protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID };
ZERO_STRUCT(r.in);
r.in.this.version.MajorVersion = 5;
{
struct ResolveOxid r;
NTSTATUS status;
- uint16 protseq[2] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_SMB };
+ uint16_t protseq[2] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_SMB };
r.in.pOxid = oxid;
r.in.cRequestedProtseqs = 2;
{
struct ResolveOxid2 r;
NTSTATUS status;
- uint16 protseq[2] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_SMB };
+ uint16_t protseq[2] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_SMB };
r.in.pOxid = oxid;
r.in.cRequestedProtseqs = 2;
struct RemoteActivation r;
NTSTATUS status;
struct GUID iids[2];
- uint16 protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID };
+ uint16_t protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID };
ZERO_STRUCT(r.in);
r.in.this.version.MajorVersion = 5;
struct netr_LogonSamLogonWithFlags *r_flags = &samlogon_state->r_flags;
struct netr_NetworkInfo ninfo;
struct netr_SamBaseInfo *base = NULL;
- uint16 validation_level = 0;
+ uint16_t validation_level = 0;
samlogon_state->r.in.logon.network = &ninfo;
samlogon_state->r_ex.in.logon.network = &ninfo;
static BOOL test_SetUserPass_23(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct policy_handle *handle, uint32 fields_present,
+ struct policy_handle *handle, uint32_t fields_present,
char **password)
{
NTSTATUS status;
}
static BOOL test_SetUserPass_25(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct policy_handle *handle, uint32 fields_present,
+ struct policy_handle *handle, uint32_t fields_present,
char **password)
{
NTSTATUS status;
char *password = NULL;
int i;
- const uint32 password_fields[] = {
+ const uint32_t password_fields[] = {
SAMR_FIELD_PASSWORD,
SAMR_FIELD_PASSWORD2,
SAMR_FIELD_PASSWORD | SAMR_FIELD_PASSWORD2,
static BOOL samsync_handle_user(TALLOC_CTX *mem_ctx, struct samsync_state *samsync_state,
int database_id, struct netr_DELTA_ENUM *delta)
{
- uint32 rid = delta->delta_id_union.rid;
+ uint32_t rid = delta->delta_id_union.rid;
struct netr_DELTA_USER *user = delta->delta_union.user;
struct netr_SamInfo3 *info3;
struct samr_Password lm_hash;
static BOOL samsync_handle_alias(TALLOC_CTX *mem_ctx, struct samsync_state *samsync_state,
int database_id, struct netr_DELTA_ENUM *delta)
{
- uint32 rid = delta->delta_id_union.rid;
+ uint32_t rid = delta->delta_id_union.rid;
struct netr_DELTA_ALIAS *alias = delta->delta_union.alias;
NTSTATUS nt_status;
BOOL ret = True;
static BOOL samsync_handle_group(TALLOC_CTX *mem_ctx, struct samsync_state *samsync_state,
int database_id, struct netr_DELTA_ENUM *delta)
{
- uint32 rid = delta->delta_id_union.rid;
+ uint32_t rid = delta->delta_id_union.rid;
struct netr_DELTA_GROUP *group = delta->delta_union.group;
NTSTATUS nt_status;
BOOL ret = True;
test a schannel connection with the given flags
*/
static BOOL test_schannel(TALLOC_CTX *mem_ctx,
- uint16 acct_flags, uint32 dcerpc_flags,
- uint32 schannel_type)
+ uint16_t acct_flags, uint32_t dcerpc_flags,
+ uint32_t schannel_type)
{
void *join_ctx;
const char *machine_password;
TALLOC_CTX *mem_ctx;
BOOL ret = True;
struct {
- uint16 acct_flags;
- uint32 dcerpc_flags;
- uint32 schannel_type;
+ uint16_t acct_flags;
+ uint32_t dcerpc_flags;
+ uint32_t schannel_type;
} tests[] = {
{ ACB_WSTRUST, DCERPC_SCHANNEL_WORKSTATION | DCERPC_SIGN, 3 },
{ ACB_WSTRUST, DCERPC_SCHANNEL_WORKSTATION | DCERPC_SEAL, 3 },
r.in.ctr.ctr0 = &c0;
r.in.ctr.ctr0->count = 0;
r.in.ctr.ctr0->array = NULL;
- r.in.max_buffer = (uint32)-1;
+ r.in.max_buffer = (uint32_t)-1;
r.in.resume_handle = NULL;
for (i=0;i<ARRAY_SIZE(levels);i++) {
r.in.ctr.ctr0 = &c0;
r.in.ctr.ctr0->count = 0;
r.in.ctr.ctr0->array = NULL;
- r.in.max_buffer = (uint32)-1;
+ r.in.max_buffer = (uint32_t)-1;
r.in.resume_handle = NULL;
for (i=0;i<ARRAY_SIZE(levels);i++) {
struct svcctl_EnumServicesStatusW r;
int i;
NTSTATUS status;
- uint32 resume_handle = 0;
+ uint32_t resume_handle = 0;
struct ENUM_SERVICE_STATUS *service = NULL;
r.in.handle = h;
r.in.values[0].type = 0;
r.in.num_values = 1;
- r.in.buffer_size = r.out.buffer_size = talloc(mem_ctx, uint32);
+ r.in.buffer_size = r.out.buffer_size = talloc(mem_ctx, uint32_t);
*r.in.buffer_size = 0x20;
- r.in.buffer = r.out.buffer = talloc_zero_array(mem_ctx, uint8, *r.in.buffer_size);
+ r.in.buffer = r.out.buffer = talloc_zero_array(mem_ctx, uint8_t, *r.in.buffer_size);
status = dcerpc_winreg_QueryMultipleValues(p, mem_ctx, &r);
if(NT_STATUS_IS_ERR(status)) {
{
struct winreg_QueryValue r;
NTSTATUS status;
- uint32 zero = 0;
- uint32 offered = 0xfff;
+ uint32_t zero = 0;
+ uint32_t offered = 0xfff;
printf("Testing QueryValue\n");
struct policy_handle *handle, int max_valnamelen, int max_valbufsize)
{
struct winreg_EnumValue r;
- uint32 type = 0;
- uint32 size = max_valbufsize, zero = 0;
+ uint32_t type = 0;
+ uint32_t size = max_valbufsize, zero = 0;
BOOL ret = True;
uint8_t buf8;
uint16_t buf16;
#include "libcli/raw/libcliraw.h"
#include "system/time.h"
#include "system/wait.h"
+#include "system/filesys.h"
#include "ioctl.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "includes.h"
#include "utils/net/net.h"
#include "libnet/libnet.h"
+#include "system/filesys.h"
#include "system/passwd.h"
/*
#include "includes.h"
#include "dynconfig.h"
#include "system/passwd.h"
+#include "system/filesys.h"
#include "lib/cmdline/popt_common.h"
#include "auth/auth.h"
#include "libcli/security/security.h"
const DATA_BLOB *challenge,
const DATA_BLOB *lm_response,
const DATA_BLOB *nt_response,
- uint32 flags,
+ uint32_t flags,
DATA_BLOB *lm_session_key,
DATA_BLOB *user_session_key,
char **error_string,
char *error_string = NULL;
DATA_BLOB lm_key;
DATA_BLOB user_session_key;
- uint32 flags = 0;
+ uint32_t flags = 0;
if (full_username && !username) {
fstring fstr_user;
*/
#include "includes.h"
+#include "system/filesys.h"
#include "dlinklist.h"
#include "lib/events/events.h"
#include "smbd/service_task.h"