Changeset 165 for branches/samba-3.0/source/nsswitch/winbindd_ads.c
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/nsswitch/winbindd_ads.c
r39 r165 391 391 } 392 392 393 /* convert a single name to a sid in a domain - use rpc methods */ 394 static 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 */ 407 static 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 */ 419 static 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 393 433 /* convert a DN to a name, SID and name type 394 434 this might become a major speed bottleneck if groups have … … 830 870 ads_msgfree(ads, msg); 831 871 return status; 872 } 873 874 /* Lookup aliases a user is member of - use rpc methods */ 875 static 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); 832 884 } 833 885 … … 1036 1088 } 1037 1089 1090 /* find the lockout policy of a domain - use rpc methods */ 1091 static 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 */ 1099 static 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 1038 1106 /* get a list of trusted domains */ 1039 1107 static NTSTATUS trusted_domains(struct winbindd_domain *domain, … … 1114 1182 enum_dom_groups, 1115 1183 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, 1119 1187 query_user, 1120 1188 lookup_usergroups, 1121 msrpc_lookup_useraliases,1189 lookup_useraliases, 1122 1190 lookup_groupmem, 1123 1191 sequence_number, 1124 msrpc_lockout_policy,1125 msrpc_password_policy,1192 lockout_policy, 1193 password_policy, 1126 1194 trusted_domains, 1127 1195 };
Note:
See TracChangeset
for help on using the changeset viewer.