diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-12-26 23:14:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:46 -0500 |
commit | 90535d31c69df440b0c0e7ed9e75b5dbf239974b (patch) | |
tree | 0b78de0878d5a0bd106b8d27b14b4e319ef3bf09 /source4 | |
parent | 32fb97aead99ed04bbc06b86df2804c7d4598e51 (diff) | |
download | samba-90535d31c69df440b0c0e7ed9e75b5dbf239974b.tar.gz samba-90535d31c69df440b0c0e7ed9e75b5dbf239974b.tar.bz2 samba-90535d31c69df440b0c0e7ed9e75b5dbf239974b.zip |
r12503: This function was just too simple to leave unimplemented.
Andrew Bartlett
(This used to be commit 2eebd7b3cf385b8d0680f877655136d721157c83)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 1c740628af..7ff36c5d82 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -3521,9 +3521,22 @@ static NTSTATUS samr_Connect5(struct dcesrv_call_state *dce_call, TALLOC_CTX *me samr_RidToSid */ static NTSTATUS samr_RidToSid(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, - struct samr_RidToSid *r) + struct samr_RidToSid *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + struct samr_domain_state *d_state; + struct dcesrv_handle *h; + + DCESRV_PULL_HANDLE(h, r->in.domain_handle, SAMR_HANDLE_DOMAIN); + + d_state = h->data; + + /* form the users SID */ + r->out.sid = dom_sid_add_rid(mem_ctx, d_state->domain_sid, r->in.rid); + if (!r->out.sid) { + return NT_STATUS_NO_MEMORY; + } + + return NT_STATUS_OK; } |