Andrew Tridgell
9e60164cae
make the SMB2 negotiated read and write size settable in smb.conf
...
parametic options:
smb2:max read size = NNN
smb2:max write size = NNN
The defaults are 65536, which is what Vista sets, and what we
previously set
2008-04-14 19:09:57 +02:00
Jelmer Vernooij
8be7d93735
Also look in the environment for smb.conf path.
2008-04-14 19:01:32 +02:00
Andrew Tridgell
2ebd7b8099
fixed a valgrind error in id mapping
...
the status field is sent on both call and reply, but was only being
initialised on reply
2008-04-14 18:59:40 +02:00
Simo Sorce
957c4d893a
Fix problems with event context not being the parent.
2008-04-14 12:45:51 -04:00
Andrew Tridgell
dfe4b50098
fixed an unitialised write warning in valgrind
...
the 'reserved' field was not being initialised before being pushed to
the wire
2008-04-14 18:44:43 +02:00
Jelmer Vernooij
2f19f98144
Add convenience TestCase class for testing RPC interfaces.
2008-04-14 18:30:07 +02:00
Andrew Bartlett
f610862dc9
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
2008-04-14 18:01:40 +02:00
Andrew Bartlett
b191a1953c
Ensure we initialise s->lp_ctx for the way into the provision.
...
Andrew Bartlett
2008-04-14 17:58:09 +02:00
Jelmer Vernooij
f64c1d53ba
Fix order of variables in the makefile.
2008-04-14 17:54:19 +02:00
Jelmer Vernooij
92856d5054
Use _OBJ_FILES variables in a couple more places.
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
5628d58990
Move object files lists to makefile rather than smb_build.
2008-04-14 16:53:00 +02:00
Stefan Metzmacher
8dca5b9bbb
lib/events: fix missing prototype of s4_events_aio_init()
...
metze
2008-04-14 16:45:38 +02:00
Stefan Metzmacher
7ffc44b7c1
Makefile: fix variable name automatic_deps -> automatic_dependencies
...
metze
2008-04-14 16:41:46 +02:00
Andrew Bartlett
cd2d3d1c7a
Include the smbconf parameter to the provision
...
Otherwise this fails, if the targetdir is not specified
Andrew Bartlett
2008-04-14 16:01:15 +02:00
Andrew Bartlett
79854f0aa6
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
2008-04-14 15:26:26 +02:00
Jelmer Vernooij
ceda3312a9
Move standard make compilation rules to build/make.
2008-04-14 14:51:57 +02:00
Andrew Bartlett
92751a73cd
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
2008-04-14 13:49:47 +02:00
Jelmer Vernooij
9d3d64e138
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
2008-04-14 11:55:19 +02:00
Jelmer Vernooij
dbeab2a9cd
Remove prototypes from build.h in preparation of removing build.h
...
altogether.
2008-04-14 11:54:50 +02:00
Andrew Bartlett
2f80105826
Re-run SWIG
2008-04-14 11:53:28 +02:00
Andrew Bartlett
8bd8bc1475
Fix newuser and setpassword scripts, and port to idmap.
...
The new idmap world does not use the unixUser any more, so we need to
set up the entry (if wanted) in the idmap database. Users without a
backing unix user will get an allocated uid by idmap later.
Andrew Bartlett
2008-04-14 11:51:02 +02:00
Andrew Bartlett
416d2e3a52
Add in a way to get at the private_path() function from python
...
Andrew Bartlett
2008-04-14 11:48:43 +02:00
Andrew Tridgell
068c973dbe
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
2008-04-14 11:32:04 +02:00
Andrew Tridgell
9b686c1380
fill in unknown fields in SMB2 READ call
2008-04-14 11:31:17 +02:00
Andrew Tridgell
8a22241952
show what type of idmapping has failed
2008-04-14 11:30:10 +02:00
James Peach
2b8cf1b2a4
smb_build: Make sure LIBRARY_SONAME is never uninitialized.
2008-04-13 14:09:09 -07:00
Jelmer Vernooij
9b8448c1e4
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into cprovision
2008-04-13 22:49:08 +02:00
Jelmer Vernooij
e2c3fab9d1
Use torture_assert_mem_equal() in a couple more places.
2008-04-13 22:00:36 +02:00
Jelmer Vernooij
b6319b64d7
Use new torture_assert_mem_equal.
2008-04-13 21:33:59 +02:00
Jelmer Vernooij
10102d80d0
Attempt to fix get_value() test on sparc machines.
2008-04-13 21:31:06 +02:00
Andrew Bartlett
75c8dc6c6f
Actually test the different 'fill levels' in the provision process.
...
This should cover a few more codepaths in the provision script.
Andrew Bartlett
2008-04-11 19:38:36 +10:00
Andrew Bartlett
34adb0e0bb
Reuse the lp_ctx and samdb returned by the python provision.
...
Apply the same fix as in libnet_vampire in the old DRS test code.
Andrew Bartlett
2008-04-11 19:37:23 +10:00
Andrew Bartlett
6875e6823f
Don't specify the ntds_guid to the C -> python provision interface
...
This paramter was not used anyway.
Andrew Bartlett
2008-04-11 19:35:15 +10:00
Andrew Bartlett
b51b8a2d84
Don't reopen the sam.ldb again
...
Andrew Bartlett
2008-04-11 19:33:52 +10:00
Andrew Bartlett
38634183a0
Use the python-provided ldb and lp_ctx pointers in libnet_vampire.c
...
By using the already open smb.conf and sam.ldb, we not only avoid
overhead, but also remove the risk we could touch a different
database.
Andrew Bartlett
2008-04-11 19:15:24 +10:00
Andrew Bartlett
10a8b7ea48
Far less cryptic traceback when you have an existing smb.conf
...
When the user has an existing smb.conf, but no [netlogon] or [sysvol]
share, the provision script would trigger a traceback. While we still
need to abort in this situation, we do so now with a useful error.
Andrew Bartlett
2008-04-11 19:04:43 +10:00
Andrew Bartlett
de5349cc7a
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
2008-04-11 14:35:26 +10:00
Andrew Tridgell
4449ce381a
Fixed a crash bug in unixuid module on failed ID mapping
...
We need to intialise *ids regardless of the status of the call, as the
IDL specifies that the out[] array always exists. If we don't
initialise out then we get a segv when a id mapping fails.
This still doesn't explain why the idmapping is failing, but at least
the client now gets NT_STATUS_NONE_MAPPED rather than a crashed
server.
2008-04-11 14:12:34 +10:00
Andrew Bartlett
5bf1c89cf8
Fix merge errors on C provision interface after jelmer's good work.
...
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Conflicts:
source/torture/local/torture.c
2008-04-11 11:11:42 +10:00
Andrew Bartlett
e77ab2fbd1
Set a netbios name into provision, and zero the rest.
...
Remove dns_name initialisation.
Andrew Bartlett
2008-04-11 11:09:34 +10:00
Jelmer Vernooij
a3e1b83565
Return SAM ldb context and loadparm context as part of C provision
...
result.
2008-04-11 00:43:23 +02:00
Jelmer Vernooij
623f64a1a7
Fix extra argument to provision_bare().
2008-04-10 06:07:46 +02:00
Jelmer Vernooij
3522c7e2cf
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into cprovision
2008-04-10 05:25:18 +02:00
Jelmer Vernooij
98c3d34eb2
Add infrastructure for returning ProvisionResult in C provision code.
2008-04-10 05:23:17 +02:00
Simo Sorce
a13f64bf54
Make sure we do not reference req after it has been freed
2008-04-09 17:12:56 -04:00
Jelmer Vernooij
ca0e373e57
No longer install unused smbscript binary.
2008-04-09 17:43:37 +02:00
Jelmer Vernooij
62322f302f
Fix so version of hostconfig library.
2008-04-09 17:14:01 +02:00
Andrew Bartlett
d01d542502
Fix up provision to specify SERVERDN in more places.
...
Andrew Bartlett
2008-04-09 15:32:49 +10:00
Andrew Bartlett
1282e3c394
Link the new vampire code togeather.
...
This adds in the newly attached secrets handling, as well as an
interface to the command line 'net' tool.
Andrew Bartlett
2008-04-09 14:59:32 +10:00
Andrew Bartlett
c93208c13c
Don't fill in the secrets DB unless we make the entries.
...
Leave filling in (we still initialise it) the secrets DB for the join
or vampire code.
Andrew Bartlett
2008-04-09 14:57:57 +10:00