Andrew Tridgell
98e4393df9
s4-dsdb: create a static system_session context
...
This patch adds a system_session cache, preventing us from having to
recreate it on every ldb open, and allowing us to detect when the same
session is being used in ldb_wrap
2009-10-23 14:52:17 +11:00
Matthias Dieter Wallnöfer
ccfbe7bcb1
s4:loadparm - adapt "realm" handling
...
Change "lp_realm" behaviour to return the realm always upcased and add a
function "lp_dnsdomain" which returns it always lowcased.
2009-10-14 09:32:16 +02:00
Andrew Bartlett
a474ebf924
s4:param Remove duplicate argument to python provision
2009-10-06 11:07:07 +11:00
Jelmer Vernooij
d9ada600cc
parmlist: Add more tests.
2009-09-27 17:37:53 +02:00
Jelmer Vernooij
2dd7c9bc34
libutil: Add separate utility code for dealing with settings as a
...
collection of key/value pairs.
2009-09-26 23:59:35 +02:00
Jelmer Vernooij
adf66e75c0
Check for PyString_FromString being NULL.
2009-09-23 15:24:10 +02:00
Jelmer Vernooij
c5615211d4
provision: Avoid linking in multiple copies of security python module.
2009-09-23 15:24:10 +02:00
Andrew Bartlett
bfddb6816f
s4:provision Use code to store domain join in 'net join' as well
...
This ensures we only have one codepath to store the secret, and
therefore that we have a single choke point for setting the
saltPrincipal, which we were previously skipping.
Andrew Bartlett
2009-09-20 16:29:38 -07:00
Andrew Tridgell
0d6bc14225
s4-kcc: add a very simple KCC
...
A KCC is a 'Knowledge Consistency Checker', a fancy name for a daemon
that works out who will replicate with who in a AD domain. This
implements an extremely simple KCC task that just wants to replicate
with everyone :-)
2009-09-11 22:03:45 +10:00
Andrew Tridgell
8ce73c6c50
s4: the secrets.ldb module needs the loadparm opaque setup
2009-09-07 10:33:02 +10:00
Andrew Tridgell
617bbd913d
allow setting of the debug level in python from C
2009-09-03 18:36:09 +10:00
Andrew Tridgell
127bf61a40
support config files in the current directory
2009-09-03 18:36:08 +10:00
Ricardo Jorge
3641978dfa
param/pyparam: Cope with string list parameters being empty.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-08-04 00:18:43 +02:00
Ricardo Jorge
1174177c8f
python/loadparm: Get shares listing working.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-08-04 00:18:42 +02:00
Andrew Bartlett
d7af80fc2e
s4:param use talloc_unlink() to free iconv context holding references
2009-07-02 14:34:07 +10:00
Andrew Tridgell
269b16212a
use py_talloc_reference instead of py_talloc_import
...
This is one of the few cases where we want the object to be owned by
both the python object and C code
2009-07-01 15:15:37 +10:00
Jelmer Vernooij
28a2c262ac
param/python: Fix memory leak of LoadParm objects.
2009-06-17 20:45:38 +02:00
Jelmer Vernooij
308de544f4
python: Provide way to iterate over available shares.
2009-06-16 02:28:10 +02:00
Jelmer Vernooij
8d966fac41
Fix unresolved symbol in python messaging module.
2009-06-02 18:05:42 +02:00
Jelmer Vernooij
6ace18904d
Fix more unresolved symbols.
2009-06-02 18:05:41 +02:00
Jelmer Vernooij
fe2b04b4bb
python: Move helper functions for using param into a separate file rather
...
than linking against the python module.
2009-06-02 18:05:40 +02:00
Andrew Bartlett
6ef65389fd
Don't use crossRef records to find our own domain
...
A single AD server can only host a single domain, so don't stuff about
with looking up our crossRef record in the cn=Partitions container.
We instead trust that lp_realm() and lp_workgroup() works correctly.
Andrew Bartlett
2009-05-26 12:37:09 +10:00
Michael Adam
c469ec5c10
s4:loadparm: fix a comment typo. and line wrapping.
...
Michael
2009-05-08 01:18:58 +02:00
Michael Adam
31e06e63b7
s4:loadparm: fix brace indentation and add brace for clarity
...
Michael
2009-05-08 01:18:58 +02:00
Andrew Bartlett
44c94b6c66
Allow 'net vampire' to work without an existing smb.conf
...
Now the provision can generate one based on the detected settings from
the target domain.
Andrew Bartlett
2009-03-04 13:58:07 +11:00
Volker Lendecke
0844cca1d5
Replace get_myname() with the talloc version from v3-3-test
2009-02-13 12:15:03 +01:00
Stefan Metzmacher
ea546df573
s4:pyparam: fix compiler warnings
...
metze
2009-02-05 17:48:11 +01:00
Stefan Metzmacher
cc5ad06abb
s4:param: swig_ldb was renamed to pyldb in d965ff05c9
...
metze
2009-02-02 15:16:11 +01:00
Stefan Metzmacher
cec5414f46
s4:param: we should not silence warnings on handwritten python bindings
...
metze
2009-02-02 15:16:10 +01:00
Stefan Metzmacher
44625f76c1
s4:loadparm: s/class/pclass
...
metze
2009-02-02 13:09:10 +01:00
Jelmer Vernooij
57f978d171
loadparm: Make sure various state variables get initialized even when we
...
couldn't load a default smb.conf file.
2009-01-16 17:37:40 +01:00
Jelmer Vernooij
673ca5145c
Find default smb.conf path correctly, when it was not specified on the
...
command-line.
2009-01-16 15:05:15 +01:00
Jelmer Vernooij
2d85e23e06
python/param: Cope with lp configfile being NULL.
2009-01-15 21:16:31 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
ee9dff71e1
When loading the default configuration, allow the configuration file to be
...
missing.
2009-01-06 22:38:44 +01:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
58cfb1a9e1
python: Define Py_ssize_t if the Python library doesn't.
2008-12-23 11:26:31 +01:00
Jelmer Vernooij
b86b2ce662
Fix two remaining missing symbols in smbtorture4.
2008-12-22 23:00:10 +01:00
Jelmer Vernooij
c023828962
Fix missing symbols issues when building with shared libraries.
2008-12-22 21:03:09 +01:00
Jelmer Vernooij
b682b0feb0
Fix function name in error message when failing to load module.
2008-12-22 19:17:13 +01:00
Jelmer Vernooij
84501f6b59
Raise proper exceptions when lp file can't be found, be a
...
bit less strict when no file was specified.
2008-12-22 06:34:18 +01:00
Jelmer Vernooij
d58270c537
Add header for pyparam.
2008-12-22 04:38:57 +01:00
Jelmer Vernooij
2227860a79
Fix more tests, improve repr() functions for various Python types.
2008-12-21 23:05:35 +01:00
Jelmer Vernooij
a32194033a
Move tests for ParamFile.
2008-12-21 16:39:17 +01:00
Jelmer Vernooij
f06b083ff3
Convert param Python module to "manual" C.
2008-12-21 16:32:47 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
2e7a6cb6bf
py: Fix initialisation of subtypes, fix segfaults.
2008-12-21 03:08:14 +01:00
Jelmer Vernooij
bd41b4579c
Avoid linking in all Python modules to the samba binaries - we can just let Python dlopen() them.
2008-12-21 00:53:06 +01:00
Jelmer Vernooij
13fa639a29
Use plain C implementation for misc Python module rather than SWIG.
2008-12-20 23:38:30 +01:00
Jelmer Vernooij
04bef7fe2a
Fix more tests.
2008-12-19 16:08:35 +00:00
Stefan Metzmacher
a2700f3731
s4:secrets: remove unused structure
...
metze
2008-12-06 15:38:49 +01:00
Stefan Metzmacher
b7a1dd9a94
s4:loadparm: start 'browser' rpc_server
...
metze
2008-12-06 14:56:49 +01:00
Jelmer Vernooij
1575cae7e5
Fix memory leak.
2008-11-03 00:14:26 +01:00
Jelmer Vernooij
b45caa44e1
Fix the build.
2008-11-02 23:58:49 +01:00
Jelmer Vernooij
4147ad1e98
Remove global_loadparm.
2008-11-02 19:33:34 +01:00
Jelmer Vernooij
28d374ec15
Use environment variable rather than loadparm parameter when testing
...
nonblocking sockets.
2008-11-02 17:21:46 +01:00
Jelmer Vernooij
62c57cb400
Remove use of global_loadparm when comparing nt status error - use
...
global variable instead.
2008-11-02 17:11:20 +01:00
Jelmer Vernooij
e11a7b3a0b
Add utility function for getting the default loadparm context from a python module.
2008-11-02 16:48:48 +01:00
Jelmer Vernooij
ef915eff16
Move check of SMB_CONF_PATH to loadparm code.
2008-11-02 16:46:32 +01:00
Jelmer Vernooij
c537f7a914
Fix the build.
2008-11-02 05:49:36 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
9265cb02d0
Use a separate global for nonblocking socket testing rather than global_loadparm.
2008-11-02 01:15:42 +01:00
Jelmer Vernooij
75819db083
Rename param_opt.flags to priority.
2008-11-01 15:09:26 +01:00
Jelmer Vernooij
069a6f0e4b
Disable lanman authentication by default in Samba 4.
2008-10-31 15:07:34 +01:00
Jelmer Vernooij
d6afe7c61a
Fix includes.
2008-10-24 18:06:57 +02:00
Jelmer Vernooij
0218669d62
Remove include/local.h and move defines to more appropriate places.
2008-10-24 17:53:38 +02:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
a803525863
Regenerate SWIG files.
2008-10-24 15:30:43 +02:00
Jelmer Vernooij
12f7056aac
Remove access to global_loadparm from python module.
2008-10-24 15:00:09 +02:00
Jelmer Vernooij
e37ce5ba9f
Mark global_loadparm as deprecated.
2008-10-24 14:57:55 +02:00
Jelmer Vernooij
61013deff8
Remove dependency of charset code on loadparm.
2008-10-24 14:45:31 +02:00
Jelmer Vernooij
2d46992337
Remove const so return value can be freed.
2008-10-24 04:38:31 +02:00
Jelmer Vernooij
f18296151d
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-10-23 21:59:15 +02:00
Jelmer Vernooij
9d2d666109
Make lp_tls_* return absolute paths.
2008-10-23 21:49:40 +02:00
Jelmer Vernooij
09065795d6
Remove unused constants from local.h.
2008-10-23 18:13:25 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
c8a19f0b83
Pass options struct into session initialization functions rather than
...
using global_loadparm.
2008-09-30 01:29:53 +02:00
Simo Sorce
508527890a
Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.
...
The previous ldb_search() interface made it way too easy to leak results,
and being able to use a printf-like expression turns to be really useful.
2008-09-23 18:17:46 -04:00
Jelmer Vernooij
db0abee678
Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs
2008-09-19 00:06:14 +02:00
Jelmer Vernooij
6f6e42ce60
Generate with 1.3.36.
2008-09-18 23:55:50 +02:00
Jelmer Vernooij
729ffbae08
Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs
...
Conflicts:
source4/main.mk
2008-09-18 20:29:05 +02:00
Jelmer Vernooij
1ba033a070
Remove jsdir.
2008-09-18 16:57:44 +02:00
Jelmer Vernooij
7111645d3c
Use single copy of tdb in both samba3 and samba4.
2008-09-16 15:16:31 +02:00
Andrew Bartlett
2b1f2712f1
Add a standard filter for finding the LDAP secrets.
...
(This used to be commit 28c7849668
)
2008-07-15 15:09:32 +10:00
Andrew Bartlett
234413fbd9
Use a configure-specified directory for the winbind priv pipe
...
This makes it easier for RPMs to specify an group for access to that
directory.
Andrew Bartlett
(This used to be commit fa36135443
)
2008-06-28 22:02:19 +10:00
Andrew Tridgell
310875e637
Change our module code to not use the special symbol name init_module()
...
Current glibc libraries include a function called init_module(). If we
use the same name, then a dlsym() can find the glibc function if the
module doesn't have an initialisation function.
In ldb, none of our modules have an init_module(), so we end up calling the libc
functions with bogus arguments.
(This used to be commit 1b06210689
)
2008-06-17 13:11:29 +10:00
Simo Sorce
929adc9efa
Make up the right dependencies now that ldb depends on libevents
...
(This used to be commit 3b8eec7ca3
)
2008-06-14 11:59:19 -04:00
Andrew Bartlett
b9213316c7
Allow the ntp_signd socket to be set from configure.
...
This will allow distributions to hard-code this path, particularly for
selinux, and matches how we handle the winbind socket dir.
Andrew Bartlett
(This used to be commit c8b4416504
)
2008-05-29 15:20:58 +10:00
Andrew Bartlett
0f2d8eacf5
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
...
(This used to be commit 3038dd8a4f
)
2008-05-28 13:42:29 +10:00
Andrew Bartlett
baa2dffdf3
Bring up the ntp signing deamon
...
This starts ntp_signd at startup, and fixes some build issues.
Andrew Bartlett
(This used to be commit cb0dcd5c3d
)
2008-05-28 13:21:26 +10:00
Jelmer Vernooij
8fb5ac6227
Fix dependency on swig ldb module.
...
(This used to be commit e616a9a1e5
)
2008-05-28 04:11:40 +02:00
Jelmer Vernooij
936b973acb
Use new dynconfig.h location.
...
(This used to be commit c3f556915f
)
2008-05-27 14:36:28 +02:00
Jelmer Vernooij
5c66b80c07
Move version.o and dynconfig.o into their own directory.
...
(This used to be commit 2cc924a412
)
2008-05-27 13:38:39 +02:00
Jelmer Vernooij
73b789b6d2
Add docstrings to a couple more python modules.
...
(This used to be commit b4560c90e5
)
2008-05-24 04:01:57 +02:00
Jelmer Vernooij
9047195128
Add docstrings to param python module.
...
(This used to be commit 39d27088e5
)
2008-05-23 00:37:46 +02:00
Jelmer Vernooij
5ce59419a0
Fix CFLAGS for SWIG files.
...
(This used to be commit 8ee4f07504
)
2008-05-22 02:13:26 +02:00
Jelmer Vernooij
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48
)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
b1fc7bab11
Move some python files into the samba package.
...
(This used to be commit ed38c668cd
)
2008-05-21 21:50:56 +02:00
Jelmer Vernooij
82bcf967b7
Move CFLAGS overrides for SWIG modules to Makefile.
...
(This used to be commit 58665a8a8e
)
2008-05-21 21:32:53 +02:00
Jelmer Vernooij
2914b0ca04
Remove support for .py files from smb_build - deal with it only in the makefiles.
...
(This used to be commit b865249efa
)
2008-05-21 21:24:48 +02:00
Jelmer Vernooij
af61219f36
Fix dependencies for ldb instancetype module.
...
(This used to be commit 17c41a6c3e
)
2008-05-21 12:38:47 +02:00
Jelmer Vernooij
904359cd2f
Fix installed symlinks (cp was trying to be smart).
...
(This used to be commit a95f2bf86a
)
2008-05-21 12:14:47 +02:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
30ad1af106
Use variable for param src dir.
...
(This used to be commit f97bc57358
)
2008-05-18 19:37:24 +02:00
Jelmer Vernooij
778681e10a
Fix soversion for libtorture and libsamba-hostconfig.
...
(This used to be commit 1f698b96c7
)
2008-05-10 22:30:00 +02:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Jelmer Vernooij
db30ff4bea
Load default smb.conf file if none was specified explicitly.
...
(This used to be commit 8fa23fac51
)
2008-04-21 17:59:08 +02:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
08baea013b
Move SOVERSION, VERSION and PC_FILE out of smb_build but use make variables directly instead.
...
(This used to be commit 9d0ae012b0
)
2008-04-15 02:25:16 +02:00
Jelmer Vernooij
18f8f5d656
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
...
(This used to be commit 1ef3830bb0
)
2008-04-14 20:00:32 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Andrew Bartlett
0fa62eb275
Include the smbconf parameter to the provision
...
Otherwise this fails, if the targetdir is not specified
Andrew Bartlett
(This used to be commit cd2d3d1c7a
)
2008-04-14 16:01:15 +02:00
Jelmer Vernooij
f78bc8c489
Remove prototypes from build.h in preparation of removing build.h
...
altogether.
(This used to be commit dbeab2a9cd
)
2008-04-14 11:54:50 +02:00
Andrew Bartlett
c82e9c9f6d
Don't specify the ntds_guid to the C -> python provision interface
...
This paramter was not used anyway.
Andrew Bartlett
(This used to be commit 6875e6823f
)
2008-04-11 19:35:15 +10:00
Andrew Bartlett
ae977ef247
Fix merge errors on C provision interface after jelmer's good work.
...
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Conflicts:
source/torture/local/torture.c
(This used to be commit 5bf1c89cf8
)
2008-04-11 11:11:42 +10:00
Jelmer Vernooij
8ed6f6d5a8
Return SAM ldb context and loadparm context as part of C provision
...
result.
(This used to be commit a3e1b83565
)
2008-04-11 00:43:23 +02:00
Jelmer Vernooij
ad8e3e4192
Add infrastructure for returning ProvisionResult in C provision code.
...
(This used to be commit 98c3d34eb2
)
2008-04-10 05:23:17 +02:00
Jelmer Vernooij
a45f33f277
Fix so version of hostconfig library.
...
(This used to be commit 62322f302f
)
2008-04-09 17:14:01 +02:00
Andrew Bartlett
3f990fdf7c
Remove dns_name element
...
This is only used in the DEBUG() message, so let's remove it.
Andrew Bartlett
(This used to be commit 5ebb64bdad
)
2008-04-09 14:55:01 +10:00
Jelmer Vernooij
82c7872639
Move provision C bindings to param/.
...
(This used to be commit 7d45ed0c3e
)
2008-04-09 03:23:13 +02:00
Jelmer Vernooij
b5d84a74d1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/makefile.pm
source/heimdal_build/config.mk
source/lib/events/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/registry/config.mk
source/lib/socket_wrapper/config.mk
source/lib/tdb/config.mk
source/lib/tls/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/scripting/ejs/config.mk
source/smbd/process_model.mk
(This used to be commit 760378e029
)
2008-04-08 03:45:06 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
696ab2662e
Install samba-hostconfig library.
...
(This used to be commit 4d1fb503de
)
2008-04-01 16:05:54 +02:00
Jelmer Vernooij
39b2fc37f2
Add context pointer to secrets functions.
...
(This used to be commit 873941d8a8
)
2008-04-01 15:26:00 +02:00
Jelmer Vernooij
f41b9a9dde
Rename libsamba-config to libsamba-hostconfig.
...
(This used to be commit c46b7e90e3
)
2008-04-01 15:08:30 +02:00
Jelmer Vernooij
0ef6489eb1
Add README file explaining param/.
...
(This used to be commit 03226035aa
)
2008-04-01 15:03:24 +02:00
Jelmer Vernooij
14a54761d9
Move ini-like file parser to the utility library.
...
(This used to be commit 2dc2bb800d
)
2008-04-01 14:51:06 +02:00
Jelmer Vernooij
90f76ae99b
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
(This used to be commit 4e0b94d648
)
2008-03-28 00:59:54 +01:00
Andrew Bartlett
b422a78df2
Fix 'oplocks' in loadparm.
...
I forgot one more place where I must specify the new config option. I
wish this was more templated...
Andrew Bartlett
(This used to be commit 5a740f4daa
)
2008-03-28 10:18:06 +11:00
Andrew Bartlett
d554590d33
Fix how we initialise the oplocks parameter.
...
Andrew Bartlett
(This used to be commit 08ec91958d
)
2008-03-27 21:00:04 +11:00
Andrew Bartlett
91ae032c53
Actually call into lp_oplocks() in share_classic backend.
...
Andrew Bartlett
(This used to be commit 2c18482b19
)
2008-03-27 20:50:39 +11:00
Andrew Bartlett
4fc27c9969
Make oplocks a per-share option.
...
This even goes via the share options system (a very odd layer of indirection).
Andrew Bartlett
(This used to be commit f2c65f9907
)
2008-03-27 20:32:02 +11:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
2bf39edc9d
Push SOVERSION and VERSION out of perl code.
...
(This used to be commit 0ba8ac6a14
)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
fc2cd5ed63
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
(This used to be commit e4da851bd7
)
2008-03-07 18:03:54 +01:00
Andrew Bartlett
14c5f968e1
Rework provision scripts for more testing
...
This fixes up some issues with testdir (was not honoured) and
increases test coverage.
We now check all the major provision modes. In doing so, to make it
possible to call from the multiple layers of 'sh', I have allowed 'dc'
to alias 'domain controller' and 'member' to alias 'member server'.
Fighting shell quoting in the test system was just too hard...
Also fix upgrade.py
Andrew Bartlett
(This used to be commit 0923de1228
)
2008-03-07 10:57:52 +11:00
Stefan Metzmacher
3cbe47b2ae
libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKS
...
But the keep the default to always send it
when the server supports it too.
metze
(This used to be commit 33caaef2e4
)
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
2d1c06c578
Fix includes.
...
(This used to be commit 99e61dade2
)
2008-03-04 00:43:24 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
489f66cd42
Change remaining prototype headers to be private.
...
(This used to be commit 2f7ff409e8
)
2008-02-29 14:36:51 +01:00
Jelmer Vernooij
1ada710840
Move public header accumulation out of the perl code.
...
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.
Conflicts:
source/auth/config.mk
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/config_mk.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/lib/charset/config.mk
source/lib/tdr/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/torture/config.mk
(This used to be commit 6c659689ed
)
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
c8011b5d09
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/scripting/python/config.mk
(This used to be commit 0ac0ea660a
)
2008-02-29 12:45:46 +01:00
Jelmer Vernooij
2ba62662f8
Remove sDefault as static variable.
...
(This used to be commit 16f36ce499
)
2008-02-28 20:04:58 +01:00
Jelmer Vernooij
80d1d2a4db
Clarify comments.
...
(This used to be commit 5193b38376
)
2008-02-27 19:37:13 +01:00
Jelmer Vernooij
c5d77a1c24
Move public header accumulation out of the perl code.
...
(This used to be commit 89f7c74924
)
2008-02-26 17:17:52 +01:00
Jelmer Vernooij
f112578843
Remove public prototype headers. Generating both public and private prototype headers is tricky with gmake and it's easy to break backwards compatibility for the public API with them.
...
(This used to be commit dee1cb6b08
)
2008-02-25 23:09:56 +01:00
Kai Blin
2ca1aeb59b
loadparm: Add configuration settings for idmap.
...
Default behaviour for "idmap trusted only" is "False", meaning idmap creates
ID mappings for all SIDs.
If set to "True", idmap will create SID mappings for trusted users only.
"idmap database" allows to set the database idmap uses, defaulting to
idmap,ldb
(This used to be commit ed8178b110
)
2008-02-21 11:21:54 +01:00
Jelmer Vernooij
80cbff3d01
Fix build with partial linking.
...
(This used to be commit bfad9610c4
)
2008-02-18 16:02:33 +01:00
Kai Blin
c10e0dee34
loadparm: Clean up trailing whitespace
...
No code change. Couldn't resist.
(This used to be commit abc816b388
)
2008-02-14 12:32:29 +01:00
Andrew Bartlett
b3c5fbec47
Remaining changes to implement the prefork process model
...
To use, run 'smbd -M prefork'
By default, only the smb service is preforked. 4 children are
created, and all listen for new connections. The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept. We need to look into the ideal number of worker children, as
well as load balancing behaviours.
To change, set:
prefork children : smb = 6
valid service names (smb in this example) match those in 'server services'.
Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3
)
2008-02-04 17:59:16 +11:00
Jelmer Vernooij
00cb710fbc
Add bindings for lp_load_default().
...
(This used to be commit ffd793bbde
)
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
a259547786
build: Remove support for DESCRIPTION setting that is now unused.
...
(This used to be commit 91d7ba5202
)
2008-01-22 18:49:51 +01:00
Jelmer Vernooij
f254d53202
param: Use manually written .pc file.
...
(This used to be commit c0165aab47
)
2008-01-22 18:41:30 +01:00
Jelmer Vernooij
03023c4f7d
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
...
to migrate to a new build system.
(This used to be commit 77b400764e
)
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
251457264b
python: Accept loadparm filename rather than loadparm object, too.
...
(This used to be commit 7e583a7ec4
)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
3b16c532f2
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
...
(This used to be commit 4c87af9531
)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
ac65321a46
r26627: param: Provide a call for loading the system smb.conf.
...
(This used to be commit 2596b479ab
)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
533cc583ed
r26596: Fixed upgrade.py.
...
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df6
)
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
cc30cb5e24
r26592: Finish fixing the samba3dump script.
...
(This used to be commit 85679f3fc9
)
2007-12-26 11:57:06 -06:00
Kai Blin
3c744ddd2c
r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
...
Also rename the corresponding wrap_ functions.
(This used to be commit e59c2eaf68
)
2007-12-26 11:57:05 -06:00
Jelmer Vernooij
c13ae70731
r26580: Include sentinel in build.h, in case the list is empty.
...
(This used to be commit f1997dabed
)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
be33f4c611
r26576: Allow the static module loading code to be used for the Python modules.
...
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0
)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
d0ba9f0014
r26572: Fix warnings in the Python code.
...
(This used to be commit 15038d9586
)
2007-12-24 01:51:04 -06:00
Jelmer Vernooij
aa0a06f13c
r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
...
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372
)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
57b8a8fd42
r26517: Add functions for setting and getting parameters on a LoadParm.
...
Pass loadparm context along to Ldb contexts.
Other minor Python improvements.
(This used to be commit 7a15b486ba
)
2007-12-21 05:51:23 +01:00
Jelmer Vernooij
f89c7a6e5e
r26505: Add python bindings for some samdb-related functions, improve provisioning in python.
...
(This used to be commit d240225166
)
2007-12-21 05:51:09 +01:00
Jelmer Vernooij
32f439bfa4
r26503: Change order of arguments in param interface so it's easier to make the
...
section name optional. Fix several smaller bits and pieces in the Python code.
(This used to be commit 1b89311e5f
)
2007-12-21 05:51:06 +01:00
Jelmer Vernooij
01b96e47cd
r26498: Fix memory leak in iconv code.
...
(This used to be commit 8795697db5
)
2007-12-21 05:50:54 +01:00
Jelmer Vernooij
1bc38f9fb3
r26464: Tighten dependencies.
...
(This used to be commit 2b7cfa5d9a
)
2007-12-21 05:50:29 +01:00
Jelmer Vernooij
b04bae8715
r26461: Tighten dependencies.
...
(This used to be commit a07050be33
)
2007-12-21 05:50:27 +01:00
Jelmer Vernooij
a94142487a
r26456: Provide default config object, fix typo.
...
(This used to be commit 2b59df2af9
)
2007-12-21 05:50:24 +01:00
Jelmer Vernooij
df8c7da800
r26454: Add simple SWIG macro for wrapping talloced types.
...
(This used to be commit 760fcc8bfa
)
2007-12-21 05:50:22 +01:00
Jelmer Vernooij
bf6d40f271
r26449: Support configuration without a known configuration dir.
...
(This used to be commit d3643c2152
)
2007-12-21 05:50:14 +01:00
Jelmer Vernooij
864218b6be
r26448: Add basic tests for param python module.
...
(This used to be commit ccfab20dcc
)
2007-12-21 05:50:14 +01:00
Jelmer Vernooij
c39c94b499
r26447: Forgot to add param.i file.
...
(This used to be commit 44098e6a40
)
2007-12-21 05:50:13 +01:00
Jelmer Vernooij
55f90f1166
r26446: Convert param module to SWIG.
...
(This used to be commit 94e5f9c92f
)
2007-12-21 05:50:13 +01:00
Jelmer Vernooij
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf3972
)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
1167c9d9c6
r26436: Remove default of 0 for integer parameters when a lp_ctx of NULL is specified
...
(This used to be commit f3395db91a
)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
2bf0cdd01c
r26434: Remove display charset from iconv convenience context.
...
(This used to be commit a76625994a
)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
83f9ee5860
r26433: Don't crash when a NULL lp_ctx is specified to a lp_parm_* function.
...
(This used to be commit 7f28b53b57
)
2007-12-21 05:50:03 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7ab
)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
a5b8999f23
r26427: Avoid global_smb_iconv_convenience.
...
(This used to be commit bf072c6fb3
)
2007-12-21 05:49:53 +01:00
Stefan Metzmacher
45d349eb80
r26425: fix crash bug, sorry I should have tested that...
...
metze
(This used to be commit 61d2f1a03b
)
2007-12-21 05:49:51 +01:00
Stefan Metzmacher
21b024aa82
r26423: try to fix the build on solaris
...
metze
(This used to be commit 5b62180946
)
2007-12-21 05:49:51 +01:00
Stefan Metzmacher
69e61fc153
r26415: LIBSAMBA-CONFIG used dlopen(), so it has to depend on LIBREPLACE_EXT for -ldl
...
This fixes the pidl/ndr_string test.
metze
(This used to be commit 7c6d9edffb
)
2007-12-21 05:49:46 +01:00
Stefan Metzmacher
6a56c111d7
r26391: samba4 doesn't support 'lmhosts' as resolve module
...
metze
(This used to be commit cdb64b4101
)
2007-12-21 05:49:21 +01:00
Jelmer Vernooij
f055893ca5
r26382: Remove more uses of global_loadparm.
...
(This used to be commit 6d4c598534
)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
038c75c0cb
r26357: Add separate subsystem for auth_sam_reply parsing.
...
(This used to be commit 2d61e7c96e
)
2007-12-21 05:49:02 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
dd7e5ed88c
r26352: Don't make lp_load create a new context.
...
(This used to be commit d0d5c1a823
)
2007-12-21 05:48:56 +01:00
Jelmer Vernooij
75ac6cd318
r26351: Fix handling of flags when there are multiple loadparm contexts around.
...
(This used to be commit c6da76b614
)
2007-12-21 05:48:55 +01:00
Jelmer Vernooij
5c6eacdb04
r26350: More tests.
...
(This used to be commit 87799f55d5
)
2007-12-21 05:48:55 +01:00
Jelmer Vernooij
5991108c81
r26349: More tests.
...
(This used to be commit c440b130a9
)
2007-12-21 05:48:54 +01:00