diff options
author | Günther Deschner <gd@samba.org> | 2008-01-25 13:26:10 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-25 15:30:43 +0100 |
commit | 05ff7fd46e19d9c1aab8524495c9b926290927c7 (patch) | |
tree | cefccdc4f1dda8569a704899dac8377ba0fe26ac /source3/rpc_client/cli_ds.c | |
parent | d7d4f1c132cfa24a96b07ec812c0235b69dacfaa (diff) | |
download | samba-05ff7fd46e19d9c1aab8524495c9b926290927c7.tar.gz samba-05ff7fd46e19d9c1aab8524495c9b926290927c7.tar.bz2 samba-05ff7fd46e19d9c1aab8524495c9b926290927c7.zip |
Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb1f1b56b45673a506fcdb414103c43b)
Diffstat (limited to 'source3/rpc_client/cli_ds.c')
-rw-r--r-- | source3/rpc_client/cli_ds.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/source3/rpc_client/cli_ds.c b/source3/rpc_client/cli_ds.c index 71516b89f2..c9724dec7b 100644 --- a/source3/rpc_client/cli_ds.c +++ b/source3/rpc_client/cli_ds.c @@ -23,48 +23,6 @@ /* implementations of client side DsXXX() functions */ /******************************************************************** - Get information about the server and directory services -********************************************************************/ - -NTSTATUS rpccli_ds_getprimarydominfo(struct rpc_pipe_client *cli, - TALLOC_CTX *mem_ctx, - uint16 level, DS_DOMINFO_CTR *ctr) -{ - prs_struct qbuf, rbuf; - DS_Q_GETPRIMDOMINFO q; - DS_R_GETPRIMDOMINFO r; - NTSTATUS result; - - ZERO_STRUCT(q); - ZERO_STRUCT(r); - - q.level = level; - - CLI_DO_RPC( cli, mem_ctx, PI_LSARPC_DS, DS_GETPRIMDOMINFO, - q, r, - qbuf, rbuf, - ds_io_q_getprimdominfo, - ds_io_r_getprimdominfo, - NT_STATUS_UNSUCCESSFUL); - - /* Return basic info - if we are requesting at info != 1 then - there could be trouble. */ - - result = r.status; - - if ( r.ptr && ctr ) { - ctr->basic = TALLOC_P(mem_ctx, DSROLE_PRIMARY_DOMAIN_INFO_BASIC); - if (!ctr->basic) - goto done; - memcpy(ctr->basic, r.info.basic, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); - } - -done: - - return result; -} - -/******************************************************************** Enumerate trusted domains in an AD forest ********************************************************************/ |