summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-30 09:41:43 +0200
committerVolker Lendecke <vl@samba.org>2009-08-30 09:48:28 +0200
commit9e7c6f12fdb6a8ce198359572bb9e69c7d46530a (patch)
treeedf18daf2faa581537dc26fa033cdebeeeba50d0 /source3/winbindd/winbindd.c
parent0d120be36bfc561e3f679d081993ccc6bea2a401 (diff)
downloadsamba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.tar.gz
samba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.tar.bz2
samba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.zip
w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new API
Diffstat (limited to 'source3/winbindd/winbindd.c')
-rw-r--r--source3/winbindd/winbindd.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index e583dae4a9..d664a51671 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -440,7 +440,6 @@ static struct winbindd_dispatch_table {
/* Lookup related functions */
- { WINBINDD_ALLOCATE_UID, winbindd_allocate_uid, "ALLOCATE_UID" },
{ WINBINDD_ALLOCATE_GID, winbindd_allocate_gid, "ALLOCATE_GID" },
{ WINBINDD_SET_MAPPING, winbindd_set_mapping, "SET_MAPPING" },
{ WINBINDD_REMOVE_MAPPING, winbindd_remove_mapping, "REMOVE_MAPPING" },
@@ -543,6 +542,13 @@ static struct winbindd_async_dispatch_table async_nonpriv_table[] = {
{ 0, NULL, NULL, NULL }
};
+static struct winbindd_async_dispatch_table async_priv_table[] = {
+ { WINBINDD_ALLOCATE_UID, "ALLOCATE_UID",
+ winbindd_allocate_uid_send, winbindd_allocate_uid_recv },
+
+ { 0, NULL, NULL, NULL }
+};
+
static void wb_request_done(struct tevent_req *req);
static void process_request(struct winbindd_cli_state *state)
@@ -565,6 +571,15 @@ static void process_request(struct winbindd_cli_state *state)
}
}
+ if ((atable->send_req == NULL) && state->privileged) {
+ for (atable = async_priv_table; atable->send_req;
+ atable += 1) {
+ if (state->request->cmd == atable->cmd) {
+ break;
+ }
+ }
+ }
+
if (atable->send_req != NULL) {
struct tevent_req *req;