samba.git
14 years agoFix map readonly in smb.conf, it is a single word
Simo Sorce [Wed, 28 Oct 2009 23:10:08 +0000 (19:10 -0400)]
Fix map readonly in smb.conf, it is a single word

14 years agoAdd in Metze's new code to ndr encode the user.DOSATTRIB
Stefan (metze) Metzmacher [Wed, 28 Oct 2009 22:42:47 +0000 (15:42 -0700)]
Add in Metze's new code to ndr encode the user.DOSATTRIB
blobs. Next I'll change the create timestamp and dos attribute
code to use this.

14 years agos3:Makefile: rename LDSHFLAG variables to make meaning more obvious
Björn Jacke [Wed, 28 Oct 2009 20:37:08 +0000 (21:37 +0100)]
s3:Makefile: rename LDSHFLAG variables to make meaning more obvious

14 years agos3:net: simplify padding to single printf call
Björn Jacke [Tue, 13 Oct 2009 22:22:08 +0000 (00:22 +0200)]
s3:net: simplify padding to single printf call

14 years agos3:net simplify padding to single printf call
Björn Jacke [Tue, 13 Oct 2009 22:19:35 +0000 (00:19 +0200)]
s3:net simplify padding to single printf call

14 years agos3:net: fix output of net rpc trustdom list
Björn Jacke [Wed, 28 Oct 2009 13:33:40 +0000 (14:33 +0100)]
s3:net: fix output of net rpc trustdom list

Move some messages from stderr to stdout. When some trusting DCs were
unreachable we lacked \n's on stdout which screwed up whole the output.

14 years agoFix bug 6572 - libsmbclient: unable to access 'msdfs proxy' share.
SATOH Fumiyasu [Wed, 28 Oct 2009 19:48:36 +0000 (12:48 -0700)]
Fix bug 6572 - libsmbclient: unable to access 'msdfs proxy' share.

14 years agos3/docs: Document new pdbedit -K option.
Karolin Seeger [Tue, 27 Oct 2009 15:04:35 +0000 (16:04 +0100)]
s3/docs: Document new pdbedit -K option.

Karolin
(cherry picked from commit 354038f170f2541318336aa72c9f2a0426c6607e)

14 years agos3: pdbedit: add option --kickoff-time/-K to set the user's kickoff time
Michael Adam [Mon, 26 Oct 2009 15:07:58 +0000 (16:07 +0100)]
s3: pdbedit: add option --kickoff-time/-K to set the user's kickoff time

Use "never" as argument to set this to unlimited.

Michael
(cherry picked from commit 8fdef14305ae1e32d61c80cb10859d41c5754023)

14 years agoSecond part of the fix for bug 6828 - infinite timeout occurs when byte lock held...
Jeremy Allison [Tue, 27 Oct 2009 04:20:22 +0000 (21:20 -0700)]
Second part of the fix for bug 6828 - infinite timeout occurs when byte lock held outside of samba.
Fixes case where a connection with a pending lock can me marked "idle", and ensures
that the lock queue timeout is always recalculated.
Jeremy.

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Mon, 26 Oct 2009 11:16:31 +0000 (12:16 +0100)]
WHATSNEW: Update changes.

Karolin

14 years agos3: Rename new parameter "ldap ref follow" to "ldap follow referral".
Karolin Seeger [Mon, 26 Oct 2009 11:11:59 +0000 (12:11 +0100)]
s3: Rename new parameter "ldap ref follow" to "ldap follow referral".

This parameter will be introduced with Samba 3.5.0.

Karolin
(cherry picked from commit f381faa8d6fc2c4205e7d59c91f00324f70ca8b9)

14 years agos3:docs: Public is not a synonym for access based shareenum.
Karolin Seeger [Mon, 26 Oct 2009 09:14:51 +0000 (10:14 +0100)]
s3:docs: Public is not a synonym for access based shareenum.

Fix build warning.

Karolin
(cherry picked from commit 35dc481289c28a77f354dd76193d6298de32c66d)

14 years agoWHATSNEW: Update release notes.
Karolin Seeger [Mon, 26 Oct 2009 08:49:38 +0000 (09:49 +0100)]
WHATSNEW: Update release notes.

Karolin

14 years agos3:docs: fake dir create times is a global parameter.
Karolin Seeger [Mon, 26 Oct 2009 08:33:37 +0000 (09:33 +0100)]
s3:docs: fake dir create times is a global parameter.

Karolin
(cherry picked from commit 02dd89520215c88c3c90a91a6a6aac8ba412803a)

14 years agotdb: detect tdb store of identical records and skip
Andrew Tridgell [Fri, 23 Oct 2009 11:45:03 +0000 (22:45 +1100)]
tdb: detect tdb store of identical records and skip

This can help with ldb where we rewrite the index records

14 years agotdb: rename 'struct list_struct' into 'struct tdb_record'
Stefan Metzmacher [Fri, 23 Oct 2009 11:51:03 +0000 (13:51 +0200)]
tdb: rename 'struct list_struct' into 'struct tdb_record'

metze

14 years agolib/tdb: make tdbtool use tdb_check() for "check" command
Rusty Russell [Wed, 21 Oct 2009 13:41:34 +0000 (00:11 +1030)]
lib/tdb: make tdbtool use tdb_check() for "check" command

Also, set logging function so we get more informative messages.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 years agolib/tdb: add tdb_check()
Rusty Russell [Wed, 21 Oct 2009 13:40:34 +0000 (00:10 +1030)]
lib/tdb: add tdb_check()

ctdb wants a quick way to detect corrupt tdbs; particularly, tdbs with
loops in their hash chains.  tdb_check() provides this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 years agolib/tdb: add -t (always use transactions) option to tdbtorture
Rusty Russell [Wed, 21 Oct 2009 13:40:54 +0000 (00:10 +1030)]
lib/tdb: add -t (always use transactions) option to tdbtorture

This means you can kill it at any time and expect no corruption.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 years agolib/tdb: wean off TDB_ERRCODE.
Rusty Russell [Wed, 21 Oct 2009 13:39:43 +0000 (00:09 +1030)]
lib/tdb: wean off TDB_ERRCODE.

It was a regrettable hack which I used to reduce line count in tdb; in fact it caused confusion as can be seen in this patch.
In particular, ecode now needs to be set before TDB_LOG anyway, and having it exposed in
the header is useless (the struct tdb_context isn't defined, so it's doubly useless).
Also, we should never set errno, as io.c was doing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 years agolib/tdb: TDB_TRACE support (for developers)
Rusty Russell [Tue, 20 Oct 2009 01:49:41 +0000 (12:19 +1030)]
lib/tdb: TDB_TRACE support (for developers)

When TDB_TRACE is defined (in tdb_private.h), verbose tracing of tdb operations is enabled.
This can be replayed using "replay_trace" from http://ccan.ozlabs.org/info/tdb.

The majority of this patch comes from moving internal functions to _<funcname> to
avoid double-tracing.  There should be no additional overhead for the normal (!TDB_TRACE)
case.

Note that the verbose traces compress really well with rzip.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 years agos3:Makefile: add some explicit dependencies to libc
Björn Jacke [Fri, 23 Oct 2009 19:07:08 +0000 (12:07 -0700)]
s3:Makefile: add some explicit dependencies to libc

Add libc as explicit dependency where we use "-z defs" linker flags. This is
to silence the Sun linker. Otherwise it whines:

malloc  ... (symbol belongs to implicit dependency /lib/libc.so.1)

14 years agoFix bug 6802 - A created folder does not properly inherit permissions from parent.
Barry Sabsevitz [Fri, 23 Oct 2009 18:50:29 +0000 (11:50 -0700)]
Fix bug 6802 - A created folder does not properly inherit permissions from parent.

14 years agos4-torture: fixed double free in libnet_group test
Andrew Tridgell [Thu, 22 Oct 2009 07:45:43 +0000 (18:45 +1100)]
s4-torture: fixed double free in libnet_group test

14 years agoutil: fixed place where we could look one byte past end of string
Andrew Tridgell [Thu, 22 Oct 2009 00:03:27 +0000 (11:03 +1100)]
util: fixed place where we could look one byte past end of string

We need to check the length before the value

14 years agos3: Fix crash in pam_winbind, another reference to freed memory.
Bo Yang [Sat, 24 Oct 2009 01:20:00 +0000 (09:20 +0800)]
s3: Fix crash in pam_winbind, another reference to freed memory.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit b9a3f1dd85d168c15df846dba525f4f882d1acf8)

14 years agoSimplify the logic.
Jeremy Allison [Thu, 22 Oct 2009 22:26:22 +0000 (15:26 -0700)]
Simplify the logic.
Jeremy.

14 years agoFix bug 6829 - smbclient does not show special characters properly.
Jeremy Allison [Thu, 22 Oct 2009 22:06:38 +0000 (15:06 -0700)]
Fix bug 6829 - smbclient does not show special characters properly.
All successful calls to cli_session_setup() *must* be followed by
calls to cli_init_creds() to stash the credentials we successfully
connected with. There were 2 codepaths where this was missing. This
caused smbclient to be unable to open the \srvsvc pipe to do an RPC
netserverenum, and cause it to fall back to a RAP netserverenum,
which uses DOS codepage conversion rather than the full UCS2 of
RPC, so the returned characters were not correct (unless the DOS
codepage was set correctly). Phew. That was fun to track down :-).
Jeremy.

14 years agos4-torture: catch bad command line options
Andrew Tridgell [Thu, 15 Oct 2009 07:27:57 +0000 (18:27 +1100)]
s4-torture: catch bad command line options

It is annoying when you mistype a command line option and aren't told.

14 years agos4-torture: fixed a pipe leak
Andrew Tridgell [Tue, 20 Oct 2009 05:34:42 +0000 (16:34 +1100)]
s4-torture: fixed a pipe leak

The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server

14 years agos4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test
Andrew Tridgell [Tue, 20 Oct 2009 03:27:57 +0000 (14:27 +1100)]
s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test

This test left a large number of lsa pipes open, which could trigger
the server running out of fds

14 years agos4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.
Günther Deschner [Wed, 21 Oct 2009 00:18:54 +0000 (02:18 +0200)]
s4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.

Found by RPC-LSA-TRUSTED-DOMAIN torture test.

Guenther
(cherry picked from commit 4b6cfbb6d27eea07400d0eacb08b2f69724b19ca)

14 years agos3-lsa: Fix _lsa_EnumTrustDom() and avoid infite windows client loop.
Günther Deschner [Wed, 21 Oct 2009 00:17:32 +0000 (02:17 +0200)]
s3-lsa: Fix _lsa_EnumTrustDom() and avoid infite windows client loop.

Found by RPC-LSA-TRUSTED-DOMAIN torture test.

Guenther
(cherry picked from commit 209a65bc6f783055f3f6a8cea3fb36587d346511)

14 years agos4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.
Günther Deschner [Wed, 21 Oct 2009 00:16:32 +0000 (02:16 +0200)]
s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.

Guenther
(cherry picked from commit 48520b2274638bde88b08361197c1056936bcba0)

14 years agos3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.
Günther Deschner [Wed, 21 Oct 2009 00:45:21 +0000 (02:45 +0200)]
s3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.

Do what W2k8 does and return the builtin domain for a NULL name.

Guenther
(cherry picked from commit 32f2cc448778ec6eeab8bbd42d459f7e57b188ac)

14 years agonsswitch: fix the build of the winbind krb5 locator plugin.
Günther Deschner [Wed, 21 Oct 2009 00:44:44 +0000 (02:44 +0200)]
nsswitch: fix the build of the winbind krb5 locator plugin.

Guenther
(cherry picked from commit b9d9353b548d9b2ab684aa171f511174e6414762)

14 years agos4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.
Günther Deschner [Tue, 20 Oct 2009 21:47:40 +0000 (23:47 +0200)]
s4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.

Make sure to split out lsa_LookupName NULL name test so that we can better track
results from bogus names and NULL names.

Guenther
(cherry picked from commit a4d54875768bbe6bcd019a788081d182ce9d4a80)

14 years agoTurn on LOCK9 test which will test for regressions in bug 6828.
Jeremy Allison [Wed, 21 Oct 2009 00:53:06 +0000 (17:53 -0700)]
Turn on LOCK9 test which will test for regressions in bug 6828.
Jeremy.

14 years agoFix bug 6828 - infinite timeout occurs when byte lock held outside of samba
Jeremy Allison [Wed, 21 Oct 2009 00:52:34 +0000 (17:52 -0700)]
Fix bug 6828 - infinite timeout occurs when byte lock held outside of samba
Jeremy.

14 years agoFix comments on new test.
Jeremy Allison [Wed, 21 Oct 2009 00:41:27 +0000 (17:41 -0700)]
Fix comments on new test.
Jeremy

14 years agoAdd local (or NFS) lock test to smbtorture. Checks that local locks
Jeremy Allison [Wed, 21 Oct 2009 00:37:43 +0000 (17:37 -0700)]
Add local (or NFS) lock test to smbtorture. Checks that local locks
conflict with CIFS locks (see bug 6868).
Jeremy.

14 years agoFix "make install" by removing all references to python. Not currently
Jeremy Allison [Tue, 20 Oct 2009 20:42:28 +0000 (13:42 -0700)]
Fix "make install" by removing all references to python. Not currently
needed in source3, and isn't working anyway.
Jeremy.

14 years agoRemove pythonmods from the build in source3, it doesn't build anyway
Jeremy Allison [Tue, 20 Oct 2009 20:28:05 +0000 (13:28 -0700)]
Remove pythonmods from the build in source3, it doesn't build anyway
and isn't needed (as far as I can tell).
Jeremy.

14 years agoFix the pam_smbpass.so build with the recent linker flag changes.
Jeremy Allison [Tue, 20 Oct 2009 20:09:42 +0000 (13:09 -0700)]
Fix the pam_smbpass.so build with the recent linker flag changes.
Jeremy.

14 years agos4-smbtorture: Make it simpler to specify number of trusted domains to create in
Günther Deschner [Tue, 20 Oct 2009 16:34:09 +0000 (18:34 +0200)]
s4-smbtorture: Make it simpler to specify number of trusted domains to create in
RPC-LSA-TRUSTED-DOMAINS.

Guenther
(cherry picked from commit 9ee5d8466513a957128fcf511529fcd76fa3f05b)

14 years agos3-lsa: Fix _lsa_EnumTrustDom().
Günther Deschner [Tue, 20 Oct 2009 16:35:49 +0000 (18:35 +0200)]
s3-lsa: Fix _lsa_EnumTrustDom().

Windows clients were showing a lot of duplicates in their list of trusted
domains.

Found by RPC-LSA-TRUSTED-DOMAIN torture test.

Guenther
(cherry picked from commit 49a13234957ad241e6457bbf0edc15875321f03f)

14 years agos3-pdb_ldap: fix crash bug in ldapsam_set_trusteddom_pw().
Günther Deschner [Tue, 20 Oct 2009 16:35:16 +0000 (18:35 +0200)]
s3-pdb_ldap: fix crash bug in ldapsam_set_trusteddom_pw().

Thanks Volker for the hint.

Guenther
(cherry picked from commit d168d7fe3c7ec4b90cd526c4ea02e972ffac7835)

14 years agos3-lsa: Fix _lsa_CreateAccount() for usage of SEC_FLAG_MAXIMUM_ALLOWED.
Günther Deschner [Tue, 20 Oct 2009 13:54:40 +0000 (15:54 +0200)]
s3-lsa: Fix _lsa_CreateAccount() for usage of SEC_FLAG_MAXIMUM_ALLOWED.

Found by RPC-LSA-PRIVILEGES torture test.

Guenther
(cherry picked from commit a5a7b9ebc220b6477c987fe5552561c41e9d1b85)

14 years agos3-selftest: enable RPC-LSA-PRIVILEGES against Samba 3.
Günther Deschner [Thu, 16 Jul 2009 16:46:10 +0000 (18:46 +0200)]
s3-selftest: enable RPC-LSA-PRIVILEGES against Samba 3.

Guenther
(cherry picked from commit 870f2d336a57f16ed5f1018ced6fa4ef5d61539c)

14 years agos4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.
Günther Deschner [Tue, 20 Oct 2009 13:09:32 +0000 (15:09 +0200)]
s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.

Guenther
(cherry picked from commit 7e180101d3a460d30da7b5043034ef306913b2d1)

14 years agos4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.
Günther Deschner [Tue, 20 Oct 2009 10:59:49 +0000 (12:59 +0200)]
s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.

Guenther
(cherry picked from commit bf2746b537484a51b55a3000e4c34d08bd5aff7a)

14 years agos3-lsa: Allow to lookup 'NT AUTHORITY\Anonymous Logon' as well.
Günther Deschner [Tue, 20 Oct 2009 13:15:06 +0000 (15:15 +0200)]
s3-lsa: Allow to lookup 'NT AUTHORITY\Anonymous Logon' as well.

This is to finally pass RPC-LSA-LOOKUPNAMES test.

Guenther
(cherry picked from commit c7023c5a3dc1644e9b8ae667f7f9d6d1dfe49bb1)

14 years agos3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.
Günther Deschner [Tue, 20 Oct 2009 13:13:56 +0000 (15:13 +0200)]
s3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.

Found by RPC-LSA-LOOKUPNAMES torture test.

Guenther
(cherry picked from commit 1f4d26c4870989c5a0aba773c97172f0c0185aba)

14 years agos3-lsa: When looking up domains in LookupNames, do not strip the sid.
Günther Deschner [Tue, 20 Oct 2009 13:12:58 +0000 (15:12 +0200)]
s3-lsa: When looking up domains in LookupNames, do not strip the sid.

Found by RPC-LSA-LOOKUPNAMES torture test.

Guenther
(cherry picked from commit 18dd62616028cf202f63a12c20d5e21e390451b6)

14 years agos3-lsa: allow to have NULL strings in lsa LookupName queries.
Günther Deschner [Tue, 20 Oct 2009 13:11:58 +0000 (15:11 +0200)]
s3-lsa: allow to have NULL strings in lsa LookupName queries.

Found by RPC-LSA-LOOKUPNAMES torture test.

Guenther
(cherry picked from commit b6d97a00b13fc338f6fef3c5587619821d86194c)

14 years agos4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.
Günther Deschner [Tue, 20 Oct 2009 13:00:55 +0000 (15:00 +0200)]
s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.

Guenther
(cherry picked from commit d76e77ce9a72543727ff83eacbefed22f0c644b9)

14 years agos4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.
Günther Deschner [Wed, 15 Jul 2009 22:52:28 +0000 (00:52 +0200)]
s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.

Guenther
(cherry picked from commit 80b512fe03e692f630375c39f84ae9f91f5b333a)

14 years agowbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.
Günther Deschner [Mon, 19 Oct 2009 14:54:37 +0000 (16:54 +0200)]
wbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.

Guenther
(cherry picked from commit 10bd52184959335d779aae52f9178c0441c70da9)

14 years agolibwbclient: fix wbcLookupDomainController().
Günther Deschner [Mon, 19 Oct 2009 14:55:15 +0000 (16:55 +0200)]
libwbclient: fix wbcLookupDomainController().

Found by WINBIND-WBCLIENT torture test.

Guenther
(cherry picked from commit 110a40d4bc043d2bb2316480e6ba66ece1bf04ad)

14 years agos4-smbtorture: test wbcLookupDomainController{Ex} in WINBIND-WBCLIENT.
Günther Deschner [Fri, 16 Oct 2009 11:39:24 +0000 (13:39 +0200)]
s4-smbtorture: test wbcLookupDomainController{Ex} in WINBIND-WBCLIENT.

Guenther
(cherry picked from commit 71cfbf958cbb26dcc050bab9fd05b38556128d4f)

14 years agogitignore: remove old netlogon prototypes.
Günther Deschner [Mon, 19 Oct 2009 16:41:15 +0000 (18:41 +0200)]
gitignore: remove old netlogon prototypes.

Guenther
(cherry picked from commit dbd03997e1af1e659507b1142f29d0463e8ad295)

14 years agos3:configure: add support for Solaris' ld -z ignore
Björn Jacke [Tue, 20 Oct 2009 06:01:52 +0000 (08:01 +0200)]
s3:configure: add support for Solaris' ld -z ignore

try linker flags for ignoring unused libs in this order:
-Wl,--as-needed (gcc like + binutils)
-Wl,-z,ignore (gcc like + Solaris linker)
-z ignore (old Sun C)

14 years agos3: make unresolved symbols in libs throw errors
Björn Jacke [Mon, 19 Oct 2009 23:13:56 +0000 (01:13 +0200)]
s3: make unresolved symbols in libs throw errors

except for the Samba internal plugins unresolved symbol references should not
show up in shared libraries. For historical reasons it's the default behaviour
of linkers to ignore those in shared libs. We use -z defs (alias
--no-undefined) to not ignore them in shared libs.

14 years agos3: allow using different LDFLAGS for internal libs/plugins
Björn Jacke [Sun, 18 Oct 2009 20:51:06 +0000 (22:51 +0200)]
s3: allow using different LDFLAGS for internal libs/plugins

internal libs have unresolved symbols intentionally.
Thanks to Buchan Milne for suggestion and patch. This addresses #6792.

14 years agos4-dsdb: fixed empty structure error on solaris8
Andrew Tridgell [Tue, 20 Oct 2009 02:00:12 +0000 (13:00 +1100)]
s4-dsdb: fixed empty structure error on solaris8

Nadya, I'm guessing you plan on adding some real elements to this
structure later. For now I've added _dummy so the build can continue
with the Solaris C compiler.

14 years agos4-idl: don't call a variable 'stat'
Andrew Tridgell [Tue, 20 Oct 2009 01:13:15 +0000 (12:13 +1100)]
s4-idl: don't call a variable 'stat'

never call a structure member by the name of a standard C lib call. It
breaks the build on some systems.

14 years agolib-util: check for too many combinations in generate_unique_strs()
Andrew Tridgell [Tue, 20 Oct 2009 00:34:49 +0000 (11:34 +1100)]
lib-util: check for too many combinations in generate_unique_strs()

14 years agotdb: fixed the intermittent failure of tdbtorture in the build farm
Andrew Tridgell [Mon, 19 Oct 2009 23:59:40 +0000 (10:59 +1100)]
tdb: fixed the intermittent failure of tdbtorture in the build farm

There was a race condition that caused the torture.tdb to be left in a
state that needed recovery. The torture code thought that any message
from the tdb code was an error, so the "recovered" message, which is a
TDB_DEBUG_TRACE message, marked the run as being an error when it
isn't.

14 years agoutil: fixed generate_unique_strs() to be portable
Andrew Tridgell [Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)]
util: fixed generate_unique_strs() to be portable

'place' was going negative, and giving undefined results. The result
was duplicate names which gave errors in SMB2-DIR on PPC and other
systems.

14 years agos4:test: Fix typo.
Karolin Seeger [Mon, 19 Oct 2009 08:40:15 +0000 (10:40 +0200)]
s4:test: Fix typo.

Karolin
(cherry picked from commit b7b548411c3868bb6008d0221ac59e56fdd5aefe)

14 years agoFix typo.
Karolin Seeger [Mon, 19 Oct 2009 07:47:33 +0000 (09:47 +0200)]
Fix typo.

privilage -> privilege

Karolin
(cherry picked from commit fa08d0b44bf80f6caaeb004a0f27d8346c2820e2)

14 years agos3: Don't fail authentication when one or some group of require-membership-of is...
Bo Yang [Wed, 14 Oct 2009 22:23:48 +0000 (06:23 +0800)]
s3: Don't fail authentication when one or some group of require-membership-of is invalid.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit 31f1a36901b5b8959dc51401c09c114829b50392)

14 years agos3:configure: fix avahi activation
Björn Jacke [Sun, 18 Oct 2009 15:01:57 +0000 (17:01 +0200)]
s3:configure: fix avahi activation

Avahi was correctly found but not activated since e4a26c942.

14 years agoFix posix_unlink test. Was doing grep without quotes around the
Jeremy Allison [Sun, 18 Oct 2009 03:47:47 +0000 (20:47 -0700)]
Fix posix_unlink test. Was doing grep without quotes around the
target string.
Jeremy.

14 years agoAdd comment explaining about symlink following & posix.
Jeremy Allison [Sat, 17 Oct 2009 01:13:06 +0000 (18:13 -0700)]
Add comment explaining about symlink following & posix.
Jeremy.

14 years agos3-netlogon: fix updating trust accout passwords with downlevel domains.
Günther Deschner [Fri, 16 Oct 2009 16:01:19 +0000 (18:01 +0200)]
s3-netlogon: fix updating trust accout passwords with downlevel domains.

When choosing the netlogon password set function, make sure to look at the
*negotiated* flags in the cli->dc state, not the ones we start the negotiation
with.

Guenther

14 years agoLast 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
Jeremy Allison [Sat, 17 Oct 2009 00:20:40 +0000 (17:20 -0700)]
Last 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
Jeremy.

14 years agoFix one missing STAT -> LSTAT with POSIX pathnames in vfs_xattr_tdb.c. Caught by...
Jeremy Allison [Fri, 16 Oct 2009 23:37:20 +0000 (16:37 -0700)]
Fix one missing STAT -> LSTAT with POSIX pathnames in vfs_xattr_tdb.c. Caught by the torture tester. I love unit tests :-). Jeremy.

14 years agos3: build pam_smbpass when possible
Björn Jacke [Fri, 16 Oct 2009 21:40:34 +0000 (23:40 +0200)]
s3: build pam_smbpass when possible

14 years agonsswitch: increase libwbclient version after adding wbcChangeTrustCredentials().
Günther Deschner [Fri, 16 Oct 2009 14:07:31 +0000 (16:07 +0200)]
nsswitch: increase libwbclient version after adding wbcChangeTrustCredentials().

Guenther
(cherry picked from commit 20c07674f6c0b9423c13b9876dbe4d12f86e0d72)

14 years agos4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.
Günther Deschner [Wed, 14 Oct 2009 09:58:21 +0000 (11:58 +0200)]
s4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.

Guenther
(cherry picked from commit 22276961c398da5997402f09f7443d76f621d3ec)

14 years agos3-netlogon: Fix _netr_ServerPasswordSet2 cleartext blob handling.
Günther Deschner [Fri, 16 Oct 2009 10:09:55 +0000 (12:09 +0200)]
s3-netlogon: Fix _netr_ServerPasswordSet2 cleartext blob handling.

Following Andrew's advice, let's straight md4 the plaintext blob and avoid
trying to get a paintext string out of the input the client sends.

Guenther
(cherry picked from commit 8267564e1c52b3d335bf892ab71963bfb0e6e7e8)

14 years agos4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.
Günther Deschner [Fri, 16 Oct 2009 12:51:49 +0000 (14:51 +0200)]
s4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.

Guenther
(cherry picked from commit c2966a0766998b732c190860879c001d6140863e)

14 years agos4-smbtorture: test wbcGuidToString and friends as well in WINBIND-WBCLIENT.
Günther Deschner [Fri, 16 Oct 2009 11:38:57 +0000 (13:38 +0200)]
s4-smbtorture: test wbcGuidToString and friends as well in WINBIND-WBCLIENT.

Guenther
(cherry picked from commit 246597cb0d8d62c702841dfbb3fa257fc2da70da)

14 years agos3-libnetapi: add nltest tool.
Günther Deschner [Wed, 14 Oct 2009 23:04:27 +0000 (01:04 +0200)]
s3-libnetapi: add nltest tool.

Guenther
(cherry picked from commit a85799d5db9e8dcbb6f12299dc5ff31485c0617f)

14 years agos3-libnetapi: add I_NetLogonControl{2} example code.
Günther Deschner [Tue, 13 Oct 2009 14:47:32 +0000 (16:47 +0200)]
s3-libnetapi: add I_NetLogonControl{2} example code.

Guenther
(cherry picked from commit ca19ffde80df80aa8a58b0ad141e712f3f60ad81)

14 years agos3-libnetapi: add I_NetLogonControl{2} to public headers.
Günther Deschner [Tue, 13 Oct 2009 14:46:54 +0000 (16:46 +0200)]
s3-libnetapi: add I_NetLogonControl{2} to public headers.

Guenther
(cherry picked from commit d308aa3de86f4d5d66d4f618fb3dd3fcf65a3992)

14 years agos3-libnetapi: fill in I_NetLogonControl{2}_r.
Günther Deschner [Tue, 13 Oct 2009 14:03:58 +0000 (16:03 +0200)]
s3-libnetapi: fill in I_NetLogonControl{2}_r.

Guenther
(cherry picked from commit e31c2c7eb1f015774ad0adb3af8110f467461878)

14 years agos3-libnetapi: add I_NetLogonControl{2} skeleton.
Günther Deschner [Tue, 13 Oct 2009 13:47:56 +0000 (15:47 +0200)]
s3-libnetapi: add I_NetLogonControl{2} skeleton.

Guenther
(cherry picked from commit e8e1d609411c37b5839e5b50b95f07691370c247)

14 years agos3-libnetapi: add I_NetLogonControl{2} to IDL.
Günther Deschner [Tue, 13 Oct 2009 13:39:27 +0000 (15:39 +0200)]
s3-libnetapi: add I_NetLogonControl{2} to IDL.

Guenther
(cherry picked from commit 8bd4378ff8ddc81710575a21ca7713195a105b52)

14 years agos3-selftest: enable WINBIND-WBCLIENT against s3.
Günther Deschner [Thu, 15 Oct 2009 23:58:49 +0000 (01:58 +0200)]
s3-selftest: enable WINBIND-WBCLIENT against s3.

Guenther
(cherry picked from commit 3f80b06d9ed9d1aabb56168ccee90d7d945de8ed)

14 years agos4-smbtorture: add very basic libwbclient testsuite.
Günther Deschner [Thu, 15 Oct 2009 22:33:38 +0000 (00:33 +0200)]
s4-smbtorture: add very basic libwbclient testsuite.

Guenther
(cherry picked from commit 612deb2699c87fc05b98290e1791493603e7b686)

14 years agos3-net: fix build warning (missing default in switch).
Günther Deschner [Thu, 15 Oct 2009 23:59:08 +0000 (01:59 +0200)]
s3-net: fix build warning (missing default in switch).

Guenther
(cherry picked from commit 8b247f35389a899c805d018adb92f372e562a378)

14 years agos3:packaging: Fix building RHEL packages.
Karolin Seeger [Fri, 16 Oct 2009 14:00:26 +0000 (16:00 +0200)]
s3:packaging: Fix building RHEL packages.

Fix bug #6721.
Thanks to Eero Volotinen <eero.volotinen@medicel.com> for providing the patch!

Karolin
(cherry picked from commit 79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb)

14 years agos4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED
Andrew Tridgell [Thu, 15 Oct 2009 23:04:26 +0000 (10:04 +1100)]
s4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED

The correct answer depends on the users privileges.

14 years agoidl: added bit definition for privilege masks
Andrew Tridgell [Thu, 15 Oct 2009 23:01:28 +0000 (10:01 +1100)]
idl: added bit definition for privilege masks

When you have backup or restore privileges, you automatically get
extra access bits in ACL interpretation. This adds definitions for the
bits you get.

14 years agoFix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy Allison [Thu, 15 Oct 2009 23:55:40 +0000 (16:55 -0700)]
Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy.

14 years agos3: fixed krb5 build problem on ubuntu karmic
Andrew Tridgell [Thu, 15 Oct 2009 23:40:50 +0000 (10:40 +1100)]
s3: fixed krb5 build problem on ubuntu karmic

Karmic has MIT krb5 1.7-beta3, which has the symbol
krb5_auth_con_set_req_cksumtype but no prototype for it.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635

14 years agos3-spnego: fix memleak in spnego_parse_auth().
Günther Deschner [Thu, 15 Oct 2009 13:45:20 +0000 (15:45 +0200)]
s3-spnego: fix memleak in spnego_parse_auth().

Guenther
(cherry picked from commit ef194bc692d4bb5fddc2c437ce66aa32080ca2dc)