Volker Lendecke [Sat, 3 Apr 2010 17:50:25 +0000 (19:50 +0200)]
libwbclient: Make wbcAddNamedBlob not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:03:49 +0000 (15:03 +0200)]
libwbclient: Make wbcResolveWinsByIP not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:03:20 +0000 (15:03 +0200)]
libwbclient: Make wbcResolveWinsByName not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:02:40 +0000 (15:02 +0200)]
libwbclient: Make wbcDomainInfo not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:59:07 +0000 (14:59 +0200)]
libwbclient: Make wbcInterfaceDetails not use talloc
Volker Lendecke [Sun, 4 Apr 2010 19:38:38 +0000 (21:38 +0200)]
libwbclient: Test wbcAuthenticateUser[Ex]
Volker Lendecke [Sat, 3 Apr 2010 12:46:11 +0000 (14:46 +0200)]
libwbclient: Make _SID_COMPOSE a function instead of a macro
Volker Lendecke [Sat, 3 Apr 2010 12:33:17 +0000 (14:33 +0200)]
libwbclient: Make wbcGetDisplayName not use talloc
Volker Lendecke [Sat, 10 Apr 2010 14:36:22 +0000 (16:36 +0200)]
libwbclient: Test wbcGetDisplayName
Volker Lendecke [Sat, 3 Apr 2010 12:31:57 +0000 (14:31 +0200)]
libwbclient: Make wbcListGroups not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:26:22 +0000 (14:26 +0200)]
libwbclient: Make wbcListUsers not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:16:19 +0000 (14:16 +0200)]
winbindd: Fill in num_entries where available
The server implementation of WINBINDD_LIST_USERS, WINBINDD_LIST_GROUPS and
WINBINDD_LIST_TRUSTDOM knows the number of entries returned.
Bump up the version number so that a newer lib does not rely on something an
older winbind does not do.
Volker Lendecke [Sat, 10 Apr 2010 10:58:14 +0000 (12:58 +0200)]
libwbclient: Make wbcGetSidAliases not use talloc
Volker Lendecke [Sat, 10 Apr 2010 13:59:22 +0000 (15:59 +0200)]
s3: Add some debug to GETSIDALIASES
Volker Lendecke [Sat, 10 Apr 2010 13:53:07 +0000 (15:53 +0200)]
libwbclient: Test wbcGetSidAliases
Volker Lendecke [Sat, 10 Apr 2010 13:36:01 +0000 (15:36 +0200)]
libwbclient: Simplify test_wbc_domain_info a bit
Volker Lendecke [Sat, 10 Apr 2010 13:28:42 +0000 (15:28 +0200)]
libwbclient: Fix some pointless macro calls
Volker Lendecke [Sat, 10 Apr 2010 10:57:13 +0000 (12:57 +0200)]
libwbclient: Take -21 into account in length guessing
Volker Lendecke [Sat, 3 Apr 2010 11:45:20 +0000 (13:45 +0200)]
libwbclient: Fix some pointless macro calls
Volker Lendecke [Sat, 3 Apr 2010 11:44:49 +0000 (13:44 +0200)]
libwbclient: Make wbcLookupRids not use talloc
Volker Lendecke [Sat, 3 Apr 2010 11:37:01 +0000 (13:37 +0200)]
libwbclient: Add wbcAllocateStringArray
Volker Lendecke [Sun, 4 Apr 2010 20:52:53 +0000 (22:52 +0200)]
libwbclient: Test wbcLookupRids
Volker Lendecke [Sat, 3 Apr 2010 10:01:43 +0000 (12:01 +0200)]
libwbclient: Make wbcLookupSid not use talloc
Volker Lendecke [Sat, 3 Apr 2010 09:59:29 +0000 (11:59 +0200)]
libwbclient: Add wbcStrDup
Volker Lendecke [Sat, 3 Apr 2010 09:14:23 +0000 (11:14 +0200)]
libwbclient: Convert wbcSidToString to not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:16:32 +0000 (22:16 +0200)]
libwbclient: Make copy_group_entry not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:16:07 +0000 (22:16 +0200)]
libwbclient: Make copy_passwd_entry not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:14:39 +0000 (22:14 +0200)]
libwbclient: Make wbcGuidToString not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:14:03 +0000 (22:14 +0200)]
libwbclient: Make wbcLibraryDetails not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:10:22 +0000 (22:10 +0200)]
libwbclient: Add wbcAllocateMemory()
This prepares for removing libwbclient's talloc dependency. It is a
non-hierarchical "talloc-lite" that has destructors. It is necessary because we
have the catch-call wbcFreeMemory call. Individual wbcFreeXXX calls for the
different structures wbclient returns would have made this easier, but
wbcFreeMemory is the API we have to live with.
Andrew Tridgell [Mon, 19 Apr 2010 11:54:40 +0000 (21:54 +1000)]
s4-waf: follow the configure directories for the empty install dirs
Thanks to Metze for spotting this
Andrew Tridgell [Mon, 19 Apr 2010 11:00:51 +0000 (21:00 +1000)]
build: update waf from svn
this adds bld.install_dir()
Andrew Tridgell [Mon, 19 Apr 2010 11:00:36 +0000 (21:00 +1000)]
s4-waf: install some missing empty directories
Andrew Tridgell [Mon, 19 Apr 2010 11:00:16 +0000 (21:00 +1000)]
build: make compare_install.sh also check for missing directories
Thanks to Nadya for pointing this out
Günther Deschner [Mon, 19 Apr 2010 09:53:11 +0000 (11:53 +0200)]
s3-smb2: fix some c++ warnings.
Guenther
Günther Deschner [Mon, 19 Apr 2010 09:46:03 +0000 (11:46 +0200)]
s3-spoolss: fix samr_ValidatePassword_Change.
Guenther
Günther Deschner [Mon, 19 Apr 2010 09:45:33 +0000 (11:45 +0200)]
spoolss: move up enum spoolss_Build in the IDL.
Guenther
Günther Deschner [Fri, 9 Apr 2010 23:44:08 +0000 (01:44 +0200)]
s3-lanman: use spoolss for api_WPrintJobGetInfo().
Guenther
Günther Deschner [Fri, 9 Apr 2010 23:33:37 +0000 (01:33 +0200)]
s3-lanman: use spoolss for api_WPrintJobEnumerate().
Guenther
Günther Deschner [Tue, 13 Apr 2010 21:51:36 +0000 (23:51 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 13 Apr 2010 21:50:58 +0000 (23:50 +0200)]
spoolss: make spoolss_SetPrinterInfo0 match changes in spoolss_PrinterInfo0.
Guenther
Andrew Tridgell [Mon, 19 Apr 2010 08:00:47 +0000 (18:00 +1000)]
s4-waf: fixed WINBINDD_SOCKET_DIR for wb_common in s4
s4 uses a different path for the socket
Andrew Tridgell [Mon, 19 Apr 2010 07:18:53 +0000 (17:18 +1000)]
s4-test: we don't need -s set for samba_dnsupdate
this is now handled by SMB_CONF_PATH
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 19 Apr 2010 07:18:20 +0000 (17:18 +1000)]
s4-dns: use neater python for reading lines
files are line iterators
Andrew Tridgell [Mon, 19 Apr 2010 07:17:07 +0000 (17:17 +1000)]
s4-param: set SMB_CONF_PATH when we load a smb.conf
this is inherited by child python processes, to ensure they get the
right smb.conf if they don't have one specified. Fixes bug 7301
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 19 Apr 2010 07:14:33 +0000 (17:14 +1000)]
runcmd: use tevent_re_initialise() to close sockets
this ensures that all event fds are closed in the child
Kai Blin [Mon, 19 Apr 2010 07:27:50 +0000 (09:27 +0200)]
s3 i18n: Fix up missing newlines in more pam_winbind translations
Kai Blin [Mon, 19 Apr 2010 07:03:01 +0000 (09:03 +0200)]
s3 i18n: Fix up missing newlines in pam_winbind translations
At least in the languages I could read, the newlines were indeed
missing.
Andrew Tridgell [Mon, 19 Apr 2010 05:58:37 +0000 (15:58 +1000)]
build: added --cross-answers support
This allows you to easily cross-compile even without a --cross-execute
emulator
See http://wiki.samba.org/index.php/Waf#cross-compiling for details
Andrew Tridgell [Mon, 19 Apr 2010 03:49:00 +0000 (13:49 +1000)]
s4-dev: expanded selftest-vars.sh to match current testenv
Andrew Tridgell [Mon, 19 Apr 2010 03:43:53 +0000 (13:43 +1000)]
s4-python: PyErr_SetString() will crash on NULL strings
use nt_errstr() when no error available
Andrew Tridgell [Mon, 19 Apr 2010 03:43:12 +0000 (13:43 +1000)]
build: fixed a python-3 indent error
Andrew Tridgell [Mon, 19 Apr 2010 03:42:53 +0000 (13:42 +1000)]
build: expanded testwaf to include cross-compiling and python versions
Jeremy Allison [Mon, 19 Apr 2010 03:23:54 +0000 (20:23 -0700)]
Final fix for #7331 - Compound async SMB 2 requests don't work right.
Don't free the cancelled SMB2 req early, let the cancelation
function take care of it. Return a NT_STATUS_CANCELLED when
we find and cancel a request. Fix our SMB2 error returns to
correctly set the structuresize to 9, and add the expected
zero byte (see section 2.2.2 in the SMB2 spec.).
This causes Samba to pass the test program in this bug report
that W2K8R2 fails (heh heh :-). This is because we always cause
compound requests to get to a cancelation point before dealing
with a cancel request.
Jeremy.
Volker Lendecke [Sat, 17 Apr 2010 19:39:09 +0000 (21:39 +0200)]
s3: Fix indentation in remove_ccache
Volker Lendecke [Sat, 17 Apr 2010 18:09:45 +0000 (20:09 +0200)]
s3: Fix a memleak in discover_dc_netbios
Volker Lendecke [Sat, 17 Apr 2010 17:24:34 +0000 (19:24 +0200)]
s3: Fix a typo in winbindd_ccache_save
Volker Lendecke [Sun, 18 Apr 2010 12:09:22 +0000 (14:09 +0200)]
nsswitch: Fix a memleak in wbinfo
Ira Cooper [Sun, 18 Apr 2010 13:02:23 +0000 (15:02 +0200)]
s3: Improved support for GAMIN.
Support the FAMNoExists API for gamin to reduce cpu use and problems when
using GAMIN as FAM for vfs_notify_fam.
Andrew Tridgell [Sun, 18 Apr 2010 12:57:59 +0000 (22:57 +1000)]
build: more dependencies on /usr/bin/perl -> ${PERL}
Andrew Tridgell [Sun, 18 Apr 2010 12:55:16 +0000 (22:55 +1000)]
build: cope with perl not being in /usr/bin/perl
This should fixed the pidl build on SerNet-NetBSD5
Andrew Tridgell [Sun, 18 Apr 2010 11:47:00 +0000 (21:47 +1000)]
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
This was left over from the automatic conversion of the config.mk
files
Andrew Tridgell [Sun, 18 Apr 2010 11:08:11 +0000 (21:08 +1000)]
build: fixed install of binary targets that are in subdirs
this should fix the smbd/smbd install problem with Kai's s3 waf build
Andrew Tridgell [Sun, 18 Apr 2010 09:41:47 +0000 (19:41 +1000)]
build: support make V=1 for verbose build
this also adds support for other options, such as "make TESTS=testpattern"
Andrew Tridgell [Sun, 18 Apr 2010 08:21:04 +0000 (18:21 +1000)]
build: more adjustments for the ABI type name maps
- use 'va_list' instead of 'struct __va_list_tag *'
Using the C name for va_list is preferable
- add support for negative ABI name matches in abi_match=. That is
used to exlude ldb_*module_ops from the ldb ABI
- don't include the ldb module ops or backend ops in the ABI
Andrew Tridgell [Sun, 18 Apr 2010 07:35:53 +0000 (17:35 +1000)]
build: added abi_type_maps for FC12 struct va_list
fedora12 x86 uses "struct va_list"
Andrew Tridgell [Sun, 18 Apr 2010 07:31:24 +0000 (17:31 +1000)]
build: don't depend on the word size of nm output
the first column varies in length for different architectures
Jeremy Allison [Sun, 18 Apr 2010 05:42:23 +0000 (22:42 -0700)]
Second part of fix for bug #7331 - Compound async SMB 2 requests don't work right.
Cause us to match W2K8R2 by sending an interim compound reply
followed by a async reply.
Jeremy.
Andrew Tridgell [Sun, 18 Apr 2010 05:39:59 +0000 (15:39 +1000)]
s4-waf: rebuild signature files with the api type maps
This is not strictly necessary, as the old types would compare equal,
but it is neater to use the generic type names
Andrew Tridgell [Sun, 18 Apr 2010 05:39:14 +0000 (15:39 +1000)]
build: added abi type maps for _Bool and __va_list_tag
This allows us to make the signature files platform independent
Andrew Tridgell [Sun, 18 Apr 2010 02:48:09 +0000 (12:48 +1000)]
ldb-waf: enable ABI checking in ldb
we use separate signature files for ldb and ldb-samba4, as the samba4
varient of the library has many more public symbols
Andrew Tridgell [Sun, 18 Apr 2010 02:47:33 +0000 (12:47 +1000)]
ldb: mark the tdb backend in ldb as _PRIVATE_
Andrew Tridgell [Sun, 18 Apr 2010 02:47:13 +0000 (12:47 +1000)]
tevent-waf: enabled ABI checking in tevent
Andrew Tridgell [Sun, 18 Apr 2010 02:47:00 +0000 (12:47 +1000)]
tevent: mark backend init fns as _PRIVATE_
these are not supposed to be exposed in the library
Andrew Tridgell [Sun, 18 Apr 2010 02:46:33 +0000 (12:46 +1000)]
tdb-waf: added ABI checking for tdb
Andrew Tridgell [Sun, 18 Apr 2010 02:46:21 +0000 (12:46 +1000)]
talloc: mark public functions as _PUBLIC_
Andrew Tridgell [Sun, 18 Apr 2010 02:46:04 +0000 (12:46 +1000)]
talloc-waf: added ABI checking for talloc
Andrew Tridgell [Sun, 18 Apr 2010 02:45:30 +0000 (12:45 +1000)]
replace-waf: hide symbols in libreplace if a builtin library
Andrew Tridgell [Sun, 18 Apr 2010 02:44:58 +0000 (12:44 +1000)]
libreplace: added _PUBLIC_ and _PRIVATE_ to replace.h
these are needed for all libs that use ABI checking, so libreplace
is the logical place for now
Andrew Tridgell [Sun, 18 Apr 2010 02:44:07 +0000 (12:44 +1000)]
s4-waf: put the --xxx-wrapper options in 'developer options' group
Andrew Tridgell [Sun, 18 Apr 2010 02:43:15 +0000 (12:43 +1000)]
build: added ABI checking to the WAF build
See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
Andrew Tridgell [Sun, 18 Apr 2010 02:41:56 +0000 (12:41 +1000)]
build: added a script for generating ABI signatures from shared libraries
Jeremy Allison [Sun, 18 Apr 2010 04:20:17 +0000 (21:20 -0700)]
First part of fix for bug #7331 - Compound async SMB 2 requests don't work right.
Gets us handling SMB2 compound async requests similar to W2K8R2
(and triggers the same client bug in the Win7 redirector). Great
thanks to Ira Cooper <samba@ira.wakeful.net> for helping with
this and to Metze for the wonderful async framework. The one
thing I need to fix to make us identical to W2K8R2 is that
when a compound request goes async at the end W2K8R2 splits
the replies up into a compound non-async reply followed by
a separate async reply. Currently we're doing the whole thing
in a compound reply.
Jeremy.
Matthias Dieter Wallnöfer [Sat, 17 Apr 2010 18:42:37 +0000 (20:42 +0200)]
s4:dsdb/dns/dns_update.c - fix a typo
Matthias Dieter Wallnöfer [Sat, 17 Apr 2010 18:08:15 +0000 (20:08 +0200)]
s4:kdc/db-glue.c - use "TALLOC_FREE" insteal of "talloc_free" for the "priv" context
Also after a free "priv" could be != NULL and may be freed again.
This should fix bug #7365.
Matthias Dieter Wallnöfer [Sun, 11 Apr 2010 21:22:01 +0000 (23:22 +0200)]
s4:kdc/wdc-samba4.c - fix integer counter types
Matthias Dieter Wallnöfer [Sun, 11 Apr 2010 21:17:15 +0000 (23:17 +0200)]
s4:kdc/db-glue.c - fix integer counter types
Nadezhda Ivanova [Sat, 17 Apr 2010 15:16:25 +0000 (18:16 +0300)]
s4:Added a test for correct CO expansion in SD creation.
Volker Lendecke [Fri, 16 Apr 2010 13:06:17 +0000 (15:06 +0200)]
s3: Slightly simpify samr_ValidatePassword_Reset
Volker Lendecke [Fri, 16 Apr 2010 13:06:03 +0000 (15:06 +0200)]
s3: Slightly simpify samr_ValidatePassword_Change
Volker Lendecke [Fri, 16 Apr 2010 13:00:54 +0000 (15:00 +0200)]
s3: Slightly simplify the logic of check_password_complexity()
The whole routine was just one if-branch. Do an early return instead.
Volker Lendecke [Fri, 16 Apr 2010 12:16:40 +0000 (14:16 +0200)]
s3: Fix some nonempty blank lines
Andreas Schneider [Fri, 16 Apr 2010 09:04:27 +0000 (11:04 +0200)]
s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.
Nadezhda Ivanova [Fri, 16 Apr 2010 11:28:09 +0000 (14:28 +0300)]
s4:Replaced dsdb_get_dom_sid_from_ldb_message() with samdb_result_dom_sid()
Karolin Seeger [Fri, 16 Apr 2010 07:23:30 +0000 (09:23 +0200)]
s3-docs: Improve "winbind nss info" section in man smb.conf.
Karolin
Andrew Tridgell [Fri, 16 Apr 2010 05:33:07 +0000 (15:33 +1000)]
s4-rpc: fixed the build with the old build system
../librpc/gen_ndr/ndr_drsblobs.o was being linked in twice into
drsblobs.so
Andrew Tridgell [Thu, 15 Apr 2010 07:15:25 +0000 (17:15 +1000)]
s4-net: allow a username to be displayed in setpassword errors
the filter is a bit too cryptic
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 15 Apr 2010 07:14:46 +0000 (17:14 +1000)]
s4-net: nicer error message (and no exception)
in net newuser and net setpasswd we shouldn't be throwing python
exceptions on normal user errors like unknown user
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 15 Apr 2010 07:13:37 +0000 (17:13 +1000)]
s4-test: added KRB5_CONFIG to selftest-vars.sh
Andrew Tridgell [Thu, 15 Apr 2010 06:25:50 +0000 (16:25 +1000)]
s4-test: check that a weak password is rejected by kpasswd
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>