Jelmer Vernooij [Wed, 13 May 2009 18:10:57 +0000 (20:10 +0200)]
selftest: Factor generic functionality for buildfarm output into a
separate perl module.
Jelmer Vernooij [Wed, 13 May 2009 17:57:58 +0000 (19:57 +0200)]
Support reporting current time in selftest output.
Jelmer Vernooij [Wed, 13 May 2009 17:42:41 +0000 (19:42 +0200)]
selftest: Add subunit output format.
Jelmer Vernooij [Wed, 13 May 2009 16:48:44 +0000 (18:48 +0200)]
Rename harness2subunit.pl -> tap2subunit to be consistent with the
subunit tools.
Jelmer Vernooij [Wed, 13 May 2009 16:20:34 +0000 (18:20 +0200)]
README: Fix indentation of bullet point.
README.Coding: Use consistent header.
Jelmer Vernooij [Wed, 3 Jun 2009 00:16:57 +0000 (02:16 +0200)]
Move findstatic.pl script to top-level.
Stefan Metzmacher [Wed, 3 Jun 2009 12:11:37 +0000 (14:11 +0200)]
s4:torture/libnetapi: fix netapi detection
We need to set SMB_ENABLE(TORTURE_LIBNETAPI,NO) first
to overwrite the default of YES for MODULES and
then only set it to YES if netapi was found.
metze
Stefan Metzmacher [Tue, 2 Jun 2009 09:54:31 +0000 (11:54 +0200)]
s3:smbd: remove old comment, we support SMB2 signing now
metze
Stefan Metzmacher [Wed, 27 May 2009 15:48:23 +0000 (17:48 +0200)]
s3:smbd: allow SMB2 only if we don't use security = share
metze
Stefan Metzmacher [Wed, 3 Jun 2009 08:49:44 +0000 (10:49 +0200)]
SMB2-CONNECT: make it possible to specific the max write size via --option=torture:smb2maxwrite=12345
metze
Jelmer Vernooij [Tue, 2 Jun 2009 21:07:59 +0000 (23:07 +0200)]
Move mount.cifs/umount.cifs to the top level and remove the outdated copy
in Samba 4.
Volker Lendecke [Thu, 28 May 2009 22:20:10 +0000 (00:20 +0200)]
Support getting gpfs birthtime
Jelmer Vernooij [Tue, 2 Jun 2009 13:00:41 +0000 (15:00 +0200)]
Fix unresolved symbol in python messaging module.
Jelmer Vernooij [Tue, 2 Jun 2009 11:57:08 +0000 (13:57 +0200)]
Fix pythonpath so subunit can be found.
Brad Hards [Mon, 1 Jun 2009 14:26:43 +0000 (16:26 +0200)]
Add support for double type in pidl.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Thu, 23 Apr 2009 09:23:06 +0000 (11:23 +0200)]
Fix finding the LDB header files in the system in pyldb_util.
Jelmer Vernooij [Thu, 23 Apr 2009 09:22:07 +0000 (11:22 +0200)]
Build modules statically by default, as there still seem to be a lot of
issues with those even if shared libs work.
Jelmer Vernooij [Wed, 22 Apr 2009 23:21:47 +0000 (01:21 +0200)]
Fix more unresolved symbols.
Jelmer Vernooij [Wed, 22 Apr 2009 23:20:20 +0000 (01:20 +0200)]
python: Move helper functions for using param into a separate file rather
than linking against the python module.
Jelmer Vernooij [Mon, 20 Apr 2009 16:14:17 +0000 (18:14 +0200)]
Split up Python code a little bit so we don't hav eto link python modules
to each other.
Jelmer Vernooij [Mon, 20 Apr 2009 11:47:31 +0000 (13:47 +0200)]
Build libsamba-util as a shared library.
Jelmer Vernooij [Mon, 20 Apr 2009 10:28:02 +0000 (12:28 +0200)]
Fix dependencies when using shared libraries.
Mathias Dietz [Wed, 27 May 2009 10:03:12 +0000 (12:03 +0200)]
Store winattrs in GPFS
1. Store win attributes in gpfs instead of posix bits.
2. use of path based winattr calls of gpfs.
Signed-off-by: Mathias Dietz <mdietz@de.ibm.com>
Günther Deschner [Tue, 2 Jun 2009 12:52:53 +0000 (14:52 +0200)]
nss_wrapper: prefix function pointer names in struct nwrap_ops.
Guenther
Günther Deschner [Tue, 2 Jun 2009 10:18:59 +0000 (12:18 +0200)]
torture: minor fixes to torture macro text output.
Guenther
Günther Deschner [Sun, 31 May 2009 00:20:29 +0000 (02:20 +0200)]
nss_wrapper: resort calls to move public calls to the end.
Guenther
Günther Deschner [Sat, 30 May 2009 23:01:13 +0000 (01:01 +0200)]
nss_wrapper: add nwrap_ops function pointer table.
Guenther
Günther Deschner [Sat, 30 May 2009 22:54:56 +0000 (00:54 +0200)]
nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.
Guenther
Günther Deschner [Sat, 30 May 2009 22:50:42 +0000 (00:50 +0200)]
nss_wrapper: fix typo while checking for getgrid_r support.
Metze, this has been in here for a long time, please check.
Guenther
Volker Lendecke [Mon, 2 Feb 2009 10:52:08 +0000 (11:52 +0100)]
Add a "connectpath" operation to the shadow_copy2 module
Volker Lendecke [Thu, 28 May 2009 17:20:14 +0000 (19:20 +0200)]
Add SMB_VFS_CONNECTPATH operation
This is required for the shadow_copy2 module and "wide links = no". The file
system snapshots by nature are typically outside of share directory. So the
REALPATH result fails the wide links = no test.
Volker Lendecke [Fri, 30 Jan 2009 14:04:44 +0000 (15:04 +0100)]
Remove a variable used just once
Jeremy Allison [Mon, 1 Jun 2009 21:36:34 +0000 (14:36 -0700)]
Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of "workgroup"
Unify the handling of the sessionsetup parsing so we don't get different
results when parsing a guest reply than an ntlmssp reply.
Jeremy.
Andrew Tridgell [Mon, 1 Jun 2009 12:04:00 +0000 (22:04 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Mon, 1 Jun 2009 12:03:20 +0000 (22:03 +1000)]
use the unique flag on ldb attributes to optimise & clauses
When a attribute is marked unique we know that if we find a match
it will be the only possible match. This means that in a list of
subtrees connected by an &, it is best to first load the index values
for the unique entries, as if they find something then we know we
won't have to look any further.
This helps with searches like this:
(&(objectclass=user)(samaccountname=tridge))
the old code would first have loaded the very large index for the
objectclass=user attribute, and then loaded the single entry for
samaccountname=tridge. Now we load the samaccountname=tridge entry
first, notice that it gives us a single result, and stop, thereby
skipping the load of the objectclass=user index record completely.
Andrew Kroeger [Mon, 1 Jun 2009 09:36:50 +0000 (04:36 -0500)]
s4:mkproto: Add NET_API_STATUS return type.
The recently added LIBNETAPI torture tests use NET_API_STATUS as a return type
for some functions. The torture/libnetapi/proto.h private header that was being
generated by mkproto.pl did not include a prototype for the test_netuseradd()
function, as it did not know how to handle the NET_API_STATUS return type.
Andrew Kroeger [Mon, 1 Jun 2009 00:36:55 +0000 (19:36 -0500)]
gitignore: Ignore additional auto-generated file
Andrew Tridgell [Mon, 1 Jun 2009 06:37:28 +0000 (16:37 +1000)]
we don't need the unique checks in the samldb code now
These attributes now use the unique indexing flag
Andrew Tridgell [Mon, 1 Jun 2009 06:36:56 +0000 (16:36 +1000)]
mark samAccountName, objectGUID and objectSID as unique indexed
Andrew Tridgell [Mon, 1 Jun 2009 06:36:21 +0000 (16:36 +1000)]
added support for unique indexing in ldb
When a attribute is marked as LDB_ATTR_FLAG_UNIQUE_INDEX then attempts
to add a 2nd record that has the same attribute value for this
attribute as another record will fail.
This provides a much more efficient mechanism for ensuring that
attributes like objectGUID are unique
Andrew Tridgell [Mon, 1 Jun 2009 03:42:51 +0000 (13:42 +1000)]
fix uninitialised use of samctx
Andrew Tridgell [Mon, 1 Jun 2009 03:13:07 +0000 (13:13 +1000)]
overallocate all records by 25%
This greatly reduces the fragmentation of databases where records
tend to grow slowly by a small amount each time. The case where this
is most seen is the ldb index records. Adding this overallocation
reduced the size of the resulting database by more than 20x when
running a test that adds 10k users.
Andrew Tridgell [Mon, 1 Jun 2009 03:11:39 +0000 (13:11 +1000)]
auto-repack in transactions that expand the tdb
The idea behind this is to recover from badly fragmented free
lists. Choosing the point where the file expands is fairly arbitrary,
but seems to work well.
Andrew Tridgell [Mon, 1 Jun 2009 02:58:48 +0000 (12:58 +1000)]
when comp_num is zero, the case folded DN is always ""
This fixes a bug where we would look at an uninitialised
dn->linearized
Andrew Tridgell [Mon, 1 Jun 2009 00:39:30 +0000 (10:39 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Sun, 31 May 2009 09:14:06 +0000 (11:14 +0200)]
Fix some nonempty blank lines
Volker Lendecke [Sun, 31 May 2009 09:06:23 +0000 (11:06 +0200)]
Fix a C++ warning
Günther Deschner [Sat, 30 May 2009 20:43:17 +0000 (22:43 +0200)]
nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
Jeremy Allison [Sat, 30 May 2009 20:28:03 +0000 (13:28 -0700)]
Fix bug #6421 - POSIX read-only open fails on read-only shares.
The change to smbd/trans2.c opens up
SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2
holes that would have been exposed by allowing POSIX_OPENS on readonly shares,
and their ability to set arbitrary flags permutations. The O_CREAT ->
O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT)
that previously was being passed down to the open syscall.
Jeremy.
Volker Lendecke [Sat, 30 May 2009 16:24:14 +0000 (18:24 +0200)]
Move a comment where it belongs
Simo Sorce [Sat, 30 May 2009 14:16:31 +0000 (10:16 -0400)]
Make it possible to change machine account sids
Fixes bug #6081
Simo Sorce [Sat, 30 May 2009 13:48:38 +0000 (09:48 -0400)]
Remove trailing whitespaces
Jeremy Allison [Sat, 30 May 2009 09:30:16 +0000 (11:30 +0200)]
Simplify the dropbox patch
Volker Lendecke [Sat, 30 May 2009 08:12:53 +0000 (10:12 +0200)]
Move ads flags mapping to lib/
Volker Lendecke [Sat, 30 May 2009 07:54:14 +0000 (09:54 +0200)]
talloc_strdup "dir" in wb_context_init
Volker Lendecke [Sat, 30 May 2009 07:49:17 +0000 (09:49 +0200)]
Handle EINTR in async_sock.c
Günther Deschner [Sat, 30 May 2009 00:25:11 +0000 (02:25 +0200)]
s3-selftest: Fix invalid /etc/group file used with nss_wrapper.
Found by torture test.
Guenther
Kai Blin [Tue, 21 Apr 2009 07:58:42 +0000 (09:58 +0200)]
libwbclient: Store the winbind socket dir to use in the wb_context
Kai Blin [Wed, 1 Apr 2009 12:22:05 +0000 (14:22 +0200)]
libwbclient: Silence a compiler warning
Kai Blin [Thu, 16 Apr 2009 12:53:36 +0000 (14:53 +0200)]
libwbclient: Add async call framework.
Volker Lendecke [Wed, 13 May 2009 13:46:35 +0000 (15:46 +0200)]
Re-Add the "dropbox" functionality with -wx rights on a directory
Günther Deschner [Fri, 29 May 2009 07:21:11 +0000 (09:21 +0200)]
nss_wrapper: add test_nwrap_membership to testsuite.
Guenther
Günther Deschner [Fri, 29 May 2009 20:37:07 +0000 (22:37 +0200)]
nss_wrapper: restructure parts of the testsuite.
Guenther
Günther Deschner [Fri, 29 May 2009 07:19:16 +0000 (09:19 +0200)]
nss_wrapper: add support for getgrouplist.
Guenther
Jeremy Allison [Fri, 29 May 2009 21:58:34 +0000 (14:58 -0700)]
Make cli_nt_delete_on_close() async.
Jeremy.
Michael Adam [Fri, 29 May 2009 21:48:26 +0000 (23:48 +0200)]
s3:pdbedit: fix "format not a string literal and no format arguments" warnings
Michael
Michael Adam [Thu, 28 May 2009 23:12:47 +0000 (01:12 +0200)]
s3:add prototype of map_nt_error_from_wbcErr() to proto.h
Michael
Michael Adam [Thu, 28 May 2009 23:08:36 +0000 (01:08 +0200)]
libsmbclient: make SMBC_module_terminate() static.
Michael
Michael Adam [Thu, 28 May 2009 23:02:46 +0000 (01:02 +0200)]
s3:pam_smbpass: make smb_update_db() static.
Michael
Volker Lendecke [Fri, 29 May 2009 19:27:53 +0000 (21:27 +0200)]
Add smbldap_talloc_single_blob()
Günther Deschner [Fri, 29 May 2009 17:22:43 +0000 (19:22 +0200)]
s4-smbtorture: fix the build w/o libnetapi.
This is surely the wrong fix, but I could not figure out why the samba4 build
system adds the init function although the m4 macro had switched off the torture
libnetapi subsystem when the headers and libs were not found.
Can one of the samba4 build gurus please have a look ?
Guenther
Volker Lendecke [Fri, 29 May 2009 16:28:36 +0000 (18:28 +0200)]
util: Change license on tevent_unix to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 12:15:51 +0000 (14:15 +0200)]
s3 async wbclient: Change license to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 12:14:50 +0000 (14:14 +0200)]
async_sock: Change license to LGPLv3+
Kai Blin [Fri, 29 May 2009 12:06:50 +0000 (14:06 +0200)]
s3 wbc_async: Fix copyright notice cut&paste error.
Volker created all these prototypes, I just created the file and moved them over.
Signed-off-by: Kai Blin <kai@samba.org>
Günther Deschner [Fri, 29 May 2009 16:11:39 +0000 (18:11 +0200)]
Revert "s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3."
This reverts commit
8da15dc29a920cd6f4d2ed96e8de4fbcd9d1ba11.
Günther Deschner [Fri, 29 May 2009 14:59:35 +0000 (16:59 +0200)]
s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3.
Guenther
Günther Deschner [Fri, 29 May 2009 14:49:29 +0000 (16:49 +0200)]
s4-smbtorture: add NETAPI-GROUP test.
Guenther
Günther Deschner [Fri, 29 May 2009 14:39:04 +0000 (16:39 +0200)]
s4-smbtorture: add NETAPI-USER test.
Guenther
Günther Deschner [Fri, 29 May 2009 16:08:02 +0000 (18:08 +0200)]
s3-passdb: fix uninitialized variable in local_password_change().
Guenther
Simo Sorce [Sun, 17 May 2009 00:36:28 +0000 (20:36 -0400)]
Consolidate create/delete account paths in pdbedit
Use common paths like for smbpasswd, so that all utilities
behave the same way. As for smbpasswd this changes the behavior
of pdbedit to create/delete unix users is the add/delete user
scripts are provided, or ldapsam:editposix is configured.
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Sat, 16 May 2009 22:10:39 +0000 (18:10 -0400)]
Consolidate user create/delete paths in smbpasswd
This patch changes the way smbpasswd behaves when adding/deleting users.
smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if
add/delete user scripts are configured then they are used to create or
delete unix users as well. If the scripts are not defined the behavioris
unchanged.
This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow
automatic creation/deletion of users.
Signed-off-by: Günther Deschner <gd@samba.org>
Günther Deschner [Fri, 29 May 2009 14:36:44 +0000 (16:36 +0200)]
s4-smbtorture: add very basic LIBNETAPI testsuite.
Guenther
Günther Deschner [Thu, 28 May 2009 14:14:18 +0000 (16:14 +0200)]
s3-selftest: enable LOCAL-NSS-WRAPPER test against samba 3.
Guenther
Günther Deschner [Thu, 28 May 2009 14:13:33 +0000 (16:13 +0200)]
s4-smbtorture: add a very basic NSS-WRAPPER testsuite.
Guenther
Günther Deschner [Thu, 28 May 2009 14:08:04 +0000 (16:08 +0200)]
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Guenther
Günther Deschner [Fri, 29 May 2009 11:18:23 +0000 (13:18 +0200)]
s4-smbtorture: remove trailing whitespace.
Guenther
Günther Deschner [Fri, 29 May 2009 11:16:25 +0000 (13:16 +0200)]
s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
validation level 6.
Guenther
Günther Deschner [Fri, 29 May 2009 11:15:27 +0000 (13:15 +0200)]
s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.
Guenther
Günther Deschner [Fri, 29 May 2009 10:42:15 +0000 (12:42 +0200)]
s3-netlogon: return proper error code for unsupported validation class.
Guenther
Günther Deschner [Fri, 29 May 2009 10:41:41 +0000 (12:41 +0200)]
s3-rpc_server: increase max number of open policy handles per pipe to 2048.
Guenther
Kumar Thangavelu [Fri, 29 May 2009 09:27:38 +0000 (11:27 +0200)]
s3/getdcname: Fix 'net' crash.
'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.
Signed-off-by: Volker Lendecke <vl@samba.org>
Karolin Seeger [Fri, 29 May 2009 07:49:49 +0000 (09:49 +0200)]
s3/docs: Fix typo.
This fixes bug #4341.
Thanks to Michael Cartmell <michael.cartmell [at] thomson.com> for reporting!
Karolin
Volker Lendecke [Fri, 29 May 2009 07:42:31 +0000 (09:42 +0200)]
Fix some nonempty blank lines
Andrew Bartlett [Fri, 29 May 2009 07:12:06 +0000 (17:12 +1000)]
Win2k3 don't allow creating of domain trust accounts over SAMR
Andrew Bartlett [Fri, 29 May 2009 07:02:19 +0000 (17:02 +1000)]
s4:torture Don't try to Close a Deleted handle
Andrew Kroeger [Fri, 29 May 2009 01:18:33 +0000 (20:18 -0500)]
s4: Add additional 2-letter SID/RID mappings.
Information from http://msdn.microsoft.com/en-us/library/
aa379602(VS.85).aspx
Andrew Kroeger [Fri, 29 May 2009 01:02:42 +0000 (20:02 -0500)]
s4: Add additional well-known SID's/RID's.
Information was found at http://support.microsoft.com/kb/243330
Not all well-known identifiers were included - only those necessary for
enhancing the 2-letter mappings used in SDDL strings were added.
Andrew Bartlett [Fri, 29 May 2009 02:15:28 +0000 (12:15 +1000)]
s4:setup Remove generated attributes from provision_configuration
Incorrectly added in
95eeef91d3ed7daf8e19029eadcc610caf26db63, and
found by OpenLDAP backend tests run by Theodor Chirana <office@adaptcom.ro>
Andrew Bartlett
Andrew Bartlett [Thu, 28 May 2009 22:35:59 +0000 (08:35 +1000)]
s4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES