Volker Lendecke
932ab0c299
s3: client "newer" does not look at the create timestamp
2009-11-29 11:22:02 +01:00
Volker Lendecke
44ce5603dd
s3: Pass the "fake dir create times" parameter to sys_*stat
...
Step 0 to restore it as a per-share paramter
2009-11-29 11:22:01 +01:00
Matthias Dieter Wallnöfer
b973c50836
s4:upgrade_from_s3 - Move it back to "setup"
...
Suggested by Jelmer
2009-11-28 19:25:12 +01:00
Matthias Dieter Wallnöfer
f0686645a9
s4:setup/provision - Rework
...
- Revert change in "ask" - was previously correct
- Readd accidentally removed checks for non-null realm and domainname
- On interactive mode perform only one "ask" call per question
- Inform the user about the unset administrator password
2009-11-28 18:59:33 +01:00
Matthias Dieter Wallnöfer
3ca61d9a01
s4:upgrade.py - remove my copyright
...
First I wanted to add also other changes but then I didn't introduce them.
Therefore remove my copyright again.
2009-11-28 18:50:27 +01:00
Matthias Dieter Wallnöfer
68f7b84140
s4:upgrade.py - readd accidentally removed empty lines
...
Jelmer pointed out that this is against the PEP8 norm
2009-11-28 18:29:49 +01:00
Matthias Dieter Wallnöfer
ecfd1dfcbd
s4:samba3.py/upgrade.py: Revert
...
This reverts commit 2175c0ed06
.
This reverts commit 6c3e2417a0
.
This reverts commit dbb8989e05
.
This reverts commit 82adfa39b7
.
This reverts commit f299efa8f0
.
After a small discussion with Jelmer we agreed that this isn't the right way
to fix the problem. We should wait for a real patch rather to rely on temporal
hacks.
2009-11-28 15:34:43 +01:00
Andrew Tridgell
8a34cf6f51
s4-ldb: make it much easier to use common ldb controls
2009-11-28 21:58:04 +11:00
Andrew Tridgell
1287c1d115
s4-drs: cope with bogus empty attributes from w2k8-r2
...
w2k8-r2 sometimes sends empty attributes with completely bogus attrid
values in a DRS replication response. This allows us to continue with
the vampire operation despite these broken elements.
2009-11-28 13:28:34 +11:00
Matthieu Patou
db41a0afc6
s4: fix SD update and password change in upgrade script
...
- reserve a new Samba OID for recalculate SD control
- fix the update SD function
- fix handling of kvno in the update_machine_account_password function
- fix handling of handles in RPC winreg server
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-28 09:56:06 +11:00
Matthias Dieter Wallnöfer
f7c28db475
s4:WINREG RPC server - add another "talloc_unlink" in "DeleteKey"
...
Also here we waste memory - therefore free the pointless handle after the delete.
2009-11-27 23:23:32 +01:00
Matthias Dieter Wallnöfer
6f7cfb0e10
s4:WINREG RPC server - Reintroduce the free operation on "CloseKey"
...
Better use "talloc_unlink" here Since we could have more than one reference.
2009-11-27 23:23:31 +01:00
Günther Deschner
8f6df5d3ec
s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.
...
Guenther
2009-11-27 23:16:21 +01:00
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