diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-03 11:32:55 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-03 11:32:55 +0000 |
commit | fc85a6096231d7e8c45c150f2beaa99c16e9227a (patch) | |
tree | a23ecd8fbb20f2b188bc797515af9a9cf0806901 /source3/nsswitch | |
parent | 6f907af4e73b53c3ddab934ba954788a2134b913 (diff) | |
download | samba-fc85a6096231d7e8c45c150f2beaa99c16e9227a.tar.gz samba-fc85a6096231d7e8c45c150f2beaa99c16e9227a.tar.bz2 samba-fc85a6096231d7e8c45c150f2beaa99c16e9227a.zip |
changed query_dispinfo to query_user_list
(This used to be commit 80010d80f93cfb32c53a1720c7564fb080846f35)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd.h | 6 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 20 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 10 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_user.c | 10 |
4 files changed, 23 insertions, 23 deletions
diff --git a/source3/nsswitch/winbindd.h b/source3/nsswitch/winbindd.h index 610b4503f7..a3c9d0afb7 100644 --- a/source3/nsswitch/winbindd.h +++ b/source3/nsswitch/winbindd.h @@ -82,17 +82,17 @@ typedef struct { char *full_name; uint32 user_rid; uint32 group_rid; /* primary group */ -} WINBIND_DISPINFO; +} WINBIND_USERINFO; /* per-domain methods. This is how LDAP vs RPC is selected This will eventually be the sole entry point to all the methods, I'm just starting small */ struct winbindd_methods { - NTSTATUS (*query_dispinfo)(struct winbindd_domain *domain, + NTSTATUS (*query_user_list)(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, uint32 *start_ndx, uint32 *num_entries, - WINBIND_DISPINFO **info); + WINBIND_USERINFO **info); NTSTATUS (*enum_dom_groups)(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 5ff5c90b78..287151abd7 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -25,10 +25,10 @@ #ifdef HAVE_ADS /* Query display info for a realm. This is the basic user list fn */ -static NTSTATUS query_dispinfo(struct winbindd_domain *domain, +static NTSTATUS query_user_list(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, uint32 *start_ndx, uint32 *num_entries, - WINBIND_DISPINFO **info) + WINBIND_USERINFO **info) { ADS_STRUCT *ads; const char *attrs[] = {"sAMAccountName", "name", "objectSid", "primaryGroupID", @@ -37,7 +37,7 @@ static NTSTATUS query_dispinfo(struct winbindd_domain *domain, void *res; void *msg; - DEBUG(3,("ads: query_dispinfo\n")); + DEBUG(3,("ads: query_user_list\n")); if ((*start_ndx) != 0) { DEBUG(1,("ads backend start_ndx not implemented\n")); @@ -52,19 +52,19 @@ static NTSTATUS query_dispinfo(struct winbindd_domain *domain, rc = ads_connect(ads); if (rc) { - DEBUG(1,("query_dispinfo ads_connect: %s\n", ads_errstr(rc))); + DEBUG(1,("query_user_list ads_connect: %s\n", ads_errstr(rc))); return NT_STATUS_UNSUCCESSFUL; } rc = ads_search(ads, &res, "(objectclass=user)", attrs); if (rc) { - DEBUG(1,("query_dispinfo ads_search: %s\n", ads_errstr(rc))); + DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); return NT_STATUS_UNSUCCESSFUL; } count = ads_count_replies(ads, res); if (count == 0) { - DEBUG(1,("query_dispinfo: No users found\n")); + DEBUG(1,("query_user_list: No users found\n")); return NT_STATUS_UNSUCCESSFUL; } @@ -141,19 +141,19 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain, rc = ads_connect(ads); if (rc) { - DEBUG(1,("query_dispinfo ads_connect: %s\n", ads_errstr(rc))); + DEBUG(1,("query_user_list ads_connect: %s\n", ads_errstr(rc))); return NT_STATUS_UNSUCCESSFUL; } rc = ads_search(ads, &res, "(objectclass=group)", attrs); if (rc) { - DEBUG(1,("query_dispinfo ads_search: %s\n", ads_errstr(rc))); + DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); return NT_STATUS_UNSUCCESSFUL; } count = ads_count_replies(ads, res); if (count == 0) { - DEBUG(1,("query_dispinfo: No users found\n")); + DEBUG(1,("query_user_list: No users found\n")); return NT_STATUS_UNSUCCESSFUL; } @@ -273,7 +273,7 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, /* the ADS backend methods are exposed via this structure */ struct winbindd_methods ads_methods = { - query_dispinfo, + query_user_list, enum_dom_groups, name_to_sid, /* I can't see a good way to do a sid to name mapping with ldap, diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index bf2cc5d9d3..e4654254cb 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -26,10 +26,10 @@ /* Query display info for a domain. This returns enough information plus a bit extra to give an overview of domain users for the User Manager application. */ -static NTSTATUS query_dispinfo(struct winbindd_domain *domain, +static NTSTATUS query_user_list(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, uint32 *start_ndx, uint32 *num_entries, - WINBIND_DISPINFO **info) + WINBIND_USERINFO **info) { CLI_POLICY_HND *hnd; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; @@ -62,8 +62,8 @@ static NTSTATUS query_dispinfo(struct winbindd_domain *domain, &dom_pol, start_ndx, 1, num_entries, 0xffff, &ctr); - /* now map the result into the WINBIND_DISPINFO structure */ - (*info) = (WINBIND_DISPINFO *)talloc(mem_ctx, (*num_entries)*sizeof(WINBIND_DISPINFO)); + /* now map the result into the WINBIND_USERINFO structure */ + (*info) = (WINBIND_USERINFO *)talloc(mem_ctx, (*num_entries)*sizeof(WINBIND_USERINFO)); if (!(*info)) { return NT_STATUS_NO_MEMORY; } @@ -187,7 +187,7 @@ NTSTATUS winbindd_rpc_sid_to_name(struct winbindd_domain *domain, /* the rpc backend methods are exposed via this structure */ struct winbindd_methods msrpc_methods = { - query_dispinfo, + query_user_list, enum_dom_groups, name_to_sid, winbindd_rpc_sid_to_name diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c index 5a4dd82d78..ebd9503c7c 100644 --- a/source3/nsswitch/winbindd_user.c +++ b/source3/nsswitch/winbindd_user.c @@ -377,7 +377,7 @@ static BOOL get_sam_user_entries(struct getent_state *ent) { NTSTATUS status; uint32 num_entries; - WINBIND_DISPINFO *info; + WINBIND_USERINFO *info; struct getpwent_user *name_list = NULL; BOOL result = False; TALLOC_CTX *mem_ctx; @@ -407,14 +407,14 @@ static BOOL get_sam_user_entries(struct getent_state *ent) SAFE_FREE(ent->sam_entries); ent->num_sam_entries = 0; - /* Call query_dispinfo to get a list of usernames and user rids */ + /* Call query_user_list to get a list of usernames and user rids */ do { int i; num_entries = 0; - status = methods->query_dispinfo(ent->domain, mem_ctx, + status = methods->query_user_list(ent->domain, mem_ctx, &ent->dispinfo_ndx, &num_entries, &info); @@ -600,7 +600,7 @@ enum winbindd_result winbindd_getpwent(struct winbindd_cli_state *state) enum winbindd_result winbindd_list_users(struct winbindd_cli_state *state) { struct winbindd_domain *domain; - WINBIND_DISPINFO *info; + WINBIND_USERINFO *info; uint32 num_entries = 0, total_entries = 0; char *ted, *extra_data = NULL; int extra_data_len = 0; @@ -636,7 +636,7 @@ enum winbindd_result winbindd_list_users(struct winbindd_cli_state *state) do { int i; - status = methods->query_dispinfo(domain, mem_ctx, &start_ndx, + status = methods->query_user_list(domain, mem_ctx, &start_ndx, &num_entries, &info); if (num_entries == 0) |