Andrew Tridgell
3239872bbc
s4-net: fixed pwsettings command
...
Don't override user settings with current settings
2009-12-31 17:33:33 +11:00
Jelmer Vernooij
66f81d18ce
samba: Fix whitespace, remove pointless 'pass' statement.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:31 +11:00
Jelmer Vernooij
ea5af6e30c
pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:30 +11:00
Jelmer Vernooij
7effe2d2e3
net: Support 'super' commands implemented in Python.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:28 +11:00
Jelmer Vernooij
9e5ef916d4
net: Move 'newuser' to 'net newuser'
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:27 +11:00
Jelmer Vernooij
73594c248f
net: Fix tests and documentation of setexpiry.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:25 +11:00
Jelmer Vernooij
345b25d059
net: Move setexpiry to 'net setexpiry'
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:24 +11:00
Jelmer Vernooij
b531696a5b
net: Move 'setpassword' to 'net setpassword'.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:22 +11:00
Jelmer Vernooij
588b3e6181
python: When updating sys.path to include the Samba python path, avoid throwing away the changes made by site.py.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
e2c4d8281d
s4/net: Allow options before arguments for Python commands.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
433f58f5a7
s4/net: Pass all arguments through to the Python commands.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
e60a40e287
s4/net: Add domainlevel subcommand.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
732a7630e9
Use CommandError exception to deal with problems during net commands.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
eaf4a9afb2
s4/net: Make pwsettings a net subcommand.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
8c19cd2dea
netcmd: Add some basic tests.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
9e603dfb95
s4/net: Support parsing arguments in Python commands.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
9b1a210311
net: Support usage/help of subcommands implemented in Python.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
c064549e2e
net: Support implementing subcommands in python.
2009-12-29 16:26:18 +01:00
Andrew Tridgell
dbda2c2db5
s4-provision: added a note about where invocationIDs come from
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-21 23:41:04 +11:00
Andrew Tridgell
811b4054f9
s4-scripts: add a enablerecyclebin script
...
This can be used to enable the recyclebin on a windows box. Once we
properly implement this feature in samba we will use this to enable
the feature on ourselves as well.
2009-12-18 21:03:39 +11:00
Andrew Bartlett
c3d1e5ca0c
s4:provision Give a more useful error message in guess_names
...
The problem here is that as we start to get 'real users' they still
decide to do silly things, like load empty but existing smb.conf
files. Let's give them a better chance to discover what they did
wrong.
Andrew Bartlett
2009-12-18 14:27:43 +11:00
Matthieu Patou
ef5508bc78
s4: rename res/res2 to something more explicit
2009-12-15 10:04:05 +11:00
Matthieu Patou
d2ec67eb53
s4: upgradeprovision handle renaming and knownobjects
2009-12-15 10:04:05 +11:00
Matthieu Patou
fb85977d7c
s4: upgradeprovision rename also when there is a mismatch on the case of name attribute
...
Renaming not only helps when name attribute is not here
it also helps when the case is not the good one. So
in order to avoid problem and have as much as possible similar provision
we should use the rename whenever a name difference appear.
2009-12-15 10:04:04 +11:00
Matthieu Patou
3357319620
s4: reorder action to permit old provision to be correctly upgraded
2009-12-15 10:04:04 +11:00
Andrew Tridgell
7f6b524bf6
s4-devel: support vampire_ad.sh with no initial smb.conf
2009-12-14 22:29:58 +11:00
Andrew Tridgell
cc9d4d5181
s4-drs: use -r to ldbdel in unvampire devel script
...
This ensures we delete any nTDSConnection objects
2009-12-08 14:43:50 +11:00
Matthieu Patou
1d0d78ab3d
s4: Remove targetdir as it can cause some trouble and can be replaced by an adapted -s smb.conf
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01 12:17:52 +11:00
Matthieu Patou
fe1291227f
s4: Handle the case in secrets.ldb without name attribute
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01 12:17:46 +11:00
Matthieu Patou
4861ad57fb
s4: don't forget to update defaultSecurityDescriptor
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01 12:17:41 +11:00
Matthieu Patou
bf2c1e9c4f
s4: load the domain level of the current provision and create a provision with the same domain level
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01 12:17:32 +11: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
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
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
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
2175c0ed06
s4:samba3.py - deactivate also the assertion on line 599
2009-11-27 20:03:36 +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
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
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