Matthias Dieter Wallnöfer
f749e22cca
s4:provision.py - remove hardcoded SIDs and RIDs
...
After rework of the SDDL modules this is possible. In future: Never hardcode
them anymore! Always use the abbreviations.
2009-11-27 22:46:05 +01:00
Matthias Dieter Wallnöfer
207067d1a8
s4:security/sddl - rework of the security descriptor abbreviations
...
- Reoder them
- Add some new ones (needed for the security descriptor in the provision script)
2009-11-27 22:45:43 +01:00
Matthias Dieter Wallnöfer
2e7ccdcb66
security.idl - Add some more wellknown SIDs/RIDs
2009-11-27 22:36:59 +01:00
Matthias Dieter Wallnöfer
7d400715e9
s4:registry/util - Don't include the trailing '\0' in the internal data format but add it on the back-conversion to a string
...
As far as I know the registry library saves all data (including) strings without
the null termination. So do it also here in a similar way.
2009-11-27 21:17:59 +01:00
Matthias Dieter Wallnöfer
e79dd2ef7d
s4:net utility - add a notice for the "help" operation and format it's output of the command list better
2009-11-27 21:17:59 +01:00
Günther Deschner
51328a7056
s3-kerberos: fix the build on Mac OS X 10.6.2.
...
Guenther
2009-11-27 20:10:32 +01:00
Matthias Dieter Wallnöfer
2175c0ed06
s4:samba3.py - deactivate also the assertion on line 599
2009-11-27 20:03:36 +01:00
Günther Deschner
da79cbb080
s3-kerberos: add a missing reference to authdata headers.
...
Guenther
2009-11-27 18:52:32 +01:00
Günther Deschner
ae20737066
s3-kerberos: do not include authdata headers before including krb5 headers.
...
Guenther
2009-11-27 18:31:13 +01:00
Günther Deschner
e512ccb5b6
s3-spoolss: simplify _spoolss_EnumPrinterKey a little more.
...
Guenther
2009-11-27 18:31:13 +01:00
Matthias Dieter Wallnöfer
663a1f599a
s4:winbind - Fix it another time up
...
The first fix attempt did break some configurations (incl. "make test").
This now is the right fix with the right comment.
2009-11-27 17:45:20 +01:00
Matthias Dieter Wallnöfer
33188999b5
s4:provision.py - cosmetic
2009-11-27 17:39:02 +01:00
Matthias Dieter Wallnöfer
6c3e2417a0
s4:samba3.py (and test) - deactivate the tests until those parameters are fixed
2009-11-27 16:42:11 +01:00
Matthias Dieter Wallnöfer
08b3c396d7
s4:upgrade.py - Umlaut problem
2009-11-27 16:42:11 +01:00
Matthias Dieter Wallnöfer
1af31aed0b
s4:tests.sh - Make also here the change from "upgrade" to "upgrade_from_s3"
2009-11-27 16:42:11 +01:00
Günther Deschner
04f8c229de
s3-kerberos: only use krb5 headers where required.
...
This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.
Guenther
2009-11-27 16:36:00 +01:00
Günther Deschner
23d77be6cb
misc: mark winreg_Data little-endian except for a REG_DWORD_BIG_ENDIAN.
...
Guenther
2009-11-27 16:16:00 +01:00
Günther Deschner
79f82998b1
pidl: fix handling of output arguments in s3 client stubs.
...
a20e095 used (uint8_t) instead of (uint8_t *).
Guenther
2009-11-27 16:15:33 +01:00
Matthias Dieter Wallnöfer
0cc45b47dc
s4:upgrade.py - rework to make the upgrade s3 -> s4 possible again
...
Able to read basic settings "workgroup", "realm", "netbios name" and the
function mode from the s3 "smb.conf" and use them for the provision of s4.
2009-11-27 16:06:07 +01:00
Matthias Dieter Wallnöfer
bd6c133e50
s4:upgrade_from_s3 - Fix message outputs
...
The quiet parameter was interpreted in the reverse manner.
2009-11-27 15:49:18 +01:00
Matthias Dieter Wallnöfer
dbb8989e05
s4:upgrade.py - the import of WINS databases don't seem to work always
...
Disable it for now until the cause has been found
2009-11-27 15:02:18 +01:00
Matthias Dieter Wallnöfer
70b3161090
s4:samba3.py - ignore comments in "smb.conf" files
2009-11-27 15:00:41 +01:00
Matthias Dieter Wallnöfer
82adfa39b7
s4:samba3.py - don't read those informations out from the TDB
...
At the moment those three calls are broken
2009-11-27 14:59:12 +01:00
Matthias Dieter Wallnöfer
f299efa8f0
s4:samba3.py - support the TDB version 3
2009-11-27 14:58:37 +01:00
Matthias Dieter Wallnöfer
a5d854afbc
s4:provision - Fix up the provision of "standalone" and "member" mode
...
Both modes weren't possible anymore since 1.) the secrets entry wasn't created,
2.) a lookup in winbindd was done using "lp_workgroup()" rather than
"lp_sam_name()" (since on the mentioned two configurations we use the netbios
name as domainname - and not the workgroup).
2009-11-27 14:51:14 +01:00
Matthias Dieter Wallnöfer
a7fa3a9703
s4:provision.py - cosmetic output correction
2009-11-27 13:07:52 +01:00
Matthias Dieter Wallnöfer
6b835b0691
s4:setup/provision - make the interactive mode work again
2009-11-27 13:02:31 +01:00
Matthias Dieter Wallnöfer
7504b03b54
s4:WHATSNEW4.txt - Add also here a comment about the "upgrade_from_s3" script
2009-11-27 12:26:11 +01:00
Matthias Dieter Wallnöfer
3d57da80e5
s4:howto.txt - add a notice about the upgrade possibilities and fix line spaces
2009-11-27 12:26:11 +01:00
Matthias Dieter Wallnöfer
fd313282a2
s4:upgrade script - rename it to "upgrade_from_s3" and do some rework
...
- Give a better name to the script
- Move it to the location where also "upgradeprovision" resides
- Fix up trailing whitespaces and tabs
2009-11-27 12:26:11 +01:00
Günther Deschner
d6c60f8447
s3-nsstest: drastically shrink size and dependencies of nsstest binary.
...
The size went down from 6.4M to 104K on my box.
Guenther
2009-11-27 10:47:11 +01:00
Andrew Tridgell
e96f9a40ad
s4-install: old systems don't have sed -i
...
surprisingly, this failure came from SLES8. I didn't realise that the
-i option was so new!
2009-11-27 19:58:29 +11:00
Andrew Tridgell
d5240822a5
s4-selftest: s4 passes all the SMB2-LOCK tests now
2009-11-27 19:42:11 +11:00
Andrew Tridgell
9f3ac810a6
s4-torture: fixed error code for s4 in SMB2-LOCK test
...
s4 returns NETWORK_NAME_DELETED if you attempt to use an invalid tree connection
for a lock. This test (correctly I think) happens before we validate the file handle.
That implies that when you pass both a closed handle and a invalid tree you
should get NT_STATUS_NETWORK_NAME_DELETED.
2009-11-27 19:42:11 +11:00
Andrew Tridgell
b3115f5cdc
s4-ntvfs: win7 does not check for the NONE smb2 lock flag on unlock
2009-11-27 19:42:10 +11:00
Andrew Tridgell
af087f98ab
s4-selftest: s4 passes this test now
2009-11-27 19:42:10 +11:00
Andrew Tridgell
7359a22219
s4-torture: mark s4 as doing valid lock range tests on SMB
2009-11-27 19:42:10 +11:00
Andrew Tridgell
186ea099c5
s4-ntvfs: move valid lock range test from smb2 layer to generic code
...
win7 also fails invalid lock ranges on SMB
2009-11-27 19:42:10 +11:00
Stefan Metzmacher
b62964d6fe
s4:smb_server/smb2: don't reset highest_smb2_seqnum on SMB2 Cancel
...
metze
2009-11-27 08:19:46 +01:00
Andrew Tridgell
f6ecb4efb0
s4-torture: fixed expected error codes for s4 in SMB2-LOCK
...
I think the error/success codes returned by windows for these tests
are quite bogus. The ones s4 gives are much more reasonable. The
locking ones returning NT_STATUS_SUCCESS could lead to data loss, as
an application thinks it has a file locked correctly when it fact it
doesn't, so it could do an unsafe modify.
2009-11-27 16:05:06 +11:00
Andrew Tridgell
0920e0b63b
s4-drstest: don't use getenv("LDB_URL") in test suites
...
I was stumped for a while as to why the drs test suite was failing for
me. It turned out that it looked for LDB_URL in the environment, and
used it if set. I had it set in my terminal, and it was happily
munching on my sam.ldb while testing. Quite a cute bug really :-)
2009-11-27 16:05:06 +11:00
Andrew Tridgell
d78921d78c
s4-pvfs: fixed access check failure in SFILEINFO test
...
matching windows behaviour is not always the right thing to do!
2009-11-27 16:05:06 +11:00
Andrew Tridgell
d5387edb88
s4-ldb: improve detection of whether the server has a GC port
...
We were trying to open $SERVER:3268 regardless, which could result in
creating a file called "localdc1:3268", which led to subsequent test
failures
2009-11-27 16:05:06 +11:00
Andrew Tridgell
7ea485a1d2
s4-ldb: better to test for valid arguments in ldb library than commandline
...
We were testing for valid DNs in ldbrename in the command line
tool. This hid a bug in the ldb library where we caught a bad DN in
the objectclass module rather than in the main ldb code. It is better
to do validation of the DNs passed on the command line in the library
code, as this gives us more consistent error handling between the
programming APIs for ldb and the command line.
2009-11-27 16:05:06 +11:00
Andrew Tridgell
d3d7ca8eea
s4-smb2: SMB2 uses NT_STATUS_CANCELLED for cancelled locks
2009-11-27 16:05:06 +11:00
Andrew Tridgell
7c158bdb1d
s4-smb2: sequence numbers are not checked in SMB2_OP_CANCEL
2009-11-27 16:05:06 +11:00
Andrew Tridgell
056473d588
torture: fixed SMB2-LOCK valgrind error
2009-11-27 16:05:05 +11:00
Andrew Tridgell
04f235a9eb
s4-smb2: check for invalid SMB2 lock ranges
2009-11-27 16:05:05 +11:00
Andrew Tridgell
aa4c516023
s4-smb2: check for an invalid lock flags combination
...
UNLOCK with FAIL_IMMEDIATELY is not allowed
2009-11-27 16:05:05 +11:00
Andrew Tridgell
61a278fd8a
s4-install: fixed install path for python scripts
...
when we install python scripts we need to fix the internal path used
to find modules. We also need to install the scripts in the right
place. Most of them should go in $SBINDIR not share/setup/
2009-11-27 16:05:05 +11:00