samba.git
14 years agos3: Fix a comment in conn_cache.c
Volker Lendecke [Thu, 24 Dec 2009 12:46:16 +0000 (13:46 +0100)]
s3: Fix a comment in conn_cache.c

14 years agos3: Fix a 64-bit error
Volker Lendecke [Thu, 24 Dec 2009 12:40:24 +0000 (13:40 +0100)]
s3: Fix a 64-bit error

14 years agos3: Remove some pointless SMB_ASSERTs
Volker Lendecke [Thu, 24 Dec 2009 12:36:00 +0000 (13:36 +0100)]
s3: Remove some pointless SMB_ASSERTs

14 years agos3: Remove some pointless casts
Volker Lendecke [Thu, 24 Dec 2009 12:14:18 +0000 (13:14 +0100)]
s3: Remove some pointless casts

14 years agoAttempt to fix one of the last two bugs with the full Windows ACL support.
Jeremy Allison [Thu, 24 Dec 2009 01:19:22 +0000 (17:19 -0800)]
Attempt to fix one of the last two bugs with the full Windows ACL support.

When returning an underlying ACL on a directory, normally on a
POSIX system it has no inheritable entries, which breaks the
Windows ACL when a user does a get/set of a Windows ACL on a
POSIX directory with no existing stored Windows ACL from
the Windows ACL editor. What happens is any new entry added
by the user gets set inheritable, but none of the others
entries are (as returned by default). So any new files then
only inherit the single new ACE entry (the one marked inheritable
by the ACL editor).

Fix this by faking up a default 3 element inheritable ACL that
represents what a user creating a POSIX file or directory will
get by default from the smbd code.

Jeremy.
(cherry picked from commit 6dcbb84d485b8a8ccf0c3a70d9f5f7e951aaf1c6)

14 years agoThe posix acl version of set_nt_acl() could set the stat_ex
Jeremy Allison [Thu, 24 Dec 2009 01:17:48 +0000 (17:17 -0800)]
The posix acl version of set_nt_acl() could set the stat_ex
struct in the fsp->fsp_name pointer incorrectly for a directory.

Fix this. Make map_canon_ace_perms() public.

Jeremy.
(cherry picked from commit 3d85b1ebe5e3484250b6810f1a45c1ba5a4900f7)

14 years agodoc: update mount.cifs man page with nounix option
Suresh Jayaraman [Wed, 23 Dec 2009 16:45:20 +0000 (11:45 -0500)]
doc: update mount.cifs man page with nounix option

Change since last post:
- fix build error due to superfluous </para> tag.
- ensure it builds fine.

Also add a section on INODE NUMBERS that discusses inode numbers more
thoroughly and add reference to it in "nounix" and "noserverino"
options.

Thanks to Jeff Layton for explaining those details.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agos3: wbinfo --ping-dc is not cacheable
Volker Lendecke [Wed, 23 Dec 2009 12:10:55 +0000 (13:10 +0100)]
s3: wbinfo --ping-dc is not cacheable

14 years agos3: Remove some unused code
Volker Lendecke [Wed, 23 Dec 2009 10:48:33 +0000 (11:48 +0100)]
s3: Remove some unused code

14 years agos3: Remove unused sendto_child()
Volker Lendecke [Wed, 23 Dec 2009 10:39:10 +0000 (11:39 +0100)]
s3: Remove unused sendto_child()

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Wed, 23 Dec 2009 09:05:52 +0000 (10:05 +0100)]
WHATSNEW: Update changes.

Karolin

14 years agos3: Restore correct timeouts for SMB requests
Volker Lendecke [Tue, 22 Dec 2009 15:06:17 +0000 (16:06 +0100)]
s3: Restore correct timeouts for SMB requests

14 years agos3: Remove a pointless else branch
Volker Lendecke [Tue, 22 Dec 2009 13:07:52 +0000 (14:07 +0100)]
s3: Remove a pointless else branch

14 years agos3: Move smb_splice_chain to smbd/process.c, its only user
Volker Lendecke [Tue, 22 Dec 2009 12:53:13 +0000 (13:53 +0100)]
s3: Move smb_splice_chain to smbd/process.c, its only user

14 years agoFix bug reported in mangle_hash code (no bugid yet).
Jeremy Allison [Tue, 22 Dec 2009 01:46:32 +0000 (17:46 -0800)]
Fix bug reported in mangle_hash code (no bugid yet).

Don't change the contents of a const string via a pointer
alias (or if you do, change it back.....).

Jeremy.
(cherry picked from commit 100168dfec533a7afd8f2dd246f1b66b11ad7162)

14 years agos3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dc
Volker Lendecke [Mon, 21 Dec 2009 20:50:43 +0000 (21:50 +0100)]
s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dc

This just does a NULL RPC call through an existing NETLOGON connection. If
someone knows an operation that "just works" and does not return NOT_SUPPORTED,
please tell me :-)

14 years agos3:winbindd: Fix a brown paper bag bug in wbinfo -t ...
Volker Lendecke [Mon, 21 Dec 2009 21:34:55 +0000 (22:34 +0100)]
s3:winbindd: Fix a brown paper bag bug in wbinfo -t ...

14 years agoRename reply_doserror() -> reply_force_doserror().
Jeremy Allison [Mon, 21 Dec 2009 19:16:38 +0000 (11:16 -0800)]
Rename reply_doserror() -> reply_force_doserror().

Rewrite all calls to reply_nterror(NT_STATUS_DOS()) to
reply_force_doserror() and update the comment in smbd/error.c

Jeremy.
(cherry picked from commit 74deee3cc9bea2d1bd0c8a7374f8b1dbbbc4b499)

14 years agoRemove all calls to reply_doserror - turn them into
Jeremy Allison [Mon, 21 Dec 2009 19:05:25 +0000 (11:05 -0800)]
Remove all calls to reply_doserror - turn them into
correct reply_nterror calls. Next rename reply_doserror ->
reply_force_doserror and plumb in when NT_STATUS_DOS is
used.
Jeremy.
(cherry picked from commit 642101ac237364fd9be209bf56d3224736626446)

14 years agoRename 282 -> ERReasnotsupported.
Jeremy Allison [Mon, 21 Dec 2009 19:05:11 +0000 (11:05 -0800)]
Rename 282 -> ERReasnotsupported.
Jeremy.
(cherry picked from commit 714c60e62756169ab9fd4ead442f123c075b3edb)

14 years agos3-docs: mention long and undocumented option names in rpcclient manpage.
Günther Deschner [Mon, 21 Dec 2009 16:30:07 +0000 (17:30 +0100)]
s3-docs: mention long and undocumented option names in rpcclient manpage.

Guenther
(cherry picked from commit 9a7bed7ae6ec46a848a87b9e9b41e686fffeb26b)

14 years agos3-docs: mention long and undocumented option names in smbcacls manpage.
Günther Deschner [Mon, 21 Dec 2009 16:18:53 +0000 (17:18 +0100)]
s3-docs: mention long and undocumented option names in smbcacls manpage.

Guenther
(cherry picked from commit 308e1b51874bc7b3fd7a44bec1367f75b8c975f0)

14 years agos3-docs: mention long and undocumented option names in smbclient manpage.
Günther Deschner [Mon, 21 Dec 2009 15:24:31 +0000 (16:24 +0100)]
s3-docs: mention long and undocumented option names in smbclient manpage.

Guenther
(cherry picked from commit 71a5aef4e1e054359f419c5540694d3d8d8ededf)

14 years agos3-docs: mention -O, --stdout in smbget manpage.
Günther Deschner [Mon, 21 Dec 2009 15:07:42 +0000 (16:07 +0100)]
s3-docs: mention -O, --stdout in smbget manpage.

Guenther
(cherry picked from commit 6ffa5df69afbbce4bcf3c26c6068bcd927826ddd)

14 years agos3-docs: mention long option names in smbtree manpage.
Günther Deschner [Mon, 21 Dec 2009 15:04:49 +0000 (16:04 +0100)]
s3-docs: mention long option names in smbtree manpage.

Guenther
(cherry picked from commit f8686728147eaf60d09c00d98d65902eb7e77902)

14 years agos3-docs: mention long and undocumented option names in pdbedit manpage.
Günther Deschner [Thu, 17 Dec 2009 14:51:36 +0000 (15:51 +0100)]
s3-docs: mention long and undocumented option names in pdbedit manpage.

Guenther
(cherry picked from commit 722a330013280758c2184c0239810229b38c42f0)

14 years agos3-docs: mention all long option names in samba.entities file.
Günther Deschner [Mon, 21 Dec 2009 15:04:06 +0000 (16:04 +0100)]
s3-docs: mention all long option names in samba.entities file.

Guenther
(cherry picked from commit 0d412789b8035dfeb28989ba82d677d2ae9b7bd0)

14 years agos3-docs: not working for SuSE anymore...
Günther Deschner [Mon, 21 Dec 2009 14:41:13 +0000 (15:41 +0100)]
s3-docs: not working for SuSE anymore...

Guenther
(cherry picked from commit d9ca1488a4a0e562ad13207c4b54d029c55be293)

14 years agos3: Shrink winbindd_proto.h a bit
Volker Lendecke [Mon, 21 Dec 2009 14:27:39 +0000 (15:27 +0100)]
s3: Shrink winbindd_proto.h a bit

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Mon, 21 Dec 2009 14:11:55 +0000 (15:11 +0100)]
s3: Fix some nonempty blank lines

14 years agos3: Remove unused get_sam_group_entries
Volker Lendecke [Mon, 21 Dec 2009 14:02:56 +0000 (15:02 +0100)]
s3: Remove unused get_sam_group_entries

14 years agos3: Remove unused winbindd_dual_getsidaliases
Volker Lendecke [Mon, 21 Dec 2009 14:01:44 +0000 (15:01 +0100)]
s3: Remove unused winbindd_dual_getsidaliases

14 years agos3: Remove an unused struct definition
Volker Lendecke [Mon, 21 Dec 2009 13:59:11 +0000 (14:59 +0100)]
s3: Remove an unused struct definition

14 years agos3: Remove unused winbindd_dual_getuserdomgroups
Volker Lendecke [Mon, 21 Dec 2009 13:58:21 +0000 (14:58 +0100)]
s3: Remove unused winbindd_dual_getuserdomgroups

14 years agos3: Remove unused winbindd_dual_getdcname
Volker Lendecke [Mon, 21 Dec 2009 13:57:03 +0000 (14:57 +0100)]
s3: Remove unused winbindd_dual_getdcname

14 years agos3: Remove unused winbindd_dual_lookupname
Volker Lendecke [Mon, 21 Dec 2009 13:55:02 +0000 (14:55 +0100)]
s3: Remove unused winbindd_dual_lookupname

14 years agos3: Remove unused winbindd_dual_lookupsid
Volker Lendecke [Mon, 21 Dec 2009 13:54:15 +0000 (14:54 +0100)]
s3: Remove unused winbindd_dual_lookupsid

14 years agos3: Remove unused winbindd_dual_userinfo
Volker Lendecke [Mon, 21 Dec 2009 13:49:48 +0000 (14:49 +0100)]
s3: Remove unused winbindd_dual_userinfo

14 years agos3: Remove some unused dual functions
Volker Lendecke [Mon, 21 Dec 2009 13:47:57 +0000 (14:47 +0100)]
s3: Remove some unused dual functions

14 years agos3: Remove unused do_async
Volker Lendecke [Mon, 21 Dec 2009 13:42:18 +0000 (14:42 +0100)]
s3: Remove unused do_async

14 years agos3: Remove unused winbindd_gid2sid_async
Volker Lendecke [Mon, 21 Dec 2009 13:40:09 +0000 (14:40 +0100)]
s3: Remove unused winbindd_gid2sid_async

14 years agos3: Remove unused winbindd_uid2sid_async
Volker Lendecke [Mon, 21 Dec 2009 13:39:36 +0000 (14:39 +0100)]
s3: Remove unused winbindd_uid2sid_async

14 years agos3: Remove unused winbindd_sid2gid_async
Volker Lendecke [Mon, 21 Dec 2009 13:38:31 +0000 (14:38 +0100)]
s3: Remove unused winbindd_sid2gid_async

14 years agos3: Remove unused winbindd_sid2uid_async
Volker Lendecke [Mon, 21 Dec 2009 13:37:54 +0000 (14:37 +0100)]
s3: Remove unused winbindd_sid2uid_async

14 years agos3: Remove unused do_async_domain
Volker Lendecke [Mon, 21 Dec 2009 13:36:24 +0000 (14:36 +0100)]
s3: Remove unused do_async_domain

14 years agos3: Remove unused query_user_async
Volker Lendecke [Mon, 21 Dec 2009 13:34:15 +0000 (14:34 +0100)]
s3: Remove unused query_user_async

14 years agos3: Remove unused winbindd_getsidaliases_async
Volker Lendecke [Mon, 21 Dec 2009 13:33:26 +0000 (14:33 +0100)]
s3: Remove unused winbindd_getsidaliases_async

14 years agos3: Remove unused winbindd_lookupname_async
Volker Lendecke [Mon, 21 Dec 2009 13:32:34 +0000 (14:32 +0100)]
s3: Remove unused winbindd_lookupname_async

14 years agos3: Remove unused winbindd_lookupsid_async
Volker Lendecke [Mon, 21 Dec 2009 13:31:31 +0000 (14:31 +0100)]
s3: Remove unused winbindd_lookupsid_async

14 years agos3:winbind: use wb_fill_pwent in wb_getpwsid
Volker Lendecke [Sat, 3 Oct 2009 15:10:53 +0000 (17:10 +0200)]
s3:winbind: use wb_fill_pwent in wb_getpwsid

14 years agos3:winbind: Move fillup_pw_field() as static to wb_fill_pwent.c
Volker Lendecke [Sat, 17 Oct 2009 15:00:13 +0000 (17:00 +0200)]
s3:winbind: Move fillup_pw_field() as static to wb_fill_pwent.c

14 years agoWHATSNEW: Update changes since 3.5.0pre2.
Karolin Seeger [Mon, 21 Dec 2009 10:22:17 +0000 (11:22 +0100)]
WHATSNEW: Update changes since 3.5.0pre2.

Karolin

14 years agos3: Fix an error case in cli_negprot
Volker Lendecke [Sun, 20 Dec 2009 22:29:32 +0000 (23:29 +0100)]
s3: Fix an error case in cli_negprot

14 years agoFix release script to work with recent git versions
Simo Sorce [Tue, 15 Dec 2009 14:17:25 +0000 (09:17 -0500)]
Fix release script to work with recent git versions
(cherry picked from commit 7f956869ff7a8e481afb9db0c52a0d74d809867a)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotalloc: Fix exports and increment talloc version
Simo Sorce [Wed, 14 Oct 2009 14:50:19 +0000 (10:50 -0400)]
talloc: Fix exports and increment talloc version
(cherry picked from commit 6618a062a19660a718074f6e6155339451b7a5b6)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotalloc: Make abi checks in release script
Simo Sorce [Wed, 14 Oct 2009 14:57:17 +0000 (10:57 -0400)]
talloc: Make abi checks in release script

Make always sure the exports and signature files are up to date before
shipping a release.
(cherry picked from commit 8fb483b2964f1222c013df42ba8be544269da612)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotalloc: Move release script under /script too
Simo Sorce [Wed, 14 Oct 2009 14:55:11 +0000 (10:55 -0400)]
talloc: Move release script under /script too
(cherry picked from commit 8e6df560b74d7e9b94dd47625de56bc1dc0bc6d7)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotalloc: Change the way mksysms work
Simo Sorce [Wed, 14 Oct 2009 14:20:28 +0000 (10:20 -0400)]
talloc: Change the way mksysms work

Make sure we always have a sorted (per file) export file.
This way we can directly compare the real export and the check file w/o having
to further sort things.

Also return error code from abi_checks.sh if warnings were reported
(cherry picked from commit 2d6d6bcb5de87ce0dbce13ff6bc775b953438b75)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoFix release script with newer versins of git
Simo Sorce [Mon, 7 Dec 2009 14:25:03 +0000 (09:25 -0500)]
Fix release script with newer versins of git
(cherry picked from commit 4334092cbae28181ba0d1cf2ac026961f2192972)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb tools: Mostly cosmetic adaptions
Matthias Dieter Wallnöfer [Fri, 16 Oct 2009 17:02:02 +0000 (19:02 +0200)]
tdb tools: Mostly cosmetic adaptions

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 9776cb03450d21da5d454e683bdba29793ba3f67)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: change version to 1.2.0 after adding TDB_*ALLOW_NESTING
Stefan Metzmacher [Thu, 19 Nov 2009 08:49:03 +0000 (09:49 +0100)]
tdb: change version to 1.2.0 after adding TDB_*ALLOW_NESTING

metze
(cherry picked from commit 5ca0a4bfd6fdbb515835682a12f715283b46cb3e)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: add TDB_DISALLOW_NESTING and make TDB_ALLOW_NESTING the default behavior
Stefan Metzmacher [Thu, 19 Nov 2009 08:34:05 +0000 (09:34 +0100)]
tdb: add TDB_DISALLOW_NESTING and make TDB_ALLOW_NESTING the default behavior

We need to keep TDB_ALLOW_NESTING as default behavior,
so that existing code continues to work.

However we may change the default together with a major version
number change in future.

metze
(cherry picked from commit 3b9f19ed919fef2e88b2f92ae541e07bc7379cd1)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoNew attempt at TDB transaction nesting allow/disallow.
Ronnie Sahlberg [Mon, 25 May 2009 07:04:42 +0000 (17:04 +1000)]
New attempt at TDB transaction nesting allow/disallow.

Make the default be that transaction is not allowed and any attempt to create a nested transaction will fail with TDB_ERR_NESTING.

If an application can cope with transaction nesting and the implicit
semantics of tdb_transaction_commit(), it can enable transaction nesting
by using the TDB_ALLOW_NESTING flag.
(cherry picked from ctdb commit 3e49e41c21eb8c53084aa8cc7fd3557bdd8eb7b6)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 436b55db1ff238ec467b07a74b088f6fcfaf927c)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: always set tdb->tracefd to -1 to be safe on goto fail
Stefan Metzmacher [Thu, 19 Nov 2009 08:38:48 +0000 (09:38 +0100)]
tdb: always set tdb->tracefd to -1 to be safe on goto fail

metze
(cherry picked from commit 85449b7bcc4bd7948bea38b5514a02357950a002)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: update README a bit
Kirill Smelkov [Wed, 21 Oct 2009 17:18:58 +0000 (21:18 +0400)]
tdb: update README a bit

While studying tdb, I've noticed a couple of mismatches between readme
and actual code:

- tdb_open_ex changed it's log_fn argument to log_ctx
- there is now no tdb_update(), which it seems was transformed into
  non-exported tdb_update_hash()

There were other mismatches, but I don't remember them now, sorry.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 83de5c826313aa09c76131ae70550bd81b3521c5)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: add tests for double .close() in pytdb
Kirill Smelkov [Wed, 21 Oct 2009 17:18:57 +0000 (21:18 +0400)]
tdb: add tests for double .close() in pytdb

The reason I do it is that when using older python-tdb as shipped in
Debian Lenny, python interpreter crashes on this test:

    (gdb) bt
    #0  0xb7f8c424 in __kernel_vsyscall ()
    #1  0xb7df5640 in raise () from /lib/i686/cmov/libc.so.6
    #2  0xb7df7018 in abort () from /lib/i686/cmov/libc.so.6
    #3  0xb7e3234d in __libc_message () from /lib/i686/cmov/libc.so.6
    #4  0xb7e38624 in malloc_printerr () from /lib/i686/cmov/libc.so.6
    #5  0xb7e3a826 in free () from /lib/i686/cmov/libc.so.6
    #6  0xb7b39c84 in tdb_close () from /usr/lib/libtdb.so.1
    #7  0xb7b43e14 in ?? () from /var/lib/python-support/python2.5/_tdb.so
    #8  0x0a038d08 in ?? ()
    #9  0x00000000 in ?? ()

master's pytdb does not (we have a check for self->closed in obj_close()),
but still...

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 71a21393dd1bb61bded82b1581ac6d5bd3b0153c)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: reset tdb->fd to -1 in tdb_close()
Kirill Smelkov [Wed, 21 Oct 2009 17:18:56 +0000 (21:18 +0400)]
tdb: reset tdb->fd to -1 in tdb_close()

So that erroneous double tdb_close() calls do not try to close() same
fd again. This is like SAFE_FREE() but for fd.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit b4424f8234a78a79fb2d71d46ca208b4f12e0f9e)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: fix typo in python's Tdb.get() docstring
Kirill Smelkov [Wed, 21 Oct 2009 17:18:55 +0000 (21:18 +0400)]
tdb: fix typo in python's Tdb.get() docstring

It's Tdb.get(), not Tdb.fetch().

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit cfed5f946de0992a594c189ee3c19cf98e59d380)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotdb: kill last bits from swig
Kirill Smelkov [Wed, 21 Oct 2009 17:18:54 +0000 (21:18 +0400)]
tdb: kill last bits from swig

We no longer use swig for pytdb, so there is no need for swig make
rules. Also pytdb.c header should be updated.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit ecbe5ebd8d1c44a478c613eb1cace0521142d0d3)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotsocket: Fixed tsocket_guide.txt asciidoc syntax.
Andreas Schneider [Tue, 15 Dec 2009 11:58:18 +0000 (12:58 +0100)]
tsocket: Fixed tsocket_guide.txt asciidoc syntax.
(cherry picked from commit a5bdab8b32768282270315f880f980d99ebb9a2e)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotsocket: Fixed documentation for tsocket_address_bsd_sockaddr().
Andreas Schneider [Tue, 15 Dec 2009 11:57:35 +0000 (12:57 +0100)]
tsocket: Fixed documentation for tsocket_address_bsd_sockaddr().
(cherry picked from commit e33ae22b87597f31caefd5466bb8e8f240405972)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotsocket: Fixed typo in LGPL header.
Andreas Schneider [Tue, 15 Dec 2009 11:56:44 +0000 (12:56 +0100)]
tsocket: Fixed typo in LGPL header.
(cherry picked from commit ab04dd3be743806bf3c9cf9db4b5326ce0476bf5)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotsocket: add tsocket_address_bsd_sockaddr() and tsocket_address_bsd_from_sockaddr()
Stefan Metzmacher [Wed, 4 Nov 2009 18:03:41 +0000 (19:03 +0100)]
tsocket: add tsocket_address_bsd_sockaddr() and tsocket_address_bsd_from_sockaddr()

metze
(cherry picked from commit edbf2caa6f8273227229cd8f1b293e95c6a6122d)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agotevent: prefix types and defined with tevent_ and TEVENT_
Stefan Metzmacher [Sun, 20 Dec 2009 12:59:03 +0000 (13:59 +0100)]
tevent: prefix types and defined with tevent_ and TEVENT_

This fixes the build warnings on some build-farm hosts.

metze
(cherry picked from commit 4b7a6b1f8ff9ffe984612e1a303473d7a0865c0c)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoOutput %p as unsigned in snprintf replacement.
Peter Rosin [Sat, 19 Dec 2009 18:43:52 +0000 (19:43 +0100)]
Output %p as unsigned in snprintf replacement.

14 years agoActually explain the twisty paths of tortured logic behind
Jeremy Allison [Fri, 18 Dec 2009 22:28:22 +0000 (14:28 -0800)]
Actually explain the twisty paths of tortured logic behind
reply_doserror(), reply_nterror(), and reply_nterror(NT_STATUS_DOS()).

Fix the call in rely_openerror() to actually force a DOS error
for "too many open files".

Jeremy.
(cherry picked from commit 32861b926f1beef009d475b5c903a6b703f5bc1e)

14 years agoreply_doserror() doesn't force DOS errors on the wire.
Jeremy Allison [Fri, 18 Dec 2009 22:25:39 +0000 (14:25 -0800)]
reply_doserror() doesn't force DOS errors on the wire.

Start migrating uses of reply_doserror() to reply_nterror() with the
correct mapping. Eventually we'll get to the point where we can
change reply_doserror() to force a DOS error code on the wire,
and can change calls to reply_nterror(req, NT_STATUS_DOS()) - which *does*
force DOS errors on the wire - to reply_doserror(). Which might
actually make the server code look like it's making sense.

Jeremy.
(cherry picked from commit 0dd8c8a6ffed20be89ff1c407ea1d2876bd30792)

14 years agoreply_force_nterror() is not used anywhere. Remove it.
Jeremy Allison [Fri, 18 Dec 2009 22:25:07 +0000 (14:25 -0800)]
reply_force_nterror() is not used anywhere. Remove it.
Jeremy.
(cherry picked from commit 69d26d25f7f2a46e87337fa50af4ed0a1b11a2b5)

14 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 18 Dec 2009 14:49:34 +0000 (15:49 +0100)]
s3: re-run make samba3-idl.

Guenther

14 years agos3-docs: mention pam_winbind.conf(5) manpage in pam_winbind(8) manpage.
Günther Deschner [Fri, 18 Dec 2009 12:56:43 +0000 (13:56 +0100)]
s3-docs: mention pam_winbind.conf(5) manpage in pam_winbind(8) manpage.

Guenther
(cherry picked from commit 72d68acbf59aa8531cc132551cc8e8313b7dc3b7)

14 years agos3-docs: add new pam_winbind.conf(5) manpage.
Günther Deschner [Fri, 18 Dec 2009 12:56:01 +0000 (13:56 +0100)]
s3-docs: add new pam_winbind.conf(5) manpage.

Guenther
(cherry picked from commit 74816678706b7028fa63a4e552887fcf98322711)

14 years agos4-smbtorture: skip GetAliasMembership against s4.
Günther Deschner [Thu, 17 Dec 2009 17:02:53 +0000 (18:02 +0100)]
s4-smbtorture: skip GetAliasMembership against s4.

It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not
figure out why.

Guenther
(cherry picked from commit dc4c41124228878d2c29fe2b240b23eb49631fe1)

14 years agos4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.
Günther Deschner [Thu, 17 Dec 2009 14:34:22 +0000 (15:34 +0100)]
s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.

Guenther
(cherry picked from commit 619ad0c6ecf88a861ad1a1e1d5564bd1f91855cc)

14 years agotdbtool: avoid using c++ reserved words.
Günther Deschner [Wed, 16 Dec 2009 23:13:23 +0000 (00:13 +0100)]
tdbtool: avoid using c++ reserved words.

Guenther
(cherry picked from commit a23084e1e89a44cf692f6e205263ee53371b80c9)

14 years agos4-smbtorture: fix smbtorture after setprinter IDL fixes.
Günther Deschner [Wed, 16 Dec 2009 09:33:41 +0000 (10:33 +0100)]
s4-smbtorture: fix smbtorture after setprinter IDL fixes.

Guenther
(cherry picked from commit a9689bb755b4fd22a8c2b651aa90b2f74188edcb)

14 years agos3-spoolss: fix rpcclient after setprinter IDL fixes.
Günther Deschner [Wed, 16 Dec 2009 09:33:13 +0000 (10:33 +0100)]
s3-spoolss: fix rpcclient after setprinter IDL fixes.

Guenther
(cherry picked from commit 31cf2b086a9275955b0480b4b9035dc12671761d)

14 years agospoolss: more mork on SetPrinterInfo() levels.
Günther Deschner [Wed, 16 Dec 2009 09:32:35 +0000 (10:32 +0100)]
spoolss: more mork on SetPrinterInfo() levels.

Guenther
(cherry picked from commit be95cb6f8357334af08d1502910a429328b85bc5)

14 years agospoolss: add spoolss_DriverInfo7.
Günther Deschner [Wed, 16 Dec 2009 09:39:00 +0000 (10:39 +0100)]
spoolss: add spoolss_DriverInfo7.

Guenther
(cherry picked from commit 64e588f868c23bf4c836f4029a285885db5d087e)

14 years agos3-pdbedit: allow to call "pdbedit -N description -u user" without specifiyng "-r".
Günther Deschner [Wed, 16 Dec 2009 14:59:04 +0000 (15:59 +0100)]
s3-pdbedit: allow to call "pdbedit -N description -u user" without specifiyng "-r".

Guenther
(cherry picked from commit d9f93224bdd2b02a8c96667009e43406b47d4c35)

14 years agos4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
Günther Deschner [Tue, 15 Dec 2009 21:26:39 +0000 (22:26 +0100)]
s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.

Guenther
(cherry picked from commit 308b50a7bb07a7db6d2119f9ff08f33fce922562)

14 years agoWHATSNEW: Fix typo.
Karolin Seeger [Fri, 18 Dec 2009 11:53:35 +0000 (12:53 +0100)]
WHATSNEW: Fix typo.

Thanks, Bjoern! :-)

Karolin

14 years agoAlways map EMFILE to ERRDOS, ERRnofids, *NOT* NT_STATUS_TOO_MANY_OPENED_FILES.
Jeremy Allison [Fri, 18 Dec 2009 02:27:54 +0000 (18:27 -0800)]
Always map EMFILE to ERRDOS, ERRnofids, *NOT* NT_STATUS_TOO_MANY_OPENED_FILES.
This is what W2KR3 does for NTCreateX and openX calls. May be the correct fix
for bug 6837 - "Too many open files" when trying to access large number of files.
Jeremy.
(cherry picked from commit 6585621d367d997b79ffb99e0a8743766e6ff6d2)

14 years agoVector correctly through reply_openerror() (which uses the same logic).
Jeremy Allison [Fri, 18 Dec 2009 02:26:53 +0000 (18:26 -0800)]
Vector correctly through reply_openerror() (which uses the same logic).
Jeremy.
(cherry picked from commit d1a5387580182884d3cc875f3f404ff8377c1e92)

14 years agoUpdate default with correct value. Add a note about Win7 behavior
Jeremy Allison [Fri, 18 Dec 2009 00:50:35 +0000 (16:50 -0800)]
Update default with correct value. Add a note about Win7 behavior
here.
Jeremy.
(cherry picked from commit fbf4923cad17b55bd7a647bf2300b28e23b8cdbb)

14 years agoFix bug #6939 - mangling method = hash breaks long filenames.
Jeremy Allison [Fri, 18 Dec 2009 00:14:30 +0000 (16:14 -0800)]
Fix bug #6939 - mangling method = hash breaks long filenames.

We were returning the wrong sense of the bool. must_mangle()
has to return !NT_STATUS_IS_OK, not NT_STATUS_IS_OK.

Jeremy.
(cherry picked from commit 159c1b860aa4d61acf765c849c63e3bee9f57ad3)

14 years agos3: Fix bug 6992, make test for getgrouplist cacheable
Jonas Gorski [Thu, 17 Dec 2009 10:32:21 +0000 (11:32 +0100)]
s3: Fix bug 6992, make test for getgrouplist cacheable

14 years agoFinal part of the fix for 6837 - "Too many open files" when trying to access large...
Jeremy Allison [Wed, 16 Dec 2009 18:20:34 +0000 (10:20 -0800)]
Final part of the fix for 6837 - "Too many open files" when trying to access large number of files

Win7 needs a min of 16k file handles to work against a
server.

Jeremy.

14 years agoAdd helpful debug of DACL for errors on ACL access.
Jeremy Allison [Wed, 16 Dec 2009 18:09:11 +0000 (10:09 -0800)]
Add helpful debug of DACL for errors on ACL access.
Jeremy.
(cherry picked from commit b8c87c43dd9309b3d2fed5d5db5b38057a8e4e90)

14 years agoEnsure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the returned attributes...
Jeremy Allison [Wed, 16 Dec 2009 02:03:47 +0000 (18:03 -0800)]
Ensure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the returned attributes by protocol level.

This makes us consistant in returning DOS attrs across all replies. Tested on OS/2 by Günter Kukkukk.
Jeremy.
(cherry picked from commit e831e3ee32ba3f1f492f9918d74a302731fa79a9)

14 years agos3: Fix _samr_GetAliasMembership for results with 0 rids
Volker Lendecke [Tue, 15 Dec 2009 13:01:43 +0000 (14:01 +0100)]
s3: Fix _samr_GetAliasMembership for results with 0 rids