Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

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

    r594 r740  
    2828#include "librpc/gen_ndr/wbint.h"
    2929
     30#include "talloc_dict.h"
     31#include "smb_ldap.h"
     32
     33#include "../lib/util/tevent_ntstatus.h"
     34
    3035#ifdef HAVE_LIBNSCD
    3136#include <libnscd.h>
     
    4247
    4348struct sid_ctr {
    44         DOM_SID *sid;
     49        struct dom_sid *sid;
    4550        bool finished;
    4651        const char *domain;
     
    9398        fstring homedir;                     /* User Home Directory */
    9499        fstring shell;                       /* User Login Shell */
    95         DOM_SID user_sid;                    /* NT user and primary group SIDs */
    96         DOM_SID group_sid;
     100        struct dom_sid user_sid;                    /* NT user and primary group SIDs */
     101        struct dom_sid group_sid;
    97102};
    98103
     
    132137        int sock;
    133138        struct tevent_queue *queue;
    134         struct rpc_pipe_client *rpccli;
     139        struct dcerpc_binding_handle *binding_handle;
    135140
    136141        struct timed_event *lockout_policy_event;
     
    146151        fstring alt_name;                      /* alt Domain name, if any (FQDN for ADS) */
    147152        fstring forest_name;                   /* Name of the AD forest we're in */
    148         DOM_SID sid;                           /* SID for this domain */
     153        struct dom_sid sid;                           /* SID for this domain */
    149154        uint32 domain_flags;                   /* Domain flags from netlogon.h */
    150155        uint32 domain_type;                    /* Domain type from netlogon.h */
     
    156161        bool internal;                         /* BUILTIN and member SAM */
    157162        bool online;                           /* is this domain available ? */
    158         time_t startup_time;                   /* When we set "startup" true. */
     163        time_t startup_time;                   /* When we set "startup" true. monotonic clock */
    159164        bool startup;                          /* are we in the first 30 seconds after startup_time ? */
    160165
     
    205210        /* The child pid we're talking to */
    206211
    207         struct winbindd_child child;
     212        struct winbindd_child *children;
    208213
    209214        /* Callback we use to try put us back online. */
     
    215220
    216221        struct winbindd_domain *prev, *next;
     222};
     223
     224struct wb_acct_info {
     225        fstring acct_name; /* account name */
     226        fstring acct_desc; /* account name */
     227        uint32_t rid; /* domain-relative RID */
    217228};
    218229
     
    234245                                    TALLOC_CTX *mem_ctx,
    235246                                    uint32 *num_entries,
    236                                     struct acct_info **info);
     247                                    struct wb_acct_info **info);
    237248
    238249        /* get a list of domain local groups */
     
    240251                                    TALLOC_CTX *mem_ctx,
    241252                                    uint32 *num_entries,
    242                                     struct acct_info **info);
     253                                    struct wb_acct_info **info);
    243254
    244255        /* convert one user or group name to a sid */
     
    248259                                const char *name,
    249260                                uint32_t flags,
    250                                 DOM_SID *sid,
     261                                struct dom_sid *sid,
    251262                                enum lsa_SidType *type);
    252263
     
    254265        NTSTATUS (*sid_to_name)(struct winbindd_domain *domain,
    255266                                TALLOC_CTX *mem_ctx,
    256                                 const DOM_SID *sid,
     267                                const struct dom_sid *sid,
    257268                                char **domain_name,
    258269                                char **name,
     
    261272        NTSTATUS (*rids_to_names)(struct winbindd_domain *domain,
    262273                                  TALLOC_CTX *mem_ctx,
    263                                   const DOM_SID *domain_sid,
     274                                  const struct dom_sid *domain_sid,
    264275                                  uint32 *rids,
    265276                                  size_t num_rids,
     
    271282        NTSTATUS (*query_user)(struct winbindd_domain *domain,
    272283                               TALLOC_CTX *mem_ctx,
    273                                const DOM_SID *user_sid,
     284                               const struct dom_sid *user_sid,
    274285                               struct wbint_userinfo *user_info);
    275286
     
    279290        NTSTATUS (*lookup_usergroups)(struct winbindd_domain *domain,
    280291                                      TALLOC_CTX *mem_ctx,
    281                                       const DOM_SID *user_sid,
    282                                       uint32 *num_groups, DOM_SID **user_gids);
     292                                      const struct dom_sid *user_sid,
     293                                      uint32 *num_groups, struct dom_sid **user_gids);
    283294
    284295        /* Lookup all aliases that the sids delivered are member of. This is
     
    287298                                       TALLOC_CTX *mem_ctx,
    288299                                       uint32 num_sids,
    289                                        const DOM_SID *sids,
     300                                       const struct dom_sid *sids,
    290301                                       uint32 *num_aliases,
    291302                                       uint32 **alias_rids);
     
    294305        NTSTATUS (*lookup_groupmem)(struct winbindd_domain *domain,
    295306                                    TALLOC_CTX *mem_ctx,
    296                                     const DOM_SID *group_sid,
     307                                    const struct dom_sid *group_sid,
    297308                                    enum lsa_SidType type,
    298309                                    uint32 *num_names,
    299                                     DOM_SID **sid_mem, char ***names,
     310                                    struct dom_sid **sid_mem, char ***names,
    300311                                    uint32 **name_types);
    301312
     
    324335  bool (*init)(void);
    325336
    326   bool (*get_sid_from_uid)(uid_t uid, DOM_SID *sid);
    327   bool (*get_sid_from_gid)(gid_t gid, DOM_SID *sid);
    328 
    329   bool (*get_uid_from_sid)(DOM_SID *sid, uid_t *uid);
    330   bool (*get_gid_from_sid)(DOM_SID *sid, gid_t *gid);
     337  bool (*get_sid_from_uid)(uid_t uid, struct dom_sid *sid);
     338  bool (*get_sid_from_gid)(gid_t gid, struct dom_sid *sid);
     339
     340  bool (*get_uid_from_sid)(struct dom_sid *sid, uid_t *uid);
     341  bool (*get_gid_from_sid)(struct dom_sid *sid, gid_t *gid);
    331342
    332343  /* Called when backend is unloaded */
     
    341352        const char *domain_name;
    342353        const char *dns_name;
    343         DOM_SID sid;
     354        struct dom_sid sid;
    344355        uint32 trust_flags;
    345356        uint32 trust_attribs;
     
    387398#define DOM_SEQUENCE_NONE ((uint32)-1)
    388399
     400#define winbind_event_context server_event_context
     401
    389402#endif /* _WINBINDD_H */
Note: See TracChangeset for help on using the changeset viewer.