summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
AgeCommit message (Collapse)AuthorFilesLines
2010-04-27s4-dsdb: added samba_spnupdateAndrew Tridgell1-0/+137
this script adds all our required servicePrincipalName entries at runtime. The admin can add more entries to spn_update_list as needed
2010-04-27s4-dns: cope better with comments in dns_update_listAndrew Tridgell1-7/+4
2010-04-21s4-upgradeprovision: fixed --realm option duplicate in upgrade_from_s3Andrew Tridgell1-1/+1
2010-04-19s4-dns: use neater python for reading linesAndrew Tridgell1-7/+2
files are line iterators
2010-04-08s4-python: More cleanups.Jelmer Vernooij2-7/+3
2010-04-08s4-python: Simplify code, improve formatting.Jelmer Vernooij1-17/+25
2010-04-07s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij2-5/+4
2010-04-01s4-python: Install external packages to a different directory but import intoJelmer Vernooij1-1/+1
the normal namespace when the system doesn't have it available.
2010-04-01subunitrun: Find testtools and subunit when they're not provided by theJelmer Vernooij1-3/+5
system.
2010-03-29s4-python: Simplify mechanism for finding included Python modules.Jelmer Vernooij1-2/+2
2010-03-29s4-python: Move dnspython to lib/, like the other Python modulesJelmer Vernooij1-5/+3
This also avoids it from being installed if it's already present on the system.
2010-03-28upgradeprovision: Fix formatting, syntax error.Jelmer Vernooij1-17/+20
2010-03-28s4 upgradeprovision: add information about upgrade in oEMInformation to keep ↵Matthieu Patou1-2/+15
a better trace of different updates Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-28s4: allow upgrade provision to fix acl and missing dir on GPO dirsMatthieu Patou1-1/+18
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-25python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell14-14/+14
this should be much more portable
2010-03-11s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett1-21/+55
For the testsuite to use DNS like names, we need to write these names to a file. Also, to have this run in 'make test' the usual rules about 'no 127.*' IP addresses in DNS must be skipped, so glue.interface_ips takes two arguments now
2010-03-05s4-dns: use samba.external to pull in the dns.resolver libraryAndrew Tridgell1-3/+5
2010-03-03dns: make dns update script use unbuffered IOAndrew Tridgell1-0/+4
Otherwise we can lose debug output when a timeout happens
2010-03-01More formatting fixes.Jelmer Vernooij1-69/+74
2010-03-01Fix formatting.Jelmer Vernooij1-734/+734
2010-03-01upgradeprovision: Remove unused imports, use shutil.rmtree rather thanJelmer Vernooij1-11/+7
rmall.
2010-03-01upgradeprovision: Move to pythondoc formatMatthieu Patou1-23/+172
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01upgradeprovision: Allow script to be called with pydocMatthieu Patou1-40/+42
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01upgrade provision: change the meaning of handle_security_desc to be similar ↵Matthieu Patou1-3/+3
to handle_special_case Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01upgradeprovision: code cleanupMatthieu Patou1-49/+57
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01upgradeprovision: split the big script to put reusable functions appartMatthieu Patou1-231/+48
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-02-26s4:provision: use generate_random_password()Stefan Metzmacher1-1/+1
metze
2010-02-26s4-dns: fixed CNAME automatic DNS updatesAndrew Tridgell1-1/+1
2010-02-26dns: auto-delete incorrect SRV entries for our hostnameAndrew Tridgell1-8/+15
2010-02-26s4-dns: add automatic dynamic DNS updating scriptAndrew Tridgell1-1/+223
This script checks a list of DNS names that we should have, and does dynamic DNS updates using our machine account credentials to add any missing DNS entries. This allows us to correctly add all the DNS entries we need when we join an existing domain as a DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-26dns: dummy samba_dnsupdate scriptAndrew Tridgell1-0/+38
The merge from metze of my dns tree means we now depend on this. This is a placeholder until Andrew and I have finished the full script.
2010-02-20s4:credentials Add hooks to extract a named Kerberos credentials cacheAndrew Bartlett1-0/+30
This allows the integration of external tools that can't be linked into C or python, but need to authenticate as the local machine account. The machineaccountccache script demonstrates this, and debugging has been improved in cli_credentials_set_secrets() by passing back and error string. Andrew Bartlett
2010-02-12s4-script: make enablerecyclebin use system_sessionAndrew Tridgell1-1/+2
This allows it to work against our local ldb
2010-01-21upgradeprovision: forbid running upgradeprovision when there is more than 1 DCMatthieu Patou1-0/+20
2010-01-21upgradeprovision: mark rIDAvailablePool never upgradedMatthieu Patou1-16/+121
handle properly the fact that missing object might depend on some other in order to be correctly created debug change also if we are in debugall mode
2010-01-21upgradeprovision: reformat + add groupType as possibly overwrittenMatthieu Patou1-9/+12
2010-01-21upgradeprovision: improve info messagesMatthieu Patou1-7/+5
2010-01-21Revert "s4:upgradeprovision - fix up the script regarding linked attributes"Matthieu Patou1-46/+12
This reverts commit 2cedefabc93c8a1fcb49d65a3f78a344e814f826.
2010-01-21upgradeprovision: never use xattr it's pointless in this usecaseMatthieu Patou1-1/+1
2010-01-16Import testtools as well, required for subunit.Jelmer Vernooij1-2/+1
2010-01-10s4:upgradeprovision - fix up the script regarding linked attributesMatthias Dieter Wallnöfer1-12/+46
We have to try to add new objects until between two iterations we didn't make any progress. Either we are then done (no objects remaining) or we are incapable to do this fully automatically. The latter can happen if important system objects (builtin groups, users...) moved (e.g. consider one of my recent comments). Then the new object can't be added if it contains the same "sAMAccountName" attribute as the old one. We have to let the user delete the old one (also to give him a chance to backup personal changes - if needed) and only then the script is capable to add the new one onto the right place. Make this clear with an exhaustive error output. I personally don't see a good way how to do this better for now so I would leave this as a manual step.
2010-01-10s4:upgradeprovision - Reformat commentsMatthias Dieter Wallnöfer1-28/+44
Make them break at line 80 (better readability).
2010-01-08s4-scripting: we need to use a base search for the NTDS GUIDAndrew Tridgell1-1/+1
now we have nTDSConnections structures we can get more than 1 reply
2009-12-18s4-scripts: add a enablerecyclebin scriptAndrew Tridgell1-0/+54
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-15s4: rename res/res2 to something more explicitMatthieu Patou1-71/+68
2009-12-15s4: upgradeprovision handle renaming and knownobjectsMatthieu Patou1-6/+18
2009-12-15s4: upgradeprovision rename also when there is a mismatch on the case of ↵Matthieu Patou1-2/+7
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-15s4: reorder action to permit old provision to be correctly upgradedMatthieu Patou1-5/+8
2009-12-01s4: Remove targetdir as it can cause some trouble and can be replaced by an ↵Matthieu Patou1-3/+1
adapted -s smb.conf Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4: Handle the case in secrets.ldb without name attributeMatthieu Patou1-5/+25
Signed-off-by: Andrew Bartlett <abartlet@samba.org>