s4:torture:smb2: fix name of test file in the durable-open.alloc-size test
[Samba/gebeck_regimport.git] / source4 / rpc_server / common / loadparm.c
blob174063e480217eff83d05ece22cf0227fd033314
1 /*
2 Unix SMB/CIFS implementation.
3 DCERPC server info param function
4 Moved into rpc_server/common to break dependencies to rpc_server from param
5 Copyright (C) Karl Auer 1993-1998
7 Largely re-written by Andrew Tridgell, September 1994
9 Copyright (C) Simo Sorce 2001
10 Copyright (C) Alexander Bokovoy 2002
11 Copyright (C) Stefan (metze) Metzmacher 2002
12 Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003.
13 Copyright (C) James Myers 2003 <myersjj@samba.org>
14 Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation; either version 3 of the License, or
19 (at your option) any later version.
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
26 You should have received a copy of the GNU General Public License
27 along with this program. If not, see <http://www.gnu.org/licenses/>.
30 #include "includes.h"
31 #include "lib/param/param.h"
32 #include "rpc_server/common/common.h"
34 _PUBLIC_ struct dcerpc_server_info *lpcfg_dcerpc_server_info(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
36 struct dcerpc_server_info *ret = talloc_zero(mem_ctx, struct dcerpc_server_info);
38 ret->domain_name = talloc_reference(mem_ctx, lpcfg_workgroup(lp_ctx));
39 ret->version_major = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_major", 5);
40 ret->version_minor = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_minor", 2);
41 ret->version_build = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_build", 3790);
43 return ret;