#include "nsswitch/winbind_struct_protocol.h"
#include "nsswitch/libwbclient/wbclient.h"
+#include "librpc/gen_ndr/dcerpc.h"
#include "librpc/gen_ndr/wbint.h"
#include "talloc_dict.h"
-#include "smb_ldap.h"
#include "../lib/util/tevent_ntstatus.h"
struct winbindd_cm_conn {
struct cli_state *cli;
+ enum dcerpc_AuthLevel auth_level;
+
struct rpc_pipe_client *samr_pipe;
struct policy_handle sam_connect_handle, sam_domain_handle;
struct tevent_queue *queue;
struct dcerpc_binding_handle *binding_handle;
- struct timed_event *lockout_policy_event;
- struct timed_event *machine_password_change_event;
+ struct tevent_timer *lockout_policy_event;
+ struct tevent_timer *machine_password_change_event;
const struct winbindd_child_dispatch_table *table;
};
/* Structures to hold per domain information */
struct winbindd_domain {
- fstring name; /* Domain name (NetBIOS) */
- fstring alt_name; /* alt Domain name, if any (FQDN for ADS) */
- fstring forest_name; /* Name of the AD forest we're in */
+ char *name; /* Domain name (NetBIOS) */
+ char *alt_name; /* alt Domain name, if any (FQDN for ADS) */
+ char *forest_name; /* Name of the AD forest we're in */
struct dom_sid sid; /* SID for this domain */
uint32 domain_flags; /* Domain flags from netlogon.h */
uint32 domain_type; /* Domain type from netlogon.h */
/* A working DC */
pid_t dc_probe_pid; /* Child we're using to detect the DC. */
- fstring dcname;
+ char *dcname;
struct sockaddr_storage dcaddr;
/* Sequence number stuff */
/* Callback we use to try put us back online. */
uint32 check_online_timeout;
- struct timed_event *check_online_event;
+ struct tevent_timer *check_online_event;
/* Linked list info */
time_t create_time;
time_t renew_until;
time_t refresh_time;
- struct timed_event *event;
+ struct tevent_timer *event;
};
#include "winbindd/winbindd_proto.h"
#define WINBINDD_PAM_AUTH_KRB5_RENEW_TIME 2592000 /* one month */
#define DOM_SEQUENCE_NONE ((uint32)-1)
-#define winbind_event_context server_event_context
-
#endif /* _WINBINDD_H */