const char *p;
char *pserver = NULL;
bool connected_ok = False;
- struct named_mutex *mutex;
+ struct named_mutex *mutex = NULL;
if (!(cli = cli_initialise()))
return NULL;
char **outbuf, size_t *outbytesleft)
{
size_t ret = iconv((iconv_t)cd,
- (char **)inbuf, inbytesleft,
+ (void *)inbuf, inbytesleft,
outbuf, outbytesleft);
if (ret == (size_t)-1) {
int saved_errno = errno;
hdtrl.iov_base = NULL;
hdtrl.iov_len = 0;
} else {
- hdtrl.iov_base += nwritten;
+ hdtrl.iov_base =
+ (caddr_t)hdtrl.iov_base + nwritten;
hdtrl.iov_len -= nwritten;
nwritten = 0;
}
bool is_ipaddress(const char *str)
{
+#if defined(HAVE_IPV6)
int ret = -1;
-#if defined(HAVE_IPV6)
if (strchr_m(str, ':')) {
char addr[INET6_ADDRSTRLEN];
struct in6_addr dest6;
const char *str,
int flags)
{
- char addr[INET6_ADDRSTRLEN];
struct addrinfo *res = NULL;
#if defined(HAVE_IPV6)
+ char addr[INET6_ADDRSTRLEN];
unsigned int scope_id = 0;
if (strchr_m(str, ':')) {
char *sid_string = NULL;
char *domain = NULL;
char *name = NULL;
- enum wbcSidType name_type;
+ enum wbcSidType name_type = WBC_SID_NAME_USE_NONE;
if (!sid) {
wbc_status = WBC_ERR_INVALID_PARAM;
# endif
/* BSD-like systems might want "lastlog" support. */
-/* *** Not yet implemented */
+#if 0 /* *** Not yet implemented */
#ifndef HAVE_PUTUTLINE /* see "pututline_my()" */
static const char *ll_pathname =
# if defined (_PATH_LASTLOG) /* what other names (if any?) */
"" ;
# endif /* _PATH_LASTLOG */
#endif /* HAVE_PUTUTLINE */
+#endif
/*
* Get name of {u,w}tmp{,x} file.
return result;
}
+typedef NTSTATUS (*netlogon_fn_t)(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32 logon_parameters,
+ const char *server,
+ const char *username,
+ const char *domain,
+ const char *workstation,
+ const uint8 chal[8],
+ DATA_BLOB lm_response,
+ DATA_BLOB nt_response,
+ struct netr_SamInfo3 **info3);
+
NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
struct winbindd_cli_state *state,
struct netr_SamInfo3 **info3)
/* check authentication loop */
do {
- NTSTATUS (*logon_fn)(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint32 logon_parameters,
- const char *server,
- const char *username,
- const char *ldomain,
- const char *workstation,
- const uint8 lchal[8],
- DATA_BLOB lm_response,
- DATA_BLOB nt_response,
- struct netr_SamInfo3 **linfo3);
+ netlogon_fn_t logon_fn;
ZERO_STRUCTP(my_info3);
retry = False;
}
do {
- NTSTATUS (*logon_fn)(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint32 logon_parameters,
- const char *server,
- const char *username,
- const char *ldomain,
- const char *lworkstation,
- const uint8 lchal[8],
- DATA_BLOB lm_response,
- DATA_BLOB nt_response,
- struct netr_SamInfo3 **linfo3);
+ netlogon_fn_t logon_fn;
retry = False;