1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

517 Commits

Author SHA1 Message Date
Jelmer Vernooij
2a9c22798d param: Fix build on systems without ldb installed. 2009-12-22 01:24:58 +01:00
Jelmer Vernooij
5b9e98a382 provision/pyldb: Avoid linking in static python ldb module. 2009-12-21 23:40:12 +01:00
Jelmer Vernooij
c8e62797eb Fix initialisation of TypeObject samba.param.LoadparmService.
Found by Ricardo Jorge <rvelhote@gmail.com>.
2009-12-21 23:40:11 +01:00
Andrew Tridgell
b11b22752a s4-loadparm: call reload_charcnv() also for a missing smb.conf
bin/net vampire with a missing smb.conf would segfault as the iconv
convenience pointer had not been setup.
2009-12-14 22:29:58 +11:00
Brad Hards
840cdfa2fa s4:param remove reference to private header from source4/param/param.h
source4/param/param.h has a

param.h is a public header (and parmlist isn't, even if the relative path
could work), so I suggest making it a forward declaration in the header, and
including parmlist.h in the implementation.

(commit message included from e-mail by Andrew Bartlett)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-24 15:21:57 +11:00
Andrew Bartlett
6b0b3fed31 s4:provision Add C binding to get at the generate schema
This will allow us to do local tests against that schema
2009-11-12 16:34:11 +11:00
Endi S. Dewata
e035433bab s4 - SID allocation using FDS DNA plugin 2009-11-02 16:36:54 +11:00
Stefan Metzmacher
4ab83fb1b7 s4:loadparm: don't leak the names of all shares in each lp_service() call
metze
2009-10-24 11:59:15 +02:00
Andrew Tridgell
3050f83288 s4-python: we need to include Python.h first
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11:00
Andrew Bartlett
b392116c1f s4:secrets Look for LDAP secret with a name that is indexed
This avoids a very common unindexed lookup
2009-10-23 15:41:53 +11:00
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