Changeset 228 for branches/samba-3.2.x/source/winbindd/winbindd_rpc.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/winbindd/winbindd_rpc.c
r133 r228 266 266 267 267 /* convert a single name to a sid in a domain */ 268 NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,269 270 271 272 273 274 268 static 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) 275 275 { 276 276 NTSTATUS result; … … 320 320 convert a domain SID to a user or group name 321 321 */ 322 NTSTATUS msrpc_sid_to_name(struct winbindd_domain *domain,323 324 325 326 327 322 static 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) 328 328 { 329 329 char **domains; … … 363 363 } 364 364 365 NTSTATUS msrpc_rids_to_names(struct winbindd_domain *domain,366 367 368 369 370 371 372 365 static 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) 373 373 { 374 374 char **domains; … … 603 603 } 604 604 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) 605 static 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) 609 610 { 610 611 NTSTATUS result = NT_STATUS_UNSUCCESSFUL; … … 821 822 822 823 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); 824 828 (*name_types)[i+r] = tmp_types.ids[r]; 825 829 } … … 1066 1070 1067 1071 /* find the lockout policy for a domain */ 1068 NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain,1069 1070 1072 static NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain, 1073 TALLOC_CTX *mem_ctx, 1074 struct samr_DomInfo12 *lockout_policy) 1071 1075 { 1072 1076 NTSTATUS result; … … 1107 1111 1108 1112 /* find the password policy for a domain */ 1109 NTSTATUS msrpc_password_policy(struct winbindd_domain *domain,1110 1111 1113 static NTSTATUS msrpc_password_policy(struct winbindd_domain *domain, 1114 TALLOC_CTX *mem_ctx, 1115 struct samr_DomInfo1 *password_policy) 1112 1116 { 1113 1117 NTSTATUS result;
Note:
See TracChangeset
for help on using the changeset viewer.