Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/winbindd/winbindd.h

    r740 r988  
    2626#include "nsswitch/winbind_struct_protocol.h"
    2727#include "nsswitch/libwbclient/wbclient.h"
    28 #include "librpc/gen_ndr/wbint.h"
     28#include "librpc/gen_ndr/dcerpc.h"
     29#include "librpc/gen_ndr/winbind.h"
    2930
    3031#include "talloc_dict.h"
    31 #include "smb_ldap.h"
    3232
    3333#include "../lib/util/tevent_ntstatus.h"
     
    6868        struct tevent_queue *out_queue;
    6969        struct winbindd_response *response;        /* Respose to client */
    70         bool getpwent_initialized;                /* Has getpwent_state been
    71                                                    * initialized? */
    72         bool getgrent_initialized;                /* Has getgrent_state been
    73                                                    * initialized? */
     70        struct tevent_req *io_req; /* wb_req_read_* or wb_resp_write_* */
    7471
    7572        struct getpwent_state *pwent_state; /* State for getpwent() */
     
    107104        struct cli_state *cli;
    108105
     106        enum dcerpc_AuthLevel auth_level;
     107
    109108        struct rpc_pipe_client *samr_pipe;
    110109        struct policy_handle sam_connect_handle, sam_domain_handle;
     
    115114
    116115        struct rpc_pipe_client *netlogon_pipe;
     116        struct netlogon_creds_cli_context *netlogon_creds;
     117        uint32_t netlogon_flags;
     118        bool netlogon_force_reauth;
    117119};
    118120
     
    139141        struct dcerpc_binding_handle *binding_handle;
    140142
    141         struct timed_event *lockout_policy_event;
    142         struct timed_event *machine_password_change_event;
     143        struct tevent_timer *lockout_policy_event;
     144        struct tevent_timer *machine_password_change_event;
    143145
    144146        const struct winbindd_child_dispatch_table *table;
     
    148150
    149151struct winbindd_domain {
    150         fstring name;                          /* Domain name (NetBIOS) */
    151         fstring alt_name;                      /* alt Domain name, if any (FQDN for ADS) */
    152         fstring forest_name;                   /* Name of the AD forest we're in */
     152        char *name;                            /* Domain name (NetBIOS) */
     153        char *alt_name;                        /* alt Domain name, if any (FQDN for ADS) */
     154        char *forest_name;                     /* Name of the AD forest we're in */
    153155        struct dom_sid sid;                           /* SID for this domain */
    154         uint32 domain_flags;                   /* Domain flags from netlogon.h */
    155         uint32 domain_type;                    /* Domain type from netlogon.h */
    156         uint32 domain_trust_attribs;           /* Trust attribs from netlogon.h */
     156        uint32_t domain_flags;                   /* Domain flags from netlogon.h */
     157        uint32_t domain_type;                    /* Domain type from netlogon.h */
     158        uint32_t domain_trust_attribs;           /* Trust attribs from netlogon.h */
    157159        bool initialized;                      /* Did we already ask for the domain mode? */
    158160        bool native_mode;                      /* is this a win2k domain in native mode ? */
     
    160162        bool primary;                          /* is this our primary domain ? */
    161163        bool internal;                         /* BUILTIN and member SAM */
     164        bool rodc;                             /* Are we an RODC for this AD domain? (do some operations locally) */
    162165        bool online;                           /* is this domain available ? */
    163166        time_t startup_time;                   /* When we set "startup" true. monotonic clock */
    164167        bool startup;                          /* are we in the first 30 seconds after startup_time ? */
    165168
    166         bool can_do_samlogon_ex; /* Due to the lack of finer control what type
    167                                   * of DC we have, let us try to do a
    168                                   * credential-chain less samlogon_ex call
    169                                   * with AD and schannel. If this fails with
    170                                   * DCERPC_FAULT_OP_RNG_ERROR, then set this
    171                                   * to False. This variable is around so that
    172                                   * we don't have to try _ex every time. */
    173 
    174169        bool can_do_ncacn_ip_tcp;
    175         bool can_do_validation6;
    176170
    177171        /* Lookup methods for this domain (LDAP or RPC) */
     
    186180        void *private_data;
    187181
    188         /*
    189          * idmap config settings, used to tell the idmap child which
    190          * special domain config to use for a mapping
    191          */
    192         bool have_idmap_config;
    193         uint32_t id_range_low, id_range_high;
    194 
    195182        /* A working DC */
    196183        pid_t dc_probe_pid; /* Child we're using to detect the DC. */
    197         fstring dcname;
     184        char *dcname;
    198185        struct sockaddr_storage dcaddr;
    199186
     
    201188
    202189        time_t last_seq_check;
    203         uint32 sequence_number;
     190        uint32_t sequence_number;
    204191        NTSTATUS last_status;
    205192
     
    214201        /* Callback we use to try put us back online. */
    215202
    216         uint32 check_online_timeout;
    217         struct timed_event *check_online_event;
     203        uint32_t check_online_timeout;
     204        struct tevent_timer *check_online_event;
    218205
    219206        /* Linked list info */
     
    238225        NTSTATUS (*query_user_list)(struct winbindd_domain *domain,
    239226                                   TALLOC_CTX *mem_ctx,
    240                                    uint32 *num_entries,
     227                                   uint32_t *num_entries,
    241228                                   struct wbint_userinfo **info);
    242229
     
    244231        NTSTATUS (*enum_dom_groups)(struct winbindd_domain *domain,
    245232                                    TALLOC_CTX *mem_ctx,
    246                                     uint32 *num_entries,
     233                                    uint32_t *num_entries,
    247234                                    struct wb_acct_info **info);
    248235
     
    250237        NTSTATUS (*enum_local_groups)(struct winbindd_domain *domain,
    251238                                    TALLOC_CTX *mem_ctx,
    252                                     uint32 *num_entries,
     239                                    uint32_t *num_entries,
    253240                                    struct wb_acct_info **info);
    254241
     
    273260                                  TALLOC_CTX *mem_ctx,
    274261                                  const struct dom_sid *domain_sid,
    275                                   uint32 *rids,
     262                                  uint32_t *rids,
    276263                                  size_t num_rids,
    277264                                  char **domain_name,
     
    291278                                      TALLOC_CTX *mem_ctx,
    292279                                      const struct dom_sid *user_sid,
    293                                       uint32 *num_groups, struct dom_sid **user_gids);
     280                                      uint32_t *num_groups, struct dom_sid **user_gids);
    294281
    295282        /* Lookup all aliases that the sids delivered are member of. This is
     
    297284        NTSTATUS (*lookup_useraliases)(struct winbindd_domain *domain,
    298285                                       TALLOC_CTX *mem_ctx,
    299                                        uint32 num_sids,
     286                                       uint32_t num_sids,
    300287                                       const struct dom_sid *sids,
    301                                        uint32 *num_aliases,
    302                                        uint32 **alias_rids);
     288                                       uint32_t *num_aliases,
     289                                       uint32_t **alias_rids);
    303290
    304291        /* find all members of the group with the specified group_rid */
     
    307294                                    const struct dom_sid *group_sid,
    308295                                    enum lsa_SidType type,
    309                                     uint32 *num_names,
     296                                    uint32_t *num_names,
    310297                                    struct dom_sid **sid_mem, char ***names,
    311                                     uint32 **name_types);
     298                                    uint32_t **name_types);
    312299
    313300        /* return the current global sequence number */
    314         NTSTATUS (*sequence_number)(struct winbindd_domain *domain, uint32 *seq);
     301        NTSTATUS (*sequence_number)(struct winbindd_domain *domain, uint32_t *seq);
    315302
    316303        /* return the lockout policy */
     
    353340        const char *dns_name;
    354341        struct dom_sid sid;
    355         uint32 trust_flags;
    356         uint32 trust_attribs;
    357         uint32 trust_type;
     342        uint32_t trust_flags;
     343        uint32_t trust_attribs;
     344        uint32_t trust_type;
    358345};
    359346
     
    388375        time_t renew_until;
    389376        time_t refresh_time;
    390         struct timed_event *event;
     377        struct tevent_timer *event;
    391378};
    392379
     
    396383#define WINBINDD_RESCAN_FREQ lp_winbind_cache_time()
    397384#define WINBINDD_PAM_AUTH_KRB5_RENEW_TIME 2592000 /* one month */
    398 #define DOM_SEQUENCE_NONE ((uint32)-1)
    399 
    400 #define winbind_event_context server_event_context
     385#define DOM_SEQUENCE_NONE ((uint32_t)-1)
    401386
    402387#endif /* _WINBINDD_H */
Note: See TracChangeset for help on using the changeset viewer.