1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

78616 Commits

Author SHA1 Message Date
Andreas Schneider
d03ef6ad91 s3-waf: Link against tdb_compat instead of tdb. 2012-02-07 11:11:47 +01:00
Jelmer Vernooij
f2903e0c4f provision: Make sure target directory is created early.
This is necessary when using the target directory to store temporary
files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Feb  7 02:45:37 CET 2012 on sn-devel-104
2012-02-07 02:45:36 +01:00
Jelmer Vernooij
8dca1a0222 samba-tool user password: Re-add support for option groups. 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
7c8476b434 samba-tool: Add optiongroups, necessary for 'samba-tool domain ...' 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
8443e15eee crypto: Use libbsd md5 header, if available. 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
634f8276dd crypto/md5: Change prototypes to match BSD. 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
a0ff4c349c Revert "samba-tool: moved takes_optiongroups definition to Command base class"
This reverts commit f6fa868489.

This keeps the main command class fairly slim, and makes it a bit
more obvious where the arguments to run() are coming from.

Conflicts:

	source4/scripting/python/samba/netcmd/__init__.py
	source4/scripting/python/samba/netcmd/domain.py
	source4/scripting/python/samba/netcmd/gpo.py
	source4/scripting/python/samba/netcmd/newuser.py
	source4/scripting/python/samba/netcmd/testparm.py
	source4/scripting/python/samba/netcmd/user.py
	source4/scripting/python/samba/tests/samba_tool/__init__.py
2012-02-07 01:11:08 +01:00
Jelmer Vernooij
d6b4701503 charset/tests: Add prototypes for test functions. 2012-02-07 01:11:07 +01:00
Jelmer Vernooij
e92302d707 smb_server: Preserve signedness of string push return value. 2012-02-07 01:11:07 +01:00
Jelmer Vernooij
8f6d7d6cbf loadparm: handle P_SEP in switches (silences warning with clang). 2012-02-07 01:11:07 +01:00
Jelmer Vernooij
a05a9101b6 pysocketwrapper: fix behaviour to be consistent with 'socket.getsockopt'
socklen_t is unsigned
2012-02-07 01:11:07 +01:00
Jelmer Vernooij
1c1b10f1d9 torture/libnet: Include prototype headers. 2012-02-07 01:11:07 +01:00
Jelmer Vernooij
6b1e83c65c pyxattr_tdb: Remove pointless check for blob.length < 0. 2012-02-07 01:11:07 +01:00
Jelmer Vernooij
9c000f1def crypto: Add prototype for main torture functions. 2012-02-07 01:11:07 +01:00
Horacio G. de Oro
fa0c2ab5c5 Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.py
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-02-07 01:11:07 +01:00
Horacio G. de Oro
7e02757dfc Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for source4/setup/provision
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-02-07 01:11:07 +01:00
Christof Schmitt
523d5a86de s3-winbind: Remove unused bool "local"
"local" is always False, so simply remove it and the if statement
checking its value.

Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb  6 23:27:48 CET 2012 on sn-devel-104
2012-02-06 23:27:48 +01:00
Volker Lendecke
5fb578ee09 s3: FreeBSD does not define sin6_addr.s_addr32
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb  6 20:03:58 CET 2012 on sn-devel-104
2012-02-06 20:03:58 +01:00
Ira Cooper
98210e25e5 s3-nsswitch: Fix warnings on Solaris.
Add "system/passwd.h" so struct group is declared.

Autobuild-User: Ira Cooper <ira@samba.org>
Autobuild-Date: Mon Feb  6 18:28:53 CET 2012 on sn-devel-104
2012-02-06 18:28:53 +01:00
Volker Lendecke
a0e44c30e2 lib/util: Add hex_encode_buf
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb  6 09:15:33 CET 2012 on sn-devel-104
2012-02-06 09:15:32 +01:00
Ira Cooper
74ca6d1ddb s3-popt: Fix configure.developer builds on Solairs.
alloca.h needs to be included, or the build complains the implicit
definition of alloca.

Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb  4 03:27:42 CET 2012 on sn-devel-104
2012-02-04 03:27:42 +01:00
Jeremy Allison
4452082002 Ensure when setting a POSIX ACL, that the uid for a
SMB_ACL_USER_OBJ ACE (the owner ACE entry) has a duplicate
permission entry as an SMB_ACL_USER, and a gid for a
SMB_ACL_GROUP_OBJ ACE (the primary group ACE entry) also has
a duplicate permission entry as an SMB_ACL_GROUP. If not,
then if the ownership or group ownership of this file or
directory gets changed, the user or group can lose their
access.
2012-02-03 16:37:41 -08:00
Jeremy Allison
6a31e0f4f2 Fix mistaken assignment of gid to uid field. 2012-02-03 15:58:12 -08:00
Jeremy Allison
41152d7157 Replace bool flags inside ensure_canon_entry_valid() with pointers.
This will make the second tweak to the ACL mapping on set easier.
2012-02-03 15:28:22 -08:00
Jeremy Allison
45a3b14bea Fix bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module. 2012-02-03 14:55:34 -08:00
Jeremy Allison
d9b9ad2af2 Replace all malloc/free with talloc on tos. 2012-02-03 14:06:38 -08:00
Michael Adam
877d4e048e s4:torture: add a smb2.durable_open.reopen4 test
open a durable handle, logoff, new sessions setup, try durable reopen (fail),
open tcon, durable reopen (succeed)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Feb  3 12:45:34 CET 2012 on sn-devel-104
2012-02-03 12:45:34 +01:00
Michael Adam
a4fd3eb4a9 s4:torture: add a torture_smb2_session_setup() utility function 2012-02-03 11:10:30 +01:00
Michael Adam
adb9b7fbf0 s4:torture: add smb2.durable_open test reopen3
Do a durable open, tdis, tree_connect, durable reopen -> fail
2012-02-03 11:10:30 +01:00
Michael Adam
7c7e1fd5c7 s4:torture: add torture_smb2_tree_connect() utility function
This does a tcon based on an existing session, using the
name an host present in the torture context.
2012-02-03 11:10:30 +01:00
Michael Adam
1d8fbff7ff s4:torture: add smb2.durable_open test reopen2
durable open, disconnect, new seession, durable reopen
2012-02-03 11:10:30 +01:00
Michael Adam
f9e85d09b3 s4:torture: add smb2.durable_open test reopen1 2012-02-03 11:10:30 +01:00
Michael Adam
6a93475dd0 s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary in smb2_connect()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Michael Adam
97823b69e9 s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session instead of smb2_tree arguement.
Only the tree->session is needed. This way it is less confusing.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Michael Adam
ce5fc22896 s4:torture:smb2: talloc_free the right tree structure in secondary_tcon()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Michael Adam
87cf808edb s4:torture:smb2: check for success of talloc in secondary_tcon()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:29 +01:00
Michael Adam
5f19eb8e58 s4:torture:smb2:notify: remove an unused variable 2012-02-03 11:10:29 +01:00
Michael Adam
48ee2c3450 s4:torture:smb2:notify: remove an unused variable 2012-02-03 11:10:29 +01:00
Michael Adam
3116592552 s4:torture:smb2: remove an unused variable from torture_smb2_setinfo() 2012-02-03 11:10:29 +01:00
Michael Adam
2b9299310f loadparm: fix a load of uninitialized memory errors found by valgrind. 2012-02-03 11:10:29 +01:00
Matthieu Patou
357631b8b9 s3-nmbd: don't discard DGRAM frames from local addresses when we are a DC
Winbind use netbios to locate the DC, if samba is also a DC then nmbd
receive request from Winbind that are from a local address, those
requests must not be discarded otherwise winbind can't find the DC and
won't try another method.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Feb  3 11:09:29 CET 2012 on sn-devel-104
2012-02-03 11:09:29 +01:00
Matthieu Patou
9b43ad4fca s3-pid: Catch with pid filename's change when config file is not smb.conf
This is what is done in pidfile_create
2012-02-03 00:33:00 -08:00
Amitay Isaacs
db869c5812 selftest: Fix the exit code of make test when run in buildfarm
When make test is run in buildfarm environment (RUN_FROM_BUILD_FARM=1),
last process in make test pipeline is subunit-filter. This subunit-filter
is responsible for converting failure test result to xfail for known
failures. While converting failures to xfail, it sets exitcode=1. If
this is the last process in the pipeline make test fails, which is
the observed behavior in buildfarm.

In autobuild, there is additional process in the pipeline format-subunit
which processes the output of subunit-filter and correctly terminates
with exit code=0. The buildfarm make test failure is fixed by adding
extra filter-subunit in the pipeline, as the extra filter-subunit
exits correctly with exit code=0.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Feb  3 07:00:04 CET 2012 on sn-devel-104
2012-02-03 07:00:04 +01:00
Jeremy Allison
571ee0b1ff Only ask for specific permissions required when setting an ACL.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Feb  3 03:07:33 CET 2012 on sn-devel-104
2012-02-03 03:07:32 +01:00
Jeremy Allison
9fec2c0ea9 Allow a SACL to be sent in cli_set_secdesc(). 2012-02-02 16:28:06 -08:00
Volker Lendecke
fad9727f25 s3: Test for faulty xattr_tdb listxattr
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb  2 22:10:49 CET 2012 on sn-devel-104
2012-02-02 22:10:48 +01:00
Volker Lendecke
da0a7b2fcc s3-xattr_tdb: Fix listxattr
We have to tell the caller how many bytes we actually want
2012-02-02 20:35:28 +01:00
Volker Lendecke
b1a544fc80 s3-vfstest: Add removexattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
dbe9ff2999 s3-vfstest: Add setxattr 2012-02-02 20:35:27 +01:00
Volker Lendecke
0a000f1ca7 s3-vfstest: Add listxattr 2012-02-02 20:35:27 +01:00