summaryrefslogtreecommitdiff
path: root/source4
AgeCommit message (Collapse)AuthorFilesLines
2011-06-21s4-cmdline: Rename popt tables to avoid symbol conflictsAndrew Bartlett3-12/+12
These same names are use in the source3 popt code, which is called from in libsmbclient and libnet. These are then included in the smbtorture binary for testing Andrew Bartlett
2011-06-21lib/util: Use common d_printf() in the whole codebaseAndrew Bartlett1-6/+0
This removes the lang_tdb based varient, the only user of the lang_tdb code is SWAT, which calls that directly. 'net' and 'pam_winbind' are internationalised using gettext. Andrew Bartlett
2011-06-21s4-param Add my authorship to this scriptAndrew Bartlett1-2/+3
2011-06-20Use tevent_req_oomVolker Lendecke4-5/+5
This fixes a few Coverity errors
2011-06-20tdb2: tie it into build process if --enable-tdb2-breaks-compatRusty Russell1-1/+1
This is simplistic. We need to support making TDB2 a standalone library, but for now, we simply built it in-tree. Once we have tdb1 compatibility in tdb2, we can rename this option to --enable-tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb2: create tdb2 versions of various testing TDBs.Rusty Russell1-2/+5
Soon, TDB2 will handle tdb1 files, but until then, we substitute. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_compat: use tdb_open_compat.Rusty Russell3-29/+51
This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb2: #ifdef out TDB_ERR_NOLOCK and TDB_ERR_LOCK_TIMEOUT.Rusty Russell1-0/+4
These don't exist in tdb2. The former is used in one weird place in tdb1, and the latter not at all. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell3-6/+6
The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_unlockall/tdb_unlockall_read: ignore return value.Rusty Russell1-1/+2
TDB2 returns void here. tdb_unlockall will *always* return with the database unlocked, but it will complain via the log function if it wasn't locked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2-3/+3
TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_transaction_cancel: ignore return value.Rusty Russell1-4/+1
TDB2 returns void here. tdb_transaction_cancel will *always* return with the transaction cancelled, but it will complain via the log function if a transaction wasn't in progress. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_store: check returns for 0, not -1.Rusty Russell3-3/+3
TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_delete: check returns for 0, not -1.Rusty Russell1-1/+1
TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell7-15/+17
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell15-20/+25
We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20pyldb: add unit test for get(myattribute, defVal)Matthieu Patou1-0/+5
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Jun 20 09:23:15 CEST 2011 on sn-devel-104
2011-06-20libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett26-116/+116
The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
2011-06-20libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett5-169/+3
Due to library link orders, this is already the function that is being used. However we still need to sort out the duplicate symbol issues, probably by renaming things. Andrew Bartlett
2011-06-20s3-libcli Remove unused error mapping tablesAndrew Bartlett1-549/+0
The functions which uesed these tables have since moved in common. Andrew Bartlett
2011-06-20build: Put lockdir and cachedir in FHS-like locations by defaultAndrew Bartlett1-2/+2
This does not move statedir, leaving it in PREFIX/var/locks because state files such as idmap are dangerous to move, as they might re-create, causing chaos. This isn't ideal, but I don't have a better solution right now. Andrew Bartlett
2011-06-20s4-build Change default paths and --with flags for a 4.0 releaseAndrew Bartlett1-58/+20
The following changes are made since Samba 3.6: * --with-ncalrpcdir and --with-nmbdsocketdir are replaced with --with-socket-dir (with ntp_signd, winbindd, nmbd subdirs) * This moves the winbind socket out of /tmp. Distributions have moved this out of /tmp for quite some time now, and /var/run in the FHS blessed location these days. --with-socketdir should point to /var/run in a distribution package. * Configuration files are expected in PREFIX/etc instead of PREFIX/lib (they need to be moved manually) * SWAT data files have moved to PREFIX/share/swat (alongside PREFIX/share/setup containing samba4 provision templates). * The --with-fhs option is no longer available (it was never very useful, and major distributions (Debian, OpenSuSE, Fedora) either specified every option (overriding the effect) or didn't specify it at all. * PID files are now in PREFIX/var/run, moved from PREFIX/var/locks * The ncalrpc and nmbd sockets are now in PREFIX/var/run by default The following changes are made for users of Samba3 binaries built with the top level build in master * 'state' files are now expected to be in their Samba 3.6 location PREFIX/var/locks (and will need to be moved manually) Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-20s4-upgradeprovision: propose the use of findprovisionranges if no ranges are ↵Matthieu Patou1-0/+14
present Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Jun 20 00:30:59 CEST 2011 on sn-devel-104
2011-06-19s4: create script to find provision ranges for old provision without this ↵Matthieu Patou1-0/+174
information
2011-06-19s4-sambatool: extract the confirm function in a separte module for reuseMatthieu Patou2-10/+36
2011-06-19s4-samba-tool: remove unused importsMatthieu Patou1-2/+1
2011-06-19s4-samba-tool: use correct object notation ie. obj.method rather than ↵Matthieu Patou1-37/+31
method(obj, ...)
2011-06-19s4-sambatool: use correct way to call class methodsMatthieu Patou1-53/+54
2011-06-19s4-upgradeprovision: improve message outputMatthieu Patou1-1/+1
2011-06-19s4-upgradeprovision: skip versionNumber, it's used by GPOMatthieu Patou1-0/+1
2011-06-19s4-provision: Remove hard coded SD for CN=Sites containerMatthieu Patou2-16/+0
With the fix introduced by Nadya in changeset 622ef6aed82a2f2f7748c2a88535486af77487de we are now able to generate correct SD (at least the same as W2k3R2 with a Forest Level of 2003), so there is no need for this fix anymore as it makes SDs for Forest Level 2003 and lower incorrect.
2011-06-19s4-upgradeprovision: deltaattr can be empty or none tooMatthieu Patou1-8/+8
2011-06-19s4-upgradeprovision: handle the fact that oEMInformation might not be presentMatthieu Patou1-2/+5
2011-06-19s4-upgradeprovision: Rework completly how SDs are recalculatedMatthieu Patou1-66/+99
2011-06-19s4-python: make checks of sacl in get_diff_sddls optionnalMatthieu Patou1-2/+6
2011-06-19s4-upgradeprovision: remove useless commentMatthieu Patou1-1/+0
2011-06-19s4-upgradeprovision: ignore objectSidMatthieu Patou1-2/+3
2011-06-19s4-upgradeprovision: add a list of attribute that are not DSDB attribute ↵Matthieu Patou1-0/+4
that we don't want to copy
2011-06-19s4: fix wrong index usage PRIMARY_USER_SID_INDEX when it should have been ↵Matthieu Patou1-1/+1
PRIMARY_GROUP_SID_INDEX The system account was instanciated with wrong user an group SIDs, group sid resulted being just the domain SID. Bug seems to date from fbe6d155bf177c610ee549cc534650b0f0700e8a. Andrew (B.) please check.
2011-06-19s4-upgradeprovision: if there is nothing to really modify then skip itMatthieu Patou1-0/+3
2011-06-19s4-upgradeprovision: dn must be skipped as delta.remove("dn") do not remove ↵Matthieu Patou1-0/+3
this attribute
2011-06-19s4-upgradeprovision: change hashAttrNotCopied to be an arrayMatthieu Patou1-26/+22
2011-06-19s4-upgradeprovision: fix inverted logic and wrong flags on sd_flags controlMatthieu Patou1-3/+4
2011-06-19s4-upgradeprovision: remove useless codeMatthieu Patou1-3/+0
2011-06-19s4-upgradeprovision: don't print dn in the list of modified attributesMatthieu Patou1-1/+2
2011-06-19s4-upgradeprovision: clean up, reformating and update docsMatthieu Patou1-9/+8
2011-06-19s4-upgradeprovision: introduce invocation id in lastprovisionUSNsMatthieu Patou2-29/+73
2011-06-19s4-upgradeprovision: add function to know if attribute is replicated or notMatthieu Patou1-0/+20
2011-06-19s4-upgradeprovision: split update_present in two functions depending on the ↵Matthieu Patou1-130/+171
method used In order to make the function a bit more clearer and with less depth, the selection of attribute that are not updated is split in two functions depending on the fact that we are using mainly replPropertyMetadata to make our choice or if we are using the list of attributes that should, could or shouldn't be updated/created/deleted.
2011-06-19s4-upgradeprovision: handle_special_attributes don't really need ranges of ↵Matthieu Patou1-5/+6
USNs, just the information if we are using replPropertyMetadata for attribute selection