Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nsswitch/winbindd_ads.c

    r39 r165  
    391391}
    392392
     393/* convert a single name to a sid in a domain - use rpc methods */
     394static NTSTATUS name_to_sid(struct winbindd_domain *domain,
     395                            TALLOC_CTX *mem_ctx,
     396                            const char *domain_name,
     397                            const char *name,
     398                            DOM_SID *sid,
     399                            enum lsa_SidType *type)
     400{
     401        return reconnect_methods.name_to_sid(domain, mem_ctx,
     402                                             domain_name, name,
     403                                             sid, type);
     404}
     405
     406/* convert a domain SID to a user or group name - use rpc methods */
     407static NTSTATUS sid_to_name(struct winbindd_domain *domain,
     408                            TALLOC_CTX *mem_ctx,
     409                            const DOM_SID *sid,
     410                            char **domain_name,
     411                            char **name,
     412                            enum lsa_SidType *type)
     413{
     414        return reconnect_methods.sid_to_name(domain, mem_ctx, sid,
     415                                             domain_name, name, type);
     416}
     417
     418/* convert a list of rids to names - use rpc methods */
     419static NTSTATUS rids_to_names(struct winbindd_domain *domain,
     420                              TALLOC_CTX *mem_ctx,
     421                              const DOM_SID *sid,
     422                              uint32 *rids,
     423                              size_t num_rids,
     424                              char **domain_name,
     425                              char ***names,
     426                              enum lsa_SidType **types)
     427{
     428        return reconnect_methods.rids_to_names(domain, mem_ctx, sid,
     429                                               rids, num_rids,
     430                                               domain_name, names, types);
     431}
     432
    393433/* convert a DN to a name, SID and name type
    394434   this might become a major speed bottleneck if groups have
     
    830870        ads_msgfree(ads, msg);
    831871        return status;
     872}
     873
     874/* Lookup aliases a user is member of - use rpc methods */
     875static NTSTATUS lookup_useraliases(struct winbindd_domain *domain,
     876                                   TALLOC_CTX *mem_ctx,
     877                                   uint32 num_sids, const DOM_SID *sids,
     878                                   uint32 *num_aliases, uint32 **alias_rids)
     879{
     880        return reconnect_methods.lookup_useraliases(domain, mem_ctx,
     881                                                    num_sids, sids,
     882                                                    num_aliases,
     883                                                    alias_rids);
    832884}
    833885
     
    10361088}
    10371089
     1090/* find the lockout policy of a domain - use rpc methods */
     1091static NTSTATUS lockout_policy(struct winbindd_domain *domain,
     1092                               TALLOC_CTX *mem_ctx,
     1093                               SAM_UNK_INFO_12 *policy)
     1094{
     1095        return reconnect_methods.lockout_policy(domain, mem_ctx, policy);
     1096}
     1097
     1098/* find the password policy of a domain - use rpc methods */
     1099static NTSTATUS password_policy(struct winbindd_domain *domain,
     1100                                TALLOC_CTX *mem_ctx,
     1101                                SAM_UNK_INFO_1 *policy)
     1102{
     1103        return reconnect_methods.password_policy(domain, mem_ctx, policy);
     1104}
     1105
    10381106/* get a list of trusted domains */
    10391107static NTSTATUS trusted_domains(struct winbindd_domain *domain,
     
    11141182        enum_dom_groups,
    11151183        enum_local_groups,
    1116         msrpc_name_to_sid,
    1117         msrpc_sid_to_name,
    1118         msrpc_rids_to_names,
     1184        name_to_sid,
     1185        sid_to_name,
     1186        rids_to_names,
    11191187        query_user,
    11201188        lookup_usergroups,
    1121         msrpc_lookup_useraliases,
     1189        lookup_useraliases,
    11221190        lookup_groupmem,
    11231191        sequence_number,
    1124         msrpc_lockout_policy,
    1125         msrpc_password_policy,
     1192        lockout_policy,
     1193        password_policy,
    11261194        trusted_domains,
    11271195};
Note: See TracChangeset for help on using the changeset viewer.