svn commit: samba r5677 - in branches/SAMBA_4_0/source/libnet: .
mimir at samba.org
mimir at samba.org
Mon Mar 7 05:09:37 GMT 2005
Author: mimir
Date: 2005-03-07 05:09:37 +0000 (Mon, 07 Mar 2005)
New Revision: 5677
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5677
Log:
Split structure definitions from implementation.
rafal
Added:
branches/SAMBA_4_0/source/libnet/composite.h
Modified:
branches/SAMBA_4_0/source/libnet/userinfo.c
Changeset:
Added: branches/SAMBA_4_0/source/libnet/composite.h
===================================================================
--- branches/SAMBA_4_0/source/libnet/composite.h 2005-03-07 02:14:38 UTC (rev 5676)
+++ branches/SAMBA_4_0/source/libnet/composite.h 2005-03-07 05:09:37 UTC (rev 5677)
@@ -0,0 +1,43 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ Copyright (C) Rafal Szczesniak 2005
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+/*
+ composite function definitions
+*/
+
+enum userinfo_stage { USERINFO_OPENUSER, USERINFO_GETUSER, USERINFO_CLOSEUSER };
+
+struct rpc_composite_userinfo {
+ struct {
+ struct policy_handle domain_handle;
+ const char *sid;
+ uint16_t level;
+ } in;
+ struct {
+ union samr_UserInfo info;
+ } out;
+};
+
+struct userinfo_state {
+ enum userinfo_stage stage;
+ struct dcerpc_pipe *pipe;
+ struct rpc_request *req;
+ struct rpc_composite_userinfo io;
+};
Modified: branches/SAMBA_4_0/source/libnet/userinfo.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/userinfo.c 2005-03-07 02:14:38 UTC (rev 5676)
+++ branches/SAMBA_4_0/source/libnet/userinfo.c 2005-03-07 05:09:37 UTC (rev 5677)
@@ -26,27 +26,8 @@
#include "libcli/raw/libcliraw.h"
#include "libcli/composite/composite.h"
#include "librpc/gen_ndr/ndr_samr.h"
+#include "libnet/composite.h"
-enum userinfo_stage { USERINFO_OPENUSER, USERINFO_GETUSER, USERINFO_CLOSEUSER };
-
-struct rpc_composite_userinfo {
- struct {
- struct policy_handle domain_handle;
- const char *sid;
- uint16_t level;
- } in;
- struct {
- union samr_UserInfo info;
- } out;
-};
-
-struct userinfo_state {
- enum userinfo_stage stage;
- struct dcerpc_pipe *pipe;
- struct rpc_request *req;
- struct rpc_composite_userinfo io;
-};
-
static void userinfo_handler(struct rpc_request *req);
@@ -187,7 +168,7 @@
/* preparing parameters to send rpc request */
r = talloc_zero(p, struct samr_OpenUser);
r->in.domain_handle = &s->io.in.domain_handle;
- r->in.access_mask = 0;
+ r->in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
r->in.rid = sid->sub_auths[sid->num_auths - 1];
/* send request */
More information about the samba-cvs
mailing list