samba.git
10 years agotalloc: there is no ambiguity when freeing a ptr with a null parent
Andrew Tridgell [Tue, 20 Apr 2010 05:30:57 +0000 (15:30 +1000)]
talloc: there is no ambiguity when freeing a ptr with a null parent

when a ptr has a single reference and a NULL parent, then
talloc_free(ptr) is not ambiguous, as the caller could not have done a
talloc_free(NULL) to free the memory

Pair-Programmed-With: Rusty Russell <rusty@samba.org>

10 years agotdb: update tdb ABI to use hide_symbols=True
Andrew Tridgell [Tue, 20 Apr 2010 03:53:35 +0000 (13:53 +1000)]
tdb: update tdb ABI to use hide_symbols=True

We now use -fvisibilty=hidden to hide symbols from outside the tdb
shared library.

This also moved tdb_transaction_recover() into the tdb_private.h
header, as it should never have been a public API. For that reason we
are changing the version number. We're only doing a minor version
increment as it is extremely unlikely that anyone was actually using
tdb_transaction_recover() as its locking requirements were rather
unusual.

Pair-Programmed-With: Rusty Russell <rusty@samba.org>

10 years agobuild: include uninitialised data in the ABI symbols
Andrew Tridgell [Tue, 20 Apr 2010 03:51:16 +0000 (13:51 +1000)]
build: include uninitialised data in the ABI symbols

This is needed for symbols like tdb_null in tdb, which are part
of the public ABI

Pair-Programmed-With: Rusty Russell <rusty@samba.org>

10 years agobuild: quote cross-answer strings
Andrew Tridgell [Tue, 20 Apr 2010 02:51:43 +0000 (12:51 +1000)]
build: quote cross-answer strings

This allows for spaces and special characters in cross-answers

10 years agobuild: allow "waf --abi-check" to force a re-check of the ABI
Andrew Tridgell [Tue, 20 Apr 2010 02:49:50 +0000 (12:49 +1000)]
build: allow "waf --abi-check" to force a re-check of the ABI

10 years agos4:provisionbackend Print the command we failed to start slapd with
Andrew Bartlett [Tue, 20 Apr 2010 04:24:22 +0000 (14:24 +1000)]
s4:provisionbackend Print the command we failed to start slapd with

This makes it easier to put failed startups into a debugger.

Andrew Bartlett

10 years agos4:provision Pass in the invoication ID and NTDS Settings DN to Schema()
Andrew Bartlett [Tue, 20 Apr 2010 01:48:51 +0000 (11:48 +1000)]
s4:provision Pass in the invoication ID and NTDS Settings DN to Schema()

By putting these values into the cache on the LDB, this reduces some
of the noise in provision, particularly with the LDAP backend.

Andrew Bartlett

10 years agoNow SMB2 error messages are correctly being returned with the 1 byte data area, smbd_...
Jeremy Allison [Mon, 19 Apr 2010 21:32:08 +0000 (14:32 -0700)]
Now SMB2 error messages are correctly being returned with the 1 byte data area, smbd_smb2_request_error_ex() must call smbd_smb2_request_done_ex() in order to do the padding correctly on compound replies.

Jeremy.

10 years agoEnsure vectors are always allocated with consistent size. Removes one byte alloc...
Jeremy Allison [Mon, 19 Apr 2010 20:43:42 +0000 (13:43 -0700)]
Ensure vectors are always allocated with consistent size. Removes one byte alloc on SMB2 error packet. Always use talloc_zero_array on out vectors - fixes valgrind errors in tevent writes.

Jeremy.

10 years agoFix valgrind error where a strdup of name reads one byte beyond the end. Ensure buffe...
Jeremy Allison [Mon, 19 Apr 2010 20:42:55 +0000 (13:42 -0700)]
Fix valgrind error where a strdup of name reads one byte beyond the end. Ensure buffer returned from inotify is null terminated.

Jeremy.

10 years agoRemoved more excess looping and fixed problem with incorrect IO flag handling.
Nadezhda Ivanova [Mon, 19 Apr 2010 21:23:42 +0000 (00:23 +0300)]
Removed more excess looping and fixed problem with incorrect IO flag handling.

10 years agoRemove an unused auto variable.
Jeremy Allison [Mon, 19 Apr 2010 18:38:49 +0000 (11:38 -0700)]
Remove an unused auto variable.

Jeremy.

10 years agolibwbclient: wbcFreeMemory deals fine with a NULL pointer
Volker Lendecke [Mon, 19 Apr 2010 13:56:30 +0000 (15:56 +0200)]
libwbclient: wbcFreeMemory deals fine with a NULL pointer

10 years agolibwbclient: Fix wbcListGroups against too small num_entries
Volker Lendecke [Mon, 19 Apr 2010 13:50:11 +0000 (15:50 +0200)]
libwbclient: Fix wbcListGroups against too small num_entries

Thanks for the s4 winbind sending 0 here and Tridge to point it out to me :-)

10 years agolibwbclient: Fix wbcListUsers against too small num_entries
Volker Lendecke [Mon, 19 Apr 2010 13:50:11 +0000 (15:50 +0200)]
libwbclient: Fix wbcListUsers against too small num_entries

Thanks for the s4 winbind sending 0 here and Tridge to point it out to me :-)

10 years agos4:winbind: fill response.data.num_entries for WINBINDD_LIST_USERS
Stefan Metzmacher [Mon, 19 Apr 2010 14:08:59 +0000 (16:08 +0200)]
s4:winbind: fill response.data.num_entries for WINBINDD_LIST_USERS

metze

10 years agos4:winbind: fill response.data.num_entries for WINBINDD_LIST_GROUPS
Stefan Metzmacher [Mon, 19 Apr 2010 14:08:41 +0000 (16:08 +0200)]
s4:winbind: fill response.data.num_entries for WINBINDD_LIST_GROUPS

metze

10 years agos4:winbind: fill response.data.num_entries for WINBINDD_LIST_TRUSTDOM
Stefan Metzmacher [Mon, 19 Apr 2010 14:07:28 +0000 (16:07 +0200)]
s4:winbind: fill response.data.num_entries for WINBINDD_LIST_TRUSTDOM

metze

10 years agos3: Remove a leftover of my lua experiments
Volker Lendecke [Mon, 19 Apr 2010 13:24:59 +0000 (15:24 +0200)]
s3: Remove a leftover of my lua experiments

10 years agos3: Move the in-memory ccache to the parent
Volker Lendecke [Sun, 18 Apr 2010 12:14:43 +0000 (14:14 +0200)]
s3: Move the in-memory ccache to the parent

None of this blocks, so there is no reason to keep this in
a winbind child process

10 years agonsswitch: Add wbinfo --pam-logon
Volker Lendecke [Sun, 18 Apr 2010 12:10:35 +0000 (14:10 +0200)]
nsswitch: Add wbinfo --pam-logon

This does a wbcLogonUser with credential caching

10 years agos3: Test for wb ccache access by smbclient
Volker Lendecke [Sat, 17 Apr 2010 19:31:57 +0000 (21:31 +0200)]
s3: Test for wb ccache access by smbclient

10 years agolibwbclient: remove async libwbclient and talloc from libwbclient.so
Volker Lendecke [Sun, 4 Apr 2010 13:15:00 +0000 (15:15 +0200)]
libwbclient: remove async libwbclient and talloc from libwbclient.so

Except for tests there is right now no active user of this. We can easily
re-add this when smbd makes more use of it.

10 years agolibwbclient does not need talloc_free anymore
Volker Lendecke [Sun, 4 Apr 2010 12:20:15 +0000 (14:20 +0200)]
libwbclient does not need talloc_free anymore

10 years agolibwbclient: Make wbcListTrusts not use talloc
Volker Lendecke [Sat, 3 Apr 2010 20:11:08 +0000 (22:11 +0200)]
libwbclient: Make wbcListTrusts not use talloc

10 years agolibwbclient: Make wbc_create_error_info not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:52:08 +0000 (14:52 +0200)]
libwbclient: Make wbc_create_error_info not use talloc

10 years agolibwbclient: Make wbcCredentialCache not use talloc
Volker Lendecke [Sun, 4 Apr 2010 12:01:23 +0000 (14:01 +0200)]
libwbclient: Make wbcCredentialCache not use talloc

10 years agolibwbclient: Make wbcAuthenticateUserEx not use talloc
Volker Lendecke [Sun, 4 Apr 2010 09:58:04 +0000 (11:58 +0200)]
libwbclient: Make wbcAuthenticateUserEx not use talloc

10 years agolibwbclient: Make wbc_create_logon_info not use talloc
Volker Lendecke [Sun, 4 Apr 2010 09:57:39 +0000 (11:57 +0200)]
libwbclient: Make wbc_create_logon_info not use talloc

10 years agolibwbclient: Make wbc_create_auth_info not use talloc
Volker Lendecke [Sat, 3 Apr 2010 21:08:20 +0000 (23:08 +0200)]
libwbclient: Make wbc_create_auth_info not use talloc

10 years agolibwbclient: Make wbc_create_password_policy_info not use talloc
Volker Lendecke [Sat, 3 Apr 2010 20:22:17 +0000 (22:22 +0200)]
libwbclient: Make wbc_create_password_policy_info not use talloc

10 years agolibwbclient: Test wbcGetGroups
Volker Lendecke [Sat, 17 Apr 2010 18:16:14 +0000 (20:16 +0200)]
libwbclient: Test wbcGetGroups

10 years agolibwbclient: Make wbcGetGroups not use talloc
Volker Lendecke [Sat, 3 Apr 2010 20:20:04 +0000 (22:20 +0200)]
libwbclient: Make wbcGetGroups not use talloc

10 years agolibwbclient: Make wbc_create_domain_controller_info_ex not use talloc
Volker Lendecke [Sat, 3 Apr 2010 17:57:48 +0000 (19:57 +0200)]
libwbclient: Make wbc_create_domain_controller_info_ex not use talloc

10 years agolibwbclient: Make wbcLookupDomainController not use talloc
Volker Lendecke [Sat, 17 Apr 2010 17:57:11 +0000 (19:57 +0200)]
libwbclient: Make wbcLookupDomainController not use talloc

10 years agolibwbclient: Make wbcLookupUserSids not use talloc
Volker Lendecke [Sat, 3 Apr 2010 11:45:36 +0000 (13:45 +0200)]
libwbclient: Make wbcLookupUserSids not use talloc

10 years agos3: Change the make test password to "testPw"
Volker Lendecke [Sat, 17 Apr 2010 13:51:27 +0000 (15:51 +0200)]
s3: Change the make test password to "testPw"

This way we can change back to it when testing testing wbcChangeUserPassword,
"test" is too short (<5 chars)

10 years agolibwbclient: Test wbcChangeUserPassword
Volker Lendecke [Sat, 17 Apr 2010 13:50:31 +0000 (15:50 +0200)]
libwbclient: Test wbcChangeUserPassword

10 years agolibwbclient: Abstract out test_wbc_authenticate_user for reuse
Volker Lendecke [Sat, 17 Apr 2010 12:05:57 +0000 (14:05 +0200)]
libwbclient: Abstract out test_wbc_authenticate_user for reuse

10 years agos3-winbind: Allow changing the password for pdb
Volker Lendecke [Fri, 16 Apr 2010 14:28:05 +0000 (16:28 +0200)]
s3-winbind: Allow changing the password for pdb

10 years agos3: Convert WINBINDD_PAM_LOGOFF to the new async API
Volker Lendecke [Thu, 1 Apr 2010 14:44:16 +0000 (16:44 +0200)]
s3: Convert WINBINDD_PAM_LOGOFF to the new async API

10 years agos3: Convert WINBINDD_PAM_CHAUTHTOK to the new async API
Volker Lendecke [Thu, 1 Apr 2010 10:35:14 +0000 (12:35 +0200)]
s3: Convert WINBINDD_PAM_CHAUTHTOK to the new async API

10 years agos3: Convert WINBINDD_PAM_AUTH_CRAP to the new async API
Volker Lendecke [Tue, 30 Mar 2010 21:02:36 +0000 (23:02 +0200)]
s3: Convert WINBINDD_PAM_AUTH_CRAP to the new async API

10 years agos3: Convert WINBINDD_PAM_AUTH to the new async API
Volker Lendecke [Mon, 29 Mar 2010 15:52:38 +0000 (17:52 +0200)]
s3: Convert WINBINDD_PAM_AUTH to the new async API

10 years agolibwbclient: Test wbcLogonUser
Volker Lendecke [Tue, 13 Apr 2010 20:52:17 +0000 (22:52 +0200)]
libwbclient: Test wbcLogonUser

10 years agolibwbclient: Make wbcAddNamedBlob not use talloc
Volker Lendecke [Sat, 3 Apr 2010 17:50:25 +0000 (19:50 +0200)]
libwbclient: Make wbcAddNamedBlob not use talloc

10 years agolibwbclient: Make wbcResolveWinsByIP not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:03:49 +0000 (15:03 +0200)]
libwbclient: Make wbcResolveWinsByIP not use talloc

10 years agolibwbclient: Make wbcResolveWinsByName not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:03:20 +0000 (15:03 +0200)]
libwbclient: Make wbcResolveWinsByName not use talloc

10 years agolibwbclient: Make wbcDomainInfo not use talloc
Volker Lendecke [Sat, 3 Apr 2010 13:02:40 +0000 (15:02 +0200)]
libwbclient: Make wbcDomainInfo not use talloc

10 years agolibwbclient: Make wbcInterfaceDetails not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:59:07 +0000 (14:59 +0200)]
libwbclient: Make wbcInterfaceDetails not use talloc

10 years agolibwbclient: Test wbcAuthenticateUser[Ex]
Volker Lendecke [Sun, 4 Apr 2010 19:38:38 +0000 (21:38 +0200)]
libwbclient: Test wbcAuthenticateUser[Ex]

10 years agolibwbclient: Make _SID_COMPOSE a function instead of a macro
Volker Lendecke [Sat, 3 Apr 2010 12:46:11 +0000 (14:46 +0200)]
libwbclient: Make _SID_COMPOSE a function instead of a macro

10 years agolibwbclient: Make wbcGetDisplayName not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:33:17 +0000 (14:33 +0200)]
libwbclient: Make wbcGetDisplayName not use talloc

10 years agolibwbclient: Test wbcGetDisplayName
Volker Lendecke [Sat, 10 Apr 2010 14:36:22 +0000 (16:36 +0200)]
libwbclient: Test wbcGetDisplayName

10 years agolibwbclient: Make wbcListGroups not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:31:57 +0000 (14:31 +0200)]
libwbclient: Make wbcListGroups not use talloc

10 years agolibwbclient: Make wbcListUsers not use talloc
Volker Lendecke [Sat, 3 Apr 2010 12:26:22 +0000 (14:26 +0200)]
libwbclient: Make wbcListUsers not use talloc

10 years agowinbindd: Fill in num_entries where available
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.

10 years agolibwbclient: Make wbcGetSidAliases not use talloc
Volker Lendecke [Sat, 10 Apr 2010 10:58:14 +0000 (12:58 +0200)]
libwbclient: Make wbcGetSidAliases not use talloc

10 years agos3: Add some debug to GETSIDALIASES
Volker Lendecke [Sat, 10 Apr 2010 13:59:22 +0000 (15:59 +0200)]
s3: Add some debug to GETSIDALIASES

10 years agolibwbclient: Test wbcGetSidAliases
Volker Lendecke [Sat, 10 Apr 2010 13:53:07 +0000 (15:53 +0200)]
libwbclient: Test wbcGetSidAliases

10 years agolibwbclient: Simplify test_wbc_domain_info a bit
Volker Lendecke [Sat, 10 Apr 2010 13:36:01 +0000 (15:36 +0200)]
libwbclient: Simplify test_wbc_domain_info a bit

10 years agolibwbclient: Fix some pointless macro calls
Volker Lendecke [Sat, 10 Apr 2010 13:28:42 +0000 (15:28 +0200)]
libwbclient: Fix some pointless macro calls

10 years agolibwbclient: Take -21 into account in length guessing
Volker Lendecke [Sat, 10 Apr 2010 10:57:13 +0000 (12:57 +0200)]
libwbclient: Take -21 into account in length guessing

10 years agolibwbclient: Fix some pointless macro calls
Volker Lendecke [Sat, 3 Apr 2010 11:45:20 +0000 (13:45 +0200)]
libwbclient: Fix some pointless macro calls

10 years agolibwbclient: Make wbcLookupRids not use talloc
Volker Lendecke [Sat, 3 Apr 2010 11:44:49 +0000 (13:44 +0200)]
libwbclient: Make wbcLookupRids not use talloc

10 years agolibwbclient: Add wbcAllocateStringArray
Volker Lendecke [Sat, 3 Apr 2010 11:37:01 +0000 (13:37 +0200)]
libwbclient: Add wbcAllocateStringArray

10 years agolibwbclient: Test wbcLookupRids
Volker Lendecke [Sun, 4 Apr 2010 20:52:53 +0000 (22:52 +0200)]
libwbclient: Test wbcLookupRids

10 years agolibwbclient: Make wbcLookupSid not use talloc
Volker Lendecke [Sat, 3 Apr 2010 10:01:43 +0000 (12:01 +0200)]
libwbclient: Make wbcLookupSid not use talloc

10 years agolibwbclient: Add wbcStrDup
Volker Lendecke [Sat, 3 Apr 2010 09:59:29 +0000 (11:59 +0200)]
libwbclient: Add wbcStrDup

10 years agolibwbclient: Convert wbcSidToString to not use talloc
Volker Lendecke [Sat, 3 Apr 2010 09:14:23 +0000 (11:14 +0200)]
libwbclient: Convert wbcSidToString to not use talloc

10 years agolibwbclient: Make copy_group_entry not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:16:32 +0000 (22:16 +0200)]
libwbclient: Make copy_group_entry not use talloc

10 years agolibwbclient: Make copy_passwd_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

10 years agolibwbclient: Make wbcGuidToString not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:14:39 +0000 (22:14 +0200)]
libwbclient: Make wbcGuidToString not use talloc

10 years agolibwbclient: Make wbcLibraryDetails not use talloc
Volker Lendecke [Tue, 6 Apr 2010 20:14:03 +0000 (22:14 +0200)]
libwbclient: Make wbcLibraryDetails not use talloc

10 years agolibwbclient: Add wbcAllocateMemory()
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.

10 years agos4-waf: follow the configure directories for the empty install dirs
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

10 years agobuild: update waf from svn
Andrew Tridgell [Mon, 19 Apr 2010 11:00:51 +0000 (21:00 +1000)]
build: update waf from svn

this adds bld.install_dir()

10 years agos4-waf: install some missing empty directories
Andrew Tridgell [Mon, 19 Apr 2010 11:00:36 +0000 (21:00 +1000)]
s4-waf: install some missing empty directories

10 years agobuild: make compare_install.sh also check for missing 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

10 years agos3-smb2: fix some c++ warnings.
Günther Deschner [Mon, 19 Apr 2010 09:53:11 +0000 (11:53 +0200)]
s3-smb2: fix some c++ warnings.

Guenther

10 years agos3-spoolss: fix samr_ValidatePassword_Change.
Günther Deschner [Mon, 19 Apr 2010 09:46:03 +0000 (11:46 +0200)]
s3-spoolss: fix samr_ValidatePassword_Change.

Guenther

10 years agospoolss: move up enum spoolss_Build in the IDL.
Günther Deschner [Mon, 19 Apr 2010 09:45:33 +0000 (11:45 +0200)]
spoolss: move up enum spoolss_Build in the IDL.

Guenther

10 years agos3-lanman: use spoolss for api_WPrintJobGetInfo().
Günther Deschner [Fri, 9 Apr 2010 23:44:08 +0000 (01:44 +0200)]
s3-lanman: use spoolss for api_WPrintJobGetInfo().

Guenther

10 years agos3-lanman: use spoolss for api_WPrintJobEnumerate().
Günther Deschner [Fri, 9 Apr 2010 23:33:37 +0000 (01:33 +0200)]
s3-lanman: use spoolss for api_WPrintJobEnumerate().

Guenther

10 years agos3: re-run make samba3-idl.
Günther Deschner [Tue, 13 Apr 2010 21:51:36 +0000 (23:51 +0200)]
s3: re-run make samba3-idl.

Guenther

10 years agospoolss: make spoolss_SetPrinterInfo0 match changes in spoolss_PrinterInfo0.
Günther Deschner [Tue, 13 Apr 2010 21:50:58 +0000 (23:50 +0200)]
spoolss: make spoolss_SetPrinterInfo0 match changes in spoolss_PrinterInfo0.

Guenther

10 years agos4-waf: fixed WINBINDD_SOCKET_DIR for wb_common in s4
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

10 years agos4-test: we don't need -s set for samba_dnsupdate
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>

10 years agos4-dns: use neater python for reading lines
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

10 years agos4-param: set SMB_CONF_PATH when we load a smb.conf
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>

10 years agoruncmd: use tevent_re_initialise() to close sockets
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

10 years agos3 i18n: Fix up missing newlines in more pam_winbind translations
Kai Blin [Mon, 19 Apr 2010 07:27:50 +0000 (09:27 +0200)]
s3 i18n: Fix up missing newlines in more pam_winbind translations

10 years agos3 i18n: Fix up missing newlines in 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.

10 years agobuild: added --cross-answers support
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

10 years agos4-dev: expanded selftest-vars.sh to match current testenv
Andrew Tridgell [Mon, 19 Apr 2010 03:49:00 +0000 (13:49 +1000)]
s4-dev: expanded selftest-vars.sh to match current testenv

10 years agos4-python: PyErr_SetString() will crash on NULL strings
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

10 years agobuild: fixed a python-3 indent error
Andrew Tridgell [Mon, 19 Apr 2010 03:43:12 +0000 (13:43 +1000)]
build: fixed a python-3 indent error

10 years agobuild: expanded testwaf to include cross-compiling and python versions
Andrew Tridgell [Mon, 19 Apr 2010 03:42:53 +0000 (13:42 +1000)]
build: expanded testwaf to include cross-compiling and python versions

10 years agoFinal fix for #7331 - Compound async SMB 2 requests don't work right.
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.

10 years agos3: Fix indentation in remove_ccache
Volker Lendecke [Sat, 17 Apr 2010 19:39:09 +0000 (21:39 +0200)]
s3: Fix indentation in remove_ccache