summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-12-21 14:40:09 +0100
committerVolker Lendecke <vl@samba.org>2009-12-21 16:27:18 +0100
commit3f98c2c7ab51de028c63443c6308a36af349365e (patch)
tree2600c1ba77b0927e772cec06dee648ab0ecba96b
parent93bcc348d230716dfeebbb45ed2c85b7b711c0f9 (diff)
downloadsamba-3f98c2c7ab51de028c63443c6308a36af349365e.tar.gz
samba-3f98c2c7ab51de028c63443c6308a36af349365e.tar.bz2
samba-3f98c2c7ab51de028c63443c6308a36af349365e.zip
s3: Remove unused winbindd_gid2sid_async
-rw-r--r--source3/winbindd/winbindd_idmap.c45
-rw-r--r--source3/winbindd/winbindd_proto.h3
2 files changed, 0 insertions, 48 deletions
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c
index c31410f2c8..d3f34b1da1 100644
--- a/source3/winbindd/winbindd_idmap.c
+++ b/source3/winbindd/winbindd_idmap.c
@@ -120,51 +120,6 @@ enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
return WINBINDD_ERROR;
}
-static void winbindd_gid2sid_recv(TALLOC_CTX *mem_ctx, bool success,
- struct winbindd_response *response,
- void *c, void *private_data)
-{
- void (*cont)(void *priv, bool succ, const char *sid) =
- (void (*)(void *, bool, const char *))c;
-
- if (!success) {
- DEBUG(5, ("Could not trigger gid2sid\n"));
- cont(private_data, False, NULL);
- return;
- }
-
- if (response->result != WINBINDD_OK) {
- DEBUG(5, ("gid2sid returned an error\n"));
- cont(private_data, False, NULL);
- return;
- }
-
- cont(private_data, True, response->data.sid.sid);
-}
-
-void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid,
- void (*cont)(void *private_data, bool success, const char *sid),
- void *private_data)
-{
- struct winbindd_domain *domain;
- struct winbindd_request request;
-
- ZERO_STRUCT(request);
- request.cmd = WINBINDD_DUAL_GID2SID;
- request.data.gid = gid;
-
- for (domain = domain_list(); domain != NULL; domain = domain->next) {
- if (domain->have_idmap_config
- && (gid >= domain->id_range_low)
- && (gid <= domain->id_range_high)) {
- fstrcpy(request.domain_name, domain->name);
- }
- }
-
- do_async(mem_ctx, idmap_child(), &request, winbindd_gid2sid_recv,
- (void *)cont, private_data);
-}
-
enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
struct winbindd_cli_state *state)
{
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 8bbb29aeb7..d40fc664ef 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -403,9 +403,6 @@ enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
struct winbindd_cli_state *state);
enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
struct winbindd_cli_state *state);
-void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid,
- void (*cont)(void *private_data, bool success, const char *sid),
- void *private_data);
enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
struct winbindd_cli_state *state);