1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

35026 Commits

Author SHA1 Message Date
Andreas Schneider
8ece780d1b s3-build: Remove broken RPC modules support.
With the current module support for rpc we're not able to call the init
functions with the rpc callback structure. So init functions and
shutdown functions aren't called. These init functions are needed to
setup pre requirements like migrating the printer databases and register
at the endpoint mapper. The shutdown functions cleanup memory and
deregister from the endpoint mapper.
2011-01-04 11:23:21 +01:00
Andreas Schneider
9aa8763976 s3-smbd: Call all the rpc services in the right order. 2011-01-04 11:23:21 +01:00
Stefan Metzmacher
ddbbc7b12a s3:net_rpc_vampire_keytab: don't return -1 on success (bug #7899)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan  3 19:05:11 CET 2011 on sn-devel-104
2011-01-03 19:05:11 +01:00
Günther Deschner
4316895bc7 s3-waf: fix the build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan  3 18:19:01 CET 2011 on sn-devel-104
2011-01-03 18:19:01 +01:00
Stefan Metzmacher
2d466b41cd s3:librpc: use netsec_outgoing_sig_size() instead of a hardcoded signature
size

metze
2011-01-03 16:44:29 +01:00
Michael Adam
3e52b99a31 s3:winbindd/idmap_ad.c: update my C
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Jan  3 09:19:07 CET 2011 on sn-devel-104
2011-01-03 09:19:07 +01:00
Michael Adam
55f7a0417f s3:winbindd/idmap_util.c: add my C 2011-01-03 08:34:04 +01:00
Michael Adam
5f969d7a94 s3:winbindd/idmap.c: add my C 2011-01-03 08:34:04 +01:00
Stefan Metzmacher
81a167b5df s3: Happy New Year 2011
metze
2011-01-02 17:55:05 +01:00
Volker Lendecke
593c004b74 s3: Fix a memleak in receive_getdc_response
It's the free_packet() that was missing. On the way, I've changed the
"return false;" to a "goto fail;", which makes the patch a bit larger.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan  2 14:27:56 CET 2011 on sn-devel-104
2011-01-02 14:27:56 +01:00
Michael Adam
45cb9bba37 s3:net: make idmap_store_secret static.
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Jan  2 13:41:07 CET 2011 on sn-devel-104
2011-01-02 13:41:07 +01:00
Michael Adam
7f256a740c s3:net: fix the usage for net idmap secret (removing alloc) 2011-01-02 12:51:55 +01:00
Michael Adam
11016f2a6b s3:net: remove alloc parameter from idmap_store_secret() (net idmap store). 2011-01-02 12:51:55 +01:00
Michael Adam
2d3a8b196f s3:idmap_ldap: remove special handling of alloc secret (not used any more). 2011-01-02 12:51:54 +01:00
Michael Adam
52b37de5d8 s3:idmap_ldap: remove unused idmap_ldap_alloc_context. 2011-01-02 12:51:54 +01:00
Michael Adam
91e7430817 s3:idmap_ldap: remove alloc context member from ldap_idmap_context 2011-01-02 12:51:54 +01:00
Michael Adam
5908bd62b5 s3:idmap_ldap: remove use of alloc context from idmap_ldap_allocate_id(). 2011-01-02 12:51:54 +01:00
Michael Adam
510bf2d591 s3:idmap_ldap: remove unused idmap_ldap_alloc_close_destructor(). 2011-01-02 12:51:54 +01:00
Michael Adam
f83fa1ec20 s3:idmap_ldap: remove unused idmap_ldap_alloc_init(). 2011-01-02 12:51:54 +01:00
Michael Adam
632e232fc4 s3:idmap_ldap: don't call idmap_ldap_alloc_init in idmap_ldap_init.
Call verify_idpool() instead.
2011-01-02 12:51:54 +01:00
Michael Adam
58508c9726 s3:idmap_ldap: remove use of the ldap_idmap_alloc_context from verify_idpool().
Allocation is now subsumed in the idmap ldap config.
This is the beginning of the removal of the idmap ldap alloc parameters.
2011-01-02 12:51:54 +01:00
Jeremy Allison
9d754da112 Fix memory leak I introduced when refactoring unexpected packet code.
Found by Volker.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sun Jan  2 06:11:13 CET 2011 on sn-devel-104
2011-01-02 06:11:13 +01:00
Volker Lendecke
9ccef4e62b s3: Remove unused mem_ctx arg from set_getdc_request
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan  1 23:00:24 CET 2011 on sn-devel-104
2011-01-01 23:00:24 +01:00
Volker Lendecke
b2ba2b956e s3: Factor out prep_getdc_request 2011-01-01 22:14:19 +01:00
Volker Lendecke
e0abc5c15f s3: cli_send_mailslot -> cli_prep_mailslot 2011-01-01 22:14:19 +01:00
Volker Lendecke
bb6da9f06c s3: Fix some nonempty blank lines
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan  1 16:03:23 CET 2011 on sn-devel-104
2011-01-01 16:03:23 +01:00
Volker Lendecke
659bb646e4 s3: Add some const to receive_getdc_response
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 31 14:48:57 CET 2010 on sn-devel-104
2010-12-31 14:48:57 +01:00
Volker Lendecke
ba15b7af07 s3: Add some const to send_getdc_request 2010-12-31 14:02:04 +01:00
Volker Lendecke
8e861852c0 s3: Fix some nonempty blank lines
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 31 10:58:31 CET 2010 on sn-devel-104
2010-12-31 10:58:31 +01:00
Stefan Metzmacher
f1d15ea54c s3:lib/netapi: don't set SAMR_FIELD_FULL_NAME if we just want to set the account name (bug #7896)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 30 18:09:13 CET 2010 on sn-devel-104
2010-12-30 18:09:13 +01:00
Volker Lendecke
d05fb4b7b7 s3: Fix two uninitialized variables
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Dec 30 12:52:47 CET 2010 on sn-devel-104
2010-12-30 12:52:47 +01:00
Volker Lendecke
86ff8cf227 s3: Allow more control over smbsock_[any_]connect
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
2010-12-29 23:30:44 +01:00
Jeremy Allison
9b31f6ab6c Fix bug #7892 - open_file_fchmod() leaves a stale lock.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 29 02:15:23 CET 2010 on sn-devel-104
2010-12-29 02:15:23 +01:00
Volker Lendecke
4622812a41 s3: Make name_query return NTSTATUS
Also use talloc for the result

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 28 18:21:05 CET 2010 on sn-devel-104
2010-12-28 18:21:05 +01:00
Volker Lendecke
28d997a890 s3: AllowDebugChange is gone 2010-12-28 17:18:14 +01:00
Volker Lendecke
5717114318 s3: Make node_status_query return NTSTATUS
Also make the result talloc'ed

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 28 13:46:59 CET 2010 on sn-devel-104
2010-12-28 13:46:59 +01:00
Volker Lendecke
e1ab3c3470 s3: Remove an ancient typedef 2010-12-28 12:59:11 +01:00
Volker Lendecke
b0ff97d8d3 s3: Fix some typos 2010-12-28 12:59:11 +01:00
Stefan Metzmacher
c604388ec3 s3:winbindd: remove useless ';'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 28 12:45:20 CET 2010 on sn-devel-104
2010-12-28 12:45:20 +01:00
Stefan Metzmacher
e1de884eaa s3:selftest: mark samba3.posix_s3.smb2.lock (dc).rw-exclusive as known to fail
This sometimes fails like this:

[218/271 in 22m22s] samba3.posix_s3.smb2.lock (dc)
UNEXPECTED(failure): samba3.posix_s3.smb2.lock (dc).rw-exclusive
REASON: _StringException: _StringException: ../torture/smb2/lock.c:406: status was NT_STATUS_END_OF_FILE, expected NT_STATUS_OK: (../torture/smb2/lock.c:406)

command: LD_LIBRARY_PATH=/memdisk/tridge/flakey/b18675/source3/source3/bin/shared:/memdisk/tridge/flakey/b18675/source3/source3/bin: bin/smbtorture4 --configfile=$SMB_CONF_PATH --maximum-runtime=1200 --target=samba3 --basedir=/memdisk/tridge/flakey/b18675/source3/source3/st --option="torture:winbindd_netbios_name=$SERVER" --option="torture:winbindd_netbios_domain=$DOMAIN" --option=torture:localdir=/memdisk/tridge/flakey/b18675/source3/source3/st/dc/share --option=torture:sharedelay=100000 //$SERVER_IP/tmp -U$USERNAME%$PASSWORD smb2.lock 2>&1 | ../selftest/filter-subunit --prefix "samba3.posix_s3.smb2.lock (dc)."
expanded command: LD_LIBRARY_PATH=/memdisk/tridge/flakey/b18675/source3/source3/bin/shared:/memdisk/tridge/flakey/b18675/source3/source3/bin: bin/smbtorture4 --configfile=/memdisk/tridge/flakey/b18675/source3/source3/st/client/client.conf --maximum-runtime=1200 --target=samba3 --basedir=/memdisk/tridge/flakey/b18675/source3/source3/st --option="torture:winbindd_netbios_name=LOCALDC2" --option="torture:winbindd_netbios_domain=SAMBA-TEST" --option=torture:localdir=/memdisk/tridge/flakey/b18675/source3/source3/st/dc/share --option=torture:sharedelay=100000 //127.0.0.2/tmp -Utridge%localdc2pass smb2.lock 2>&1 | ../selftest/filter-subunit --prefix "samba3.posix_s3.smb2.lock (dc)."
ERROR: Testsuite[samba3.posix_s3.smb2.lock (dc)]
REASON: Exit code was 1

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 27 12:08:51 CET 2010 on sn-devel-104
2010-12-27 12:08:51 +01:00
Stefan Metzmacher
e9dddc55e3 s3:libsmb: use 16 zero bytes as channel binding checksum in the gssapi checksum (bug #7883)
This fixes SMB session setups with kerberos against some closed
source SMB servers.

The new behavior matches heimdal and mit.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 23 09:38:43 CET 2010 on sn-devel-104
2010-12-23 09:38:43 +01:00
Jeremy Allison
30d29e64cb All calls to event_add_to_select_args() call GetTimeOfDay() and
pass this in as the &now parameter. Push this call inside of
event_add_to_select_args() to the correct point so it doesn't
get called unless needed.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 23 01:08:11 CET 2010 on sn-devel-104
2010-12-23 01:08:11 +01:00
Volker Lendecke
03b8b8e199 s3: Remove unused open_any_socket_out
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec 22 17:27:29 CET 2010 on sn-devel-104
2010-12-22 17:27:29 +01:00
Volker Lendecke
5d4ac40f69 s3: Use smbsock_any_connect in winbind 2010-12-22 16:39:15 +01:00
Volker Lendecke
d5188fcd18 s3: Retry *SMBSERVER in nb_connect 2010-12-22 16:39:15 +01:00
Volker Lendecke
3ae7ef73b0 s3: Test smbsock_any_connect 2010-12-22 16:39:15 +01:00
Volker Lendecke
d8e3d0af9e s3: Add smbsock_any_connect 2010-12-22 16:39:15 +01:00
Volker Lendecke
49cd92b218 s3: Add an async smbsock_connect
This connects to 445 and after 5 milliseconds also to 139. It treats a netbios
session setup failure as equivalent as a TCP connect failure. So if 139 is
faster but fails the nb session setup, the 445 still has the chance to succeed.
2010-12-22 16:39:15 +01:00
Volker Lendecke
02a74fd36d s3: Add async cli_session_request
This does not do the redirects, but I think that might be obsolete anyway
2010-12-22 16:39:15 +01:00
Volker Lendecke
444dcc59c2 s3: Add some const to name_mangle() 2010-12-22 16:39:14 +01:00
Günther Deschner
87934d8c79 s3-waf: fix the build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 22 15:55:11 CET 2010 on sn-devel-104
2010-12-22 15:55:11 +01:00
Stefan Metzmacher
d9be7e9368 s3:lib/gencache: fix memory leak in error path
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 22 15:08:30 CET 2010 on sn-devel-104
2010-12-22 15:08:30 +01:00
Günther Deschner
94e83e385e s3-printing: fix crash bug in print_spool_open().
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 22 14:21:58 CET 2010 on sn-devel-104
2010-12-22 14:21:58 +01:00
Günther Deschner
d0e164458d s3-spoolss: handle NTTIME(0) as "01/01/1601" REG_SZ in driver dates.
Guenther
2010-12-22 13:33:18 +01:00
Stefan Metzmacher
2c657d8705 s3:libsmb/namequery.c: don't leak 'pserver'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 22 09:54:31 CET 2010 on sn-devel-104
2010-12-22 09:54:30 +01:00
Jeremy Allison
88c3e505e9 Fix a warning message.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 22 03:59:18 CET 2010 on sn-devel-104
2010-12-22 03:59:18 +01:00
Jeremy Allison
e8f7c60ec2 My algorithm for determining whan an incoming sequence number can be allowed is incorrect.
(I based it on the text in MS-SMB2, silly me :-). Fix it so incoming sequence numbers
can range over the entire allowable bitmap range. This fixes a repeatable
disconnect against Win7.

Jeremy.
2010-12-21 18:07:52 -08:00
Stefan Metzmacher
7a47aed770 s3:cli_np_tstream: if SMBtrans is desired, the readv needs to wait for the last writev chunk.
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 21 17:43:06 CET 2010 on sn-devel-104
2010-12-21 17:43:06 +01:00
Matthias Dieter Wallnöfer
13fa6743d8 s3/s4:auth SPNEGO - adaptions for the removed "const" from OIDs
This is needed in order to suppress warnings.
2010-12-21 15:10:37 +11:00
Jeremy Allison
0a5f4f523f Keep track of the sparse status of an open file handle. Allows bypass of
strict allocation on sparse files. Files opened as POSIX opens are always
sparse.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 21 04:12:22 CET 2010 on sn-devel-104
2010-12-21 04:12:22 +01:00
Jeremy Allison
8998f4b013 Added call out to a Linux-compatible fallocate() when we need to extend a file
allocation extent without changing end-of-file size.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104
2010-12-21 02:41:23 +01:00
Ken Harris
09aea03813 CREATE in a compound CREATE/NOTIFY sequence was being passed through set_operation_credits()
twice (ultimately perhaps because of bug 7331 involving this compound sequence and the need
to be ready for any incoming CANCEL of the NOTIFY). This had the server thinking it had
granted more credit than it actually had, which lead to zero-credits being granted in interim
NOTIFY responses.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 20 20:59:55 CET 2010 on sn-devel-104
2010-12-20 20:59:55 +01:00
Jeremy Allison
e7707d5abd From metze's work on sparse attributes. FILE_ATTRIBUTE_SPARSE is valid on get but not on set.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 20 20:11:22 CET 2010 on sn-devel-104
2010-12-20 20:11:22 +01:00
David Disseldorp
139e2cbb13 s3-printing: fix printer_list_traverse()
The tdb traverse function returns the number of elements traversed, or
less than zero on error, printer_list_traverse() is incorrectly checking
for non-zero return.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Dec 20 18:44:41 CET 2010 on sn-devel-104
2010-12-20 18:44:41 +01:00
Volker Lendecke
bfc4fe4012 s3: Remove unused "retry" from cli_start_connection
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
2010-12-20 17:58:33 +01:00
Volker Lendecke
d096de56b1 s3: Remove unused "retry" from cli_full_connection 2010-12-20 17:10:58 +01:00
Volker Lendecke
660190632e s3: Always retry the DC connection in auth_domain
The only condition that cli_full_connection marks as non-retryable is the basic
name lookup and TCP connect. To me this is pretty fishy. For example if the
negprot fails, this is supposed to be more retryable than a NetBIOS name lookup
failure? I'd rather think the opposite is true.

Jeremy, this is code from 2002, 389a16d9d5. If you have any comments from
back then, let me know :-)

Volker
2010-12-20 17:10:57 +01:00
Volker Lendecke
09cccee273 s3: Remove some unused variables 2010-12-20 17:10:57 +01:00
Volker Lendecke
fd49ed238c s3: "make etags" should not grow TAGS infinitely... 2010-12-19 23:25:07 +01:00
Volker Lendecke
c6b5136f02 s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct
2010-12-19 23:25:06 +01:00
Volker Lendecke
92e138f920 s3: Use the right uid winbindd_raw_kerberos_login() 2010-12-19 23:25:06 +01:00
Volker Lendecke
a881d6ab86 wb_reqtrans is not used in libwbclient 2010-12-19 23:25:06 +01:00
Volker Lendecke
c0a7c9f991 Move wbc_async.[ch] to its only user: smbtorture3 2010-12-19 23:25:06 +01:00
Volker Lendecke
6bfd745c61 libwbclient: Put the wb_reqtrans definitions into wb_reqtrans.h 2010-12-19 23:25:06 +01:00
Volker Lendecke
a159958065 s3: wcache_invalidate_samlogon only needs the SID 2010-12-19 23:25:06 +01:00
Volker Lendecke
e113b1c64f s3: netsamlogon_clear_cached_user only needs the SID 2010-12-19 23:25:06 +01:00
Volker Lendecke
ff5f767d0e s3: Remove two pointless slprintf calls 2010-12-19 23:25:06 +01:00
Volker Lendecke
d39fedaa69 s3: FreeBSD has getpeereid(), use it 2010-12-19 23:25:06 +01:00
Volker Lendecke
d082701ea5 s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY 2010-12-19 23:25:06 +01:00
Volker Lendecke
356add8a63 s3: Fix some nonempty blank lines 2010-12-19 23:25:06 +01:00
Volker Lendecke
cf74a4857c s3: Did I say this module is from hell? 2010-12-19 23:25:06 +01:00
Volker Lendecke
98a2fff2e5 s3: re-add some debugs to check_reduced_name 2010-12-19 23:25:06 +01:00
Volker Lendecke
43e42b4e77 s3: Fix some typos 2010-12-19 23:25:06 +01:00
Volker Lendecke
d60d49efb0 s3: Fix serverid_exists
In the cluster case it can happen that a node just died and we did not yet have
the time to clean up serverid.tdb. If the corresponding serverid.tdb record
that represented a process was migrated away from the dead record, it
represents existence of a process where it is already dead.
2010-12-19 23:25:06 +01:00
Jeremy Allison
716ea734e4 Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter.
It turns out we need the fallocate operations to be able to both
allocate and extend filesize, and to allocate and not extend
filesize, and posix_fallocate can only do the former. So by defining
the vfs op as posix_fallocate we lose the opportunity to use any
underlying syscalls (like Linux fallocate) that can do the latter
as well.

We don't currently use the non-extending filesize call, but now
I've changed the vfs op definition we can in the future. For the
moment simply map the fallocate op onto posix_fallocate for the
VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the
VFS_FALLOCATE_KEEP_SIZE case.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
2010-12-18 08:59:27 +01:00
Jeremy Allison
16d6da8a9b Move checks inside file_set_sparse() to allow it to be called from anywhere.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 17 21:56:38 CET 2010 on sn-devel-104
2010-12-17 21:56:38 +01:00
Jeremy Allison
fe50632d54 file_set_sparse needs to be a handle based call. 2010-12-17 21:11:04 +01:00
Björn Jacke
192c4a145f s3:smbd: implement FSCTL_SET_SPARSE more correctly
this is a port of a patch from metze for 3.3:

We don't do the "strict allocation" when the sparse bit isn't
set, but that shouldn't matter.

We now allow windows applications to set and unset the sparse
bit.

Note that in order to implement this 100% like described
in [MS-FSA], we'd have to change our data model and support
the sparse flag per stream.
2010-12-17 21:11:04 +01:00
Jeremy Allison
2c10c34968 Update our attribute flags. 2010-12-17 21:11:04 +01:00
Björn Jacke
5c27dd67c8 s3:smbd: add file_set_sparse() function
this is based on a patch for 3.3 from metze
2010-12-17 21:11:04 +01:00
Björn Jacke
9634d03339 s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too 2010-12-17 21:11:04 +01:00
Björn Jacke
480042ddf9 s3: remove set_sparse_flag
we need to determine sparseness from the sparse flag we store not from the
allocation size on the POSIX filesystem. This is how Windows works - in the
first place sparseness is a file flag, not the allocation state of the file

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 21:11:04 +01:00
Björn Jacke
ebe5600615 s3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags 2010-12-17 21:11:04 +01:00
Stefan Metzmacher
1dc2fa7616 s3:net ads dns register: use "cluster addresses" option if configured (bug #7871)
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 17 16:49:14 CET 2010 on sn-devel-104
2010-12-17 16:49:14 +01:00
Michael Adam
5e83a05009 s3:net ads dns register: add support for specifying addresse on the commandline (bug #7871)
In the clustering case, this is also made the only possiblity to do dns updates,
since the list addresses on the local interfaces is not suitable in that case.

This fixes the "net ads dns register" part of bug #7871.
It might be extended by a parsing of the "cluster addresses" setting.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:47 +01:00
Michael Adam
4d91f98b43 s3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug# 7871)
This generalized form of net_update_dns() will be used to
add support for specifying a list of addresses on the commandline
of "net ads dns register".

This prepares the "net ads dns register" part of the fix for bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Michael Adam
b8f19df53e s3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug #7871)
In a clustered environment, registering the set of ip addresses that are
assigned to the interfaces of the node that performs the join does usually
not have the desired effect, since the local interfaces do not carry
complete set of the cluster's public IP addresses.  And it can also contain
internal addresses that should not be visible to the outside at all.
In order to do dns updates in a clustererd setup, use net ads dns register.

This fixes the net ads join part of bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Günther Deschner
f08fdfae27 s3-net: fix net sid type build warning.
Guenther
2010-12-17 11:33:05 +01:00
Björn Jacke
7f572dfe52 s3/net: tz argument should be NULL of course
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Dec 17 01:48:40 CET 2010 on sn-devel-104
2010-12-17 01:48:39 +01:00
Jeremy Allison
34c0d016d7 Do more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is kept up to date.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 23:41:06 CET 2010 on sn-devel-104
2010-12-16 23:41:06 +01:00
Günther Deschner
1b293c90be spoolss: fill in PerMachineConnections add and delete IDL.
Guenther
2010-12-16 10:52:50 +01:00
Jeremy Allison
a06519a579 Fix old bug in openX code, exposed when "strict allocate" is set to true.
We need to return the file size here, not the allocation size, but
we were not updating the stat struct after the vfs_set_filesize()
call. Ensure we always use fresh data in openX replies.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 02:37:58 CET 2010 on sn-devel-104
2010-12-16 02:37:57 +01:00
Jeremy Allison
ecf48af135 Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f) 2010-12-15 14:09:48 -08:00
Jeremy Allison
b3630b4739 Fix bug 7866 - "net" in v3-6-test broken.
Someone wasn't careful about testing when not running as root :-).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104
2010-12-15 20:45:25 +01:00
Stefan Metzmacher
8b47fcea04 s3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()
This also makes use of tstream_cli_np_open() to get the tstream.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 15 16:12:30 CET 2010 on sn-devel-104
2010-12-15 16:12:30 +01:00
Stefan Metzmacher
0342ed3ee0 s3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
122dc1e213 s3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
9a14dace22 s3:rpc_client/rpc_transport_tstream: timeout should be unsigned int
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
e55426fe79 s3:rpc_client: let rpc_transport_tstream_init() create read and write queue
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
07ba35adcb s3:libsmb: add tstream_cli_np_get_cli_state()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0f9e963b6 s3:libsmb: add tstream_cli_np_set_timeout()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
0df669e141 s3:libsmb: add tstream_cli_np_use_trans() and the needed logic
tstream_cli_np_use_trans() defers the next tstream_writev
to the next tstream_readv and send both as an SMBtrans request.

metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
e08c324fc5 s3:libsmb: add tstream_is_cli_np()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0ac1cebfb s3:libsmb: add cli_np_tstream.c
This abstracts a named pipe over smb as a tstream,
which will make it easier to implement the dcerpc
layer in a more generic way.

metze
2010-12-15 15:26:05 +01:00
Günther Deschner
af99f0a067 s3-waf: use shared libwbclient wscript_build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 11:42:16 CET 2010 on sn-devel-104
2010-12-15 11:42:16 +01:00
Günther Deschner
550046a4d9 s3-waf: fix winbind-client subsystem.
Guenther
2010-12-15 10:56:18 +01:00
Günther Deschner
7ecec74a00 s3-waf: add libkrb5 winbind locator plugin.
Guenther
2010-12-15 10:56:18 +01:00
Günther Deschner
5130e4a622 s3-waf: rework rpc_server handling a bit.
Guenther
2010-12-15 10:56:18 +01:00
Jeremy Allison
12e49a748c Protect the onefs sendfile from EAGAIN/EWOULDBLOCK.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 03:26:43 CET 2010 on sn-devel-104
2010-12-15 03:26:43 +01:00
Jeremy Allison
a8eed184a0 Implement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd0af395b6c96dd8e0eebd3d1)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 02:24:08 CET 2010 on sn-devel-104
2010-12-15 02:24:08 +01:00
Jeremy Allison
e071fd711d Fix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking sockets. 2010-12-15 01:38:16 +01:00
Jeremy Allison
14c70346fc Change interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Change smb2_read code to allocate return DATA_BLOB just before the read.

Preparing for SMB2 sendfile change which will not need to allocate
return buffer.

Jeremy
2010-12-15 01:38:16 +01:00
Günther Deschner
4bcedda7d8 s3-waf: libwbclient does not depend on talloc anymore.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 00:50:08 CET 2010 on sn-devel-104
2010-12-15 00:50:07 +01:00
Günther Deschner
4f4f7694c1 s3-waf: add missing libnss_wins.so.2 library.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec 14 23:29:25 CET 2010 on sn-devel-104
2010-12-14 23:29:25 +01:00
Günther Deschner
9e6736cafd s3-waf: recurse into ../libcli/ldap.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
3e6d507246 s3-waf: recurse into ../libcli/smb.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
f2bd9e52b8 s3-waf: recurse into ../libcli/samsync.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
baabd56ce9 s3-waf: recurse into ../libcli/named_pipe_auth.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
217ca2a2c9 s3-waf: recurse into ../libcli/drsuapi.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
d860281cd9 s3-waf: add pam_ and nss_winbind.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
a13b993237 s3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
1202e6328b s3-waf: fix pamsmbpass libwbclient dependency.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
906e489af9 s3-waf: recurse into ../libcli/auth.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
4c459a926f s3-waf: add CHARSET subsystem.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
943f485ef1 s3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.
Guenther
2010-12-14 22:42:17 +01:00
Günther Deschner
192838aafd s3-waf: convert lib/util_tdb.c into a subsystem.
Guenther
2010-12-14 22:42:17 +01:00
Günther Deschner
2407e33c76 s3-waf: use shared LIBASYNC_REQ subsystem.
Guenther
2010-12-14 22:42:17 +01:00
Björn Jacke
4fd57cbe1b s3/net: don't use external "date" to make "net time set" more portable
the "date" syntax is different for example on *BSD

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Dec 14 15:31:03 CET 2010 on sn-devel-104
2010-12-14 15:31:03 +01:00
Jeremy Allison
0fe744078d Ensure we use vfs_fsp_stat(), not VFS_STAT directly, and store into fsp->fsp_name->st
instead of a SMB_STRUCT_STAT on the stack.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 05:05:50 CET 2010 on sn-devel-104
2010-12-14 05:05:50 +01:00
Andrew Bartlett
d97492e42a s3-libsmb Improve error message when denying LM encryption
Now that 'client ntlmv2 auth = yes' is the default, make it more clear
what options a user may need to enable to get this to work.

Andrew Bartlett
2010-12-14 01:10:21 +01:00
Jeremy Allison
f974e68213 Change crediting so that the credits are returned on the interim async response.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 01:09:05 CET 2010 on sn-devel-104
2010-12-14 01:09:05 +01:00
Jeremy Allison
041428352c As we handle missing sendfile() inside lib/sendfile.c, remove the WITH_SENDFILE ifdefs.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 13 23:47:07 CET 2010 on sn-devel-104
2010-12-13 23:47:07 +01:00
Jeremy Allison
6ce365b238 We need to start off with smb2.credits_granted == 0. That way
when processing the faked up SMB2 NegProt from the SMB1 packet we
always allocate one credit on reply.

Jeremy.
2010-12-13 13:34:50 -08:00
Jeremy Allison
27a47eb9fc Remove extra unused credit arg. to smbd_smb2_request_setup_out() 2010-12-13 13:20:05 -08:00
Günther Deschner
a5cfdde558 s3-waf: try to fix the build with snow leopard.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 15:03:08 CET 2010 on sn-devel-104
2010-12-13 15:03:08 +01:00
Stefan Metzmacher
4ce3b53f12 s3:selftest: fix knownfail for samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old
The name is in lowercase since commit 35fbc7bbda
(s4-smbtorture: Make test names lowercase and dot-separated.)

This should avoid intermittent failures in make test.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 13 13:52:18 CET 2010 on sn-devel-104
2010-12-13 13:52:18 +01:00
Günther Deschner
a43a1d9226 s3-selftest: support differing VFSLIBDIR in autoconf and waf build.
With this change make test in the s3 waf build (w/o s4 smbtorture yet) works!

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 13:06:05 CET 2010 on sn-devel-104
2010-12-13 13:06:05 +01:00
Günther Deschner
b4d398f8e3 s3-waf: add -Wl,--export-dynamic to LDFLAGS.
Our binaries did not export symbols so e.g. smbd could not load vfs modules.
Patch from tridge.

We might remove this later on, once we decide to resolve all symbols and fix all
dependencies in s3 modules.

Guenther
2010-12-13 10:53:42 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
Jeremy Allison
2ac579ca76 Add a SMB2 crediting algorithm, by default the same as Windows. Defaults to 128 credits.
Jeremy.
2010-12-10 15:46:41 -08:00
Andrew Tridgell
283686af75 s3-vfstest: fixed paths in vfstest
vfstest tries to create /messages.tdb as loadparm has not been
initialised
2010-12-10 08:46:16 +01:00
Andrew Bartlett
280caa6b3b s3-dns Don't use DELEG_FLAG in DNS update, Windows 2008R2 does not like it 2010-12-10 17:58:13 +11:00
Andrew Bartlett
0f1cc889a2 s3-dns Don't use SEQUENCE_FLAG in DNS update, Windows 2008R2 does not like it
Andrew Bartlett
2010-12-10 17:58:13 +11:00
Andrew Bartlett
c2a1ad9047 s3-net Allow 'net ads dns register' to take an optional hostname argument
This allows the administrator to more carefully chose what name to register.

Andrew Bartlett
2010-12-10 17:58:13 +11:00
Andrew Bartlett
6195dfc0eb s3-winbind Improve memory handling in NTLMv2-backend plaintext authentication
Andrew Bartlett
2010-12-10 16:09:06 +11:00
Andrew Bartlett
5cfe949108 s3-winbind Don't send the LM password to the server, ever
This is for the case where we have the plaintext password locally, and
can construct the challenge-response values here.

We should never ever use the LM password in domain authentication.
The last domain controller to only have LM passwords stored was NT
3.5.

Andrew Bartlett
2010-12-10 16:08:31 +11:00
Andrew Bartlett
f13404e27b s3-libsmb Don't ever ask for machine$ principals as a target.
It is never correct to ask for a machine$ principal as the target of a
kerberos connection.  You should always connect via the
servicePrincipalName.

This current code appears to have built up from a series of minimal
changes, as the codebase adapted the to lack of a SPNEGO principal
from Windows 2008.

Andrew Bartlett
2010-12-10 16:08:31 +11:00
Andrew Bartlett
635fbf2b54 s3-client Use NTLMv2 by default in the Samba client
This matches the improved security measures of Windows Vista.

Andrew Bartlett
2010-12-10 16:08:30 +11:00
Andrew Bartlett
b3c2df5e0d s3-smbd Don't send SPNEGO principal (rfc4178 hint) by default
This patch, based on the suggestion by Goldberg, Neil R. <ngoldber@mitre.org>
turns off the sending of the principal in the negprot by default, matching
Windows 2008 behaviour.

This slowly works us back from this hack, which from an RFC
perspective was never the right thing to do in the first place, but we
traditionally follow windows behaviour.  It also discourages client
implmentations from relying on it, as if they do they are more open to
man-in-the-middle attacks.

Andrew Bartlett
2010-12-10 16:08:30 +11:00
Andrew Bartlett
bb7806283e s3-libads Default to NOT using the server-supplied principal from SPNEGO
This principal is not supplied by later versions of windows, and using
it opens up some oportunities for man in the middle attacks.  (Becuase
it isn't the name being contacted that is verified with the KDC).

This adds the option 'client use spnego principal' to the smb.conf (as
used in Samba4) to control this behaivour.  As in Samba4, this
defaults to false.

Against 2008 servers, this will not change behaviour.  Against earlier
servers, it may cause a downgrade to NTLMSSP more often, in
environments where server names are not registered with the KDC as
servicePrincipalName values.

Andrew Bartlett
2010-12-10 16:08:30 +11:00
Andrew Bartlett
a21cb5a0a1 libcli/auth bring ADS_IGNORE_PRINCIPAL in common 2010-12-08 08:55:04 +01:00
Andrew Tridgell
16c36a8cb5 s3-waf: fixed version number handling 2010-12-08 05:26:06 +01:00
Stefan Metzmacher
f802075f08 s3:ntlm_auth: support clients which offer a spnego mechs we don't support
Before we rejected the authentication if we don't support the
first spnego mech the client offered.

We now negotiate the first mech we support.

This fix works arround problems, when a client
sends the NEGOEX (1.3.6.1.4.1.311.2.2.30) oid,
which we don't support.

metze
2010-12-07 17:39:03 +01:00
Stefan Metzmacher
ee4f5ac618 s3:ntlm_auth: free session key, as we don't use it (at least for now)
metze
2010-12-07 17:39:03 +01:00
Stefan Metzmacher
9a56ade6b1 s3:ntlm_auth: fix memory leak in the raw ntlmssp code path
metze
2010-12-07 17:39:03 +01:00
Bjoern Baumbach
6acbcd1b0c Make sure that user exists after running add user script before adding sam account.
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 17:37:52 CET 2010 on sn-devel-104
2010-12-07 17:37:52 +01:00
Günther Deschner
94cfb49bb7 s3-waf: add configure/declaration checks for fdatasync, readahead and splice.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 16:50:23 CET 2010 on sn-devel-104
2010-12-07 16:50:23 +01:00
Günther Deschner
c5b2fd05af s3-waf: add valgrind configure checks.
Guenther
2010-12-07 16:06:17 +01:00
Michael Adam
d91189727a s3:registry: improve debug messages about regdb refcount changes
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 15:18:03 CET 2010 on sn-devel-104
2010-12-07 15:18:03 +01:00
Günther Deschner
af4a4f58b5 s3-waf: build vfs_fileid module if possible.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 14:01:46 CET 2010 on sn-devel-104
2010-12-07 14:01:46 +01:00
Günther Deschner
6b1ba79fbf s3-waf: add support for --with-dnsupdate.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 13:07:51 CET 2010 on sn-devel-104
2010-12-07 13:07:51 +01:00
Günther Deschner
0745f3fef9 s3-waf: fix the build of nsstest in the non-devel build.
Guenther
2010-12-07 12:04:35 +01:00
Günther Deschner
ffc7434e2b s3-waf: fix library names (we installed liblibsmbclient, etc.)
Guenther
2010-12-07 12:04:11 +01:00
Günther Deschner
8be11b2477 s3-waf: fix pam dependencies of the RPC_SAMR server.
Guenther
2010-12-07 11:49:57 +01:00
Volker Lendecke
f7d97868e4 s3: Fix bug 7844: Race in winbind
If a child dies, the parent process right away closes the socket.
This is wrong, with tevent we still have events pending. This works
fine for epoll but does not for at least the FreeBSD select variant.
Tevent sticks a closed socket into the select masks. This then
returns an error EBADF. When this happens, the parent winbind dies
instead of forking a new child.

This moves the socket close from the SIGCHLD cleanup function to
the socket receiver. I could not reproduce the parent death anymore
and it did not create an obvious fd leak.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec  6 23:21:02 CET 2010 on sn-devel-104
2010-12-06 23:21:02 +01:00
Volker Lendecke
ab1b857f58 s3: Fix bug 7842: WINBIND_LOOKUPRIDS does not return the proper domain name
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec  6 21:18:07 CET 2010 on sn-devel-104
2010-12-06 21:18:07 +01:00
Volker Lendecke
8f8d188c19 s3: Fix bug 7841: WINBINDD_LOOKUPRIDS asks the wrong domain 2010-12-06 20:33:05 +01:00
Jeremy Allison
cb496c6d24 s3: Fix bug 7843: Expand the local SAMs aliases 2010-12-06 20:33:05 +01:00
Günther Deschner
b73e4e36f5 s3-waf: add pam configure checks.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec  6 17:34:45 CET 2010 on sn-devel-104
2010-12-06 17:34:45 +01:00
Holger Hetterich
2ec657b10e Updated french translations from Jean Delvare <jdelvare@suse.de>
Autobuild-User: Jim McDonough <jmcd@samba.org>
Autobuild-Date: Sat Dec  4 18:23:54 CET 2010 on sn-devel-104
2010-12-04 18:23:54 +01:00
Günther Deschner
189b4bc1c2 s3-waf: add krb5 configure check for WRFILE_KEYTAB.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec  3 13:54:25 CET 2010 on sn-devel-104
2010-12-03 13:54:24 +01:00
Günther Deschner
704f138b8e s3-waf: add krb5 configure checks for enctype 23.
Guenther
2010-12-03 13:07:53 +01:00
Günther Deschner
5676acbb73 s3-waf: more krb5 configure checks.
Guenther
2010-12-03 13:07:45 +01:00
Jeremy Allison
2b0ff09982 Replace lseek()/write()/lseek() triple with pwrite call. We already emulate this
inside pwrite under the covers.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 03:39:42 CET 2010 on sn-devel-104
2010-12-03 03:39:42 +01:00
Jeremy Allison
24ca7bcb60 posix_fallocate() returns an errno, not -1 on error. 2010-12-03 02:55:05 +01:00
Jeremy Allison
b8d7de3199 Merge the two conflicting allocation codes into one function, vfs_slow_fallocate()
and use that from both the truncate and fill_sparse functions.

Jeremy.
2010-12-03 02:55:05 +01:00
Jeremy Allison
1f1491da5a Oops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.
Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 02:26:23 CET 2010 on sn-devel-104
2010-12-03 02:26:22 +01:00
Jeremy Allison
5819a36aef Move posix_fallocate into the VFS where it belongs.
Jeremy.
2010-12-02 16:25:59 -08:00
Jeremy Allison
de8ceb5364 Fix bug #7835 - vfs_fill_sparse() doesn't use posix_fallocate when strict allocate is on
Tries posix_fallocate() and then falls back to old code.

Jeremy.
2010-12-02 15:38:36 -08:00
Björn Jacke
72a322ed9c s3/selftest: add some FIXMEs
this needs some rework. Sourced shell code cannot take arguments, at least no
portable shell. This generates errors on the buildfarm sind quite a while.
2010-12-02 10:36:06 +01:00
Björn Jacke
eeade1596d tests: avoid bash in shebang and fix wrong "==" in test 2010-12-02 10:36:06 +01:00
Jeremy Allison
c8395ac6cf Fix a typo - should be '&&' not '&' when checking for privileges.
Jeremy.
2010-12-01 17:29:05 -08:00
Michael Adam
813fe0bc4d s3:smbd: remove some commented out legacy code
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Dec  2 01:18:19 CET 2010 on sn-devel-104
2010-12-02 01:18:19 +01:00
Günther Deschner
71e2d9e7e8 s3-waf: more krb5 configure checks.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 19:35:50 CET 2010 on sn-devel-104
2010-12-01 19:35:50 +01:00
Günther Deschner
4c2ef4ffaa s3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
a699729447 s3-waf: add idmap_ldap to default static module list.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
651a15d252 s3-waf: align some krb5/gssapi configure checks with classic build.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
133a2ffd00 s3-waf: avoid module name uppercasing.
This finally allows mixed case module names like the classic build
(./configure --shared_modules=charset_CP850)

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 18:39:14 CET 2010 on sn-devel-104
2010-12-01 18:39:14 +01:00
Volker Lendecke
bf9c3eedf8 s3: Attempt to please autobuild
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec  1 08:43:37 CET 2010 on sn-devel-104
2010-12-01 08:43:37 +01:00
Volker Lendecke
45a44dd588 s3: Fix a typo 2010-12-01 07:58:06 +01:00
Volker Lendecke
538ed076a9 s3: Attempt to fix the shadow_copy2 module
This module is from hell. Please make 100% sure that you did test it
properly when touching it! This module has probably given me more grey
hair than any other piece of Samba, so PLEASE PLEASE PLEASE be careful here!!!
2010-12-01 07:58:06 +01:00
Günther Deschner
2b0905aeae s3-waf: convert RPC_LSARPC into a subsystem.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 00:13:58 CET 2010 on sn-devel-104
2010-12-01 00:13:58 +01:00
Günther Deschner
c291195251 s3-waf: convert RPC_SAMR into a subsystem.
Guenther
2010-11-30 23:27:15 +01:00
Günther Deschner
ef129716a4 s3-waf: convert INIT_SAMR into a subsystem.
Guenther
2010-11-30 23:27:15 +01:00
Günther Deschner
f5e1f5f125 s3-waf: convert INIT_NETLOGON into a subsystem.
Guenther
2010-11-30 23:27:15 +01:00
Günther Deschner
42fe021f56 s3-waf: convert INIT_LSA into a subsystem.
Guenther
2010-11-30 23:27:15 +01:00
Günther Deschner
783264e97c s3-waf: fix LIBNBT deps.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 22:39:05 CET 2010 on sn-devel-104
2010-11-30 22:39:04 +01:00
Günther Deschner
c5559bb7ea s3-waf: convert IDMAP_AD into a subsystem.
Guenther
2010-11-30 21:52:25 +01:00
Günther Deschner
3a91e407cb s3-waf: convert IDMAP_HASH into a subsystem.
Guenther
2010-11-30 21:52:25 +01:00
Günther Deschner
e702b54cf8 s3-waf: convert IDMAP_ADEX into a subsystem.
Guenther
2010-11-30 21:52:25 +01:00
Günther Deschner
88b61a3b29 s3-waf: no need to compile ../librpc/ndr/ndr_compression.c twice.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 19:52:59 CET 2010 on sn-devel-104
2010-11-30 19:52:58 +01:00
Günther Deschner
9d6bfdf92d s3-waf: use LIBCLI_NDR_NETLOGON.
Guenther
2010-11-30 19:06:33 +01:00
Günther Deschner
8333b029ea s3-waf: convert LIBNBT into a subsystem.
Guenther
2010-11-30 19:06:33 +01:00
Günther Deschner
72b6936534 s3-waf: convert SPNEGO_PARSE into a subsystem.
Guenther
2010-11-30 19:06:32 +01:00
Günther Deschner
b31c0e4104 s3-waf: use SLCACHE in ntlm_auth.
Guenther
2010-11-30 19:06:32 +01:00
Günther Deschner
313123705b s3-waf: use TLDAP in smbtorture.
Guenther
2010-11-30 19:06:32 +01:00
Günther Deschner
67f2d4f45c s3-waf: convert NPA_TSTREAM into a subsystem.
Guenther
2010-11-30 19:06:32 +01:00
Günther Deschner
d245ec8482 s3-waf: add LIBDRSUAPI subsystem.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 18:58:42 CET 2010 on sn-devel-104
2010-11-30 18:58:42 +01:00
Günther Deschner
193daf8577 s3-waf: let SMBD_BASE depend on NDR_NOTIFY.
Guenther
2010-11-30 18:13:19 +01:00
Günther Deschner
a5ede16bb7 s3-waf: let LIBSMB (in fact LIBNBT) depend on NDR_NBT.
Guenther
2010-11-30 18:13:18 +01:00
Günther Deschner
4ca43d9bc1 s3-waf: let LIBSMB (in fact LIBNBT) depend on NDR_SVCCTL.
Guenther
2010-11-30 18:13:18 +01:00
Günther Deschner
5db1a399d5 s3-waf: convert LIBCLI_SPOOLSS into a subsystem.
Guenther
2010-11-30 18:13:18 +01:00
Günther Deschner
e80e5c5b8a s3-waf: convert RPCCLI_EPMAPPER into a subsystem.
Guenther
2010-11-30 18:13:17 +01:00
Günther Deschner
aaa31e7b22 s3-waf: convert RPCCLI_EVENTLOG into a subsystem.
Guenther
2010-11-30 18:13:17 +01:00
Günther Deschner
d29f9e4846 s3-waf: convert RPCCLI_NTSVCS into a subsystem.
Guenther
2010-11-30 18:13:17 +01:00
Günther Deschner
d37f54d880 s3-waf: convert RPCCLI_DRSUAPI into a subsystem.
Guenther
2010-11-30 18:13:17 +01:00
Günther Deschner
ac290574e2 s3-waf: convert RPCCLI_DFS into a subsystem.
Guenther
2010-11-30 18:13:16 +01:00
Günther Deschner
5cedef39d7 s3-waf: convert RPCCLI_INITSHUTDOWN into a subsystem.
Guenther
2010-11-30 18:13:16 +01:00
Günther Deschner
82b440835d s3-waf: convert RPCCLI_DSSETUP into a subsystem.
Guenther
2010-11-30 18:13:08 +01:00
Günther Deschner
2013c9c391 s3-waf: convert RPCCLI_SVCCTL into a subsystem.
Guenther
2010-11-30 18:12:30 +01:00
Günther Deschner
a8d005d439 s3-waf: convert RPCCLI_WKSSVC into a subsystem.
Guenther
2010-11-30 18:12:30 +01:00
Günther Deschner
f9f9b79859 s3-waf: convert RPCCLI_SRVSVC into a subsystem.
Guenther
2010-11-30 18:12:30 +01:00
Günther Deschner
75f088f898 s3-waf: convert LIBCLI_NETLOGON into a subsystem.
Guenther
2010-11-30 18:12:30 +01:00
Günther Deschner
656e849ce8 s3-waf: convert LIBCLI_LSA into a subsystem.
Guenther
2010-11-30 18:12:29 +01:00
Günther Deschner
d16e77e123 s3-waf: convert LIBCLI_SAMR into a subsystem.
Guenther
2010-11-30 18:12:29 +01:00
Günther Deschner
2beab2d6e5 s3-waf: convert PARAM_UTIL into a subsystem.
Guenther
2010-11-30 18:12:29 +01:00
Günther Deschner
33c82cd5dd s3-waf: convert TOKEN_UTIL into a subsystem.
Guenther
2010-11-30 18:12:29 +01:00
Günther Deschner
b2a1c1e425 s3-waf: convert REG_EVENTLOG into a subsystem.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 16:25:51 CET 2010 on sn-devel-104
2010-11-30 16:25:51 +01:00
Günther Deschner
254dea0596 s3-waf: convert LIBNMB into a subsystem.
Guenther
2010-11-30 15:07:48 +01:00
Günther Deschner
12d73f2cb8 s3-waf: convert FNAME_UTIL into a subsystem.
Guenther
2010-11-30 15:07:48 +01:00
Volker Lendecke
d6337bb1be s3: Fix bug 7832
Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 14:39:34 CET 2010 on sn-devel-104
2010-11-30 14:39:34 +01:00
Volker Lendecke
e0e4dc1c22 s3: Add shadow copy info to smbclient allinfo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 30 12:23:50 CET 2010 on sn-devel-104
2010-11-30 12:23:50 +01:00
Volker Lendecke
3f6705e8e3 s3: Add cli_shadow_copy_data 2010-11-30 11:36:53 +01:00
Jeremy Allison
d38cd9b671 Fix bug discovered with "encryped passwords = no".
message_push_string() and message_push_blob() both update
the bcc value, so we don't need the old code that tries to
do it manually.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 29 22:24:01 CET 2010 on sn-devel-104
2010-11-29 22:24:01 +01:00
Günther Deschner
c62509c8f2 s3-spoolss: Fix Bug #7641: handle win9x adddriver calls w/o config file.
This turned cupsaddsmb to run into an infinite loop.

Guenther
2010-11-29 17:56:40 +01:00
Günther Deschner
800a76dec3 s3-oldtest: add WIN40 to print$ share.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 29 16:20:37 CET 2010 on sn-devel-104
2010-11-29 16:20:37 +01:00
Volker Lendecke
c69b1edcb9 s3: Properly print binary values "net cache"
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Nov 28 15:03:26 CET 2010 on sn-devel-104
2010-11-28 15:03:26 +01:00
Volker Lendecke
1a91fe90b6 s3: Add gencache_iterate_blobs 2010-11-28 14:19:19 +01:00
Volker Lendecke
62afdb9cc0 s3: Convert gencache_get_data_blob to gencache_parse 2010-11-28 14:19:19 +01:00
Volker Lendecke
9843103b7d s3: Add gencache_parse 2010-11-28 14:19:19 +01:00