Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/winbindd/winbindd_rpc.c

    r133 r228  
    266266
    267267/* convert a single name to a sid in a domain */
    268 NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
    269                            TALLOC_CTX *mem_ctx,
    270                            enum winbindd_cmd original_cmd,
    271                            const char *domain_name,
    272                            const char *name,
    273                            DOM_SID *sid,
    274                            enum lsa_SidType *type)
     268static NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
     269                                  TALLOC_CTX *mem_ctx,
     270                                  enum winbindd_cmd original_cmd,
     271                                  const char *domain_name,
     272                                  const char *name,
     273                                  DOM_SID *sid,
     274                                  enum lsa_SidType *type)
    275275{
    276276        NTSTATUS result;
     
    320320  convert a domain SID to a user or group name
    321321*/
    322 NTSTATUS msrpc_sid_to_name(struct winbindd_domain *domain,
    323                             TALLOC_CTX *mem_ctx,
    324                             const DOM_SID *sid,
    325                             char **domain_name,
    326                             char **name,
    327                             enum lsa_SidType *type)
     322static NTSTATUS msrpc_sid_to_name(struct winbindd_domain *domain,
     323                                  TALLOC_CTX *mem_ctx,
     324                                  const DOM_SID *sid,
     325                                  char **domain_name,
     326                                  char **name,
     327                                  enum lsa_SidType *type)
    328328{
    329329        char **domains;
     
    363363}
    364364
    365 NTSTATUS msrpc_rids_to_names(struct winbindd_domain *domain,
    366                              TALLOC_CTX *mem_ctx,
    367                              const DOM_SID *sid,
    368                              uint32 *rids,
    369                              size_t num_rids,
    370                              char **domain_name,
    371                              char ***names,
    372                              enum lsa_SidType **types)
     365static NTSTATUS msrpc_rids_to_names(struct winbindd_domain *domain,
     366                                    TALLOC_CTX *mem_ctx,
     367                                    const DOM_SID *sid,
     368                                    uint32 *rids,
     369                                    size_t num_rids,
     370                                    char **domain_name,
     371                                    char ***names,
     372                                    enum lsa_SidType **types)
    373373{
    374374        char **domains;
     
    603603}
    604604
    605 NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain,
    606                                   TALLOC_CTX *mem_ctx,
    607                                   uint32 num_sids, const DOM_SID *sids,
    608                                   uint32 *num_aliases, uint32 **alias_rids)
     605static NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain,
     606                                         TALLOC_CTX *mem_ctx,
     607                                         uint32 num_sids, const DOM_SID *sids,
     608                                         uint32 *num_aliases,
     609                                         uint32 **alias_rids)
    609610{
    610611        NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
     
    821822
    822823                for (r=0; r<tmp_names.count; r++) {
    823                         (*names)[i+r] = CONST_DISCARD(char *, tmp_names.names[r].string);
     824                        (*names)[i+r] = fill_domain_username_talloc(mem_ctx,
     825                                                domain->name,
     826                                                tmp_names.names[r].string,
     827                                                true);
    824828                        (*name_types)[i+r] = tmp_types.ids[r];
    825829                }
     
    10661070
    10671071/* find the lockout policy for a domain */
    1068 NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain,
    1069                               TALLOC_CTX *mem_ctx,
    1070                               struct samr_DomInfo12 *lockout_policy)
     1072static NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain,
     1073                                     TALLOC_CTX *mem_ctx,
     1074                                     struct samr_DomInfo12 *lockout_policy)
    10711075{
    10721076        NTSTATUS result;
     
    11071111
    11081112/* find the password policy for a domain */
    1109 NTSTATUS msrpc_password_policy(struct winbindd_domain *domain,
    1110                                TALLOC_CTX *mem_ctx,
    1111                                struct samr_DomInfo1 *password_policy)
     1113static NTSTATUS msrpc_password_policy(struct winbindd_domain *domain,
     1114                                      TALLOC_CTX *mem_ctx,
     1115                                      struct samr_DomInfo1 *password_policy)
    11121116{
    11131117        NTSTATUS result;
Note: See TracChangeset for help on using the changeset viewer.