summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/provision.py
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20Use standard Python syntax, booleans and set()'s where appropriate.Jelmer Vernooij1-1/+1
2010-06-20Some more formatting fixes, move schema related functions from Ldb to Schema.Jelmer Vernooij1-1/+1
2010-06-20Formatting cleanups; use True/False for booleans, unnecessary backslashes, ↵Jelmer Vernooij1-17/+24
spacing.
2010-06-20s4: Add comments about setup_secretsMatthieu Patou1-0/+2
Comments are to inform people that this function should not handle transaction within the function as it is mainly used in provision and that we want to commit secrets only if all the action on secrets have worked. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 provision: Add information about provisioned usn range in sam.ldbMatthieu Patou1-0/+96
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-19s4:provision: don't use hardcoded 'Default-First-Site-Name'Stefan Metzmacher1-2/+2
metze Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-19s4-python: Use sys.prefix rather than guessing prefix from currentJelmer Vernooij1-7/+6
file path.
2010-06-16s4:provision.py - we do now support the "Windows 2000 Native" domain ↵Matthias Dieter Wallnöfer1-3/+0
function level
2010-06-15Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only ↵Jelmer Vernooij1-3/+3
in OpenChange).
2010-06-14s4:provision: Make gc._msdcs DNS entries A/AAAA recordsAndrew Kroeger1-0/+6
When adding an additional DC as a GC server, the new DC attempts to register its own gc._msdcs records. If the existing gc._msdcs record is a CNAME, BIND fails the update with the message "attempt to add non-CNAME alongside CNAME ignored", and the new DC is not registered as a GC server. The A & AAAA record types for gc._msdcs have been verified against the DNS server of a W2K8 DC.
2010-06-13s4-provision: Use logger in provision backends.Jelmer Vernooij1-22/+21
2010-06-13s4-python: Start using standard python logging infrastructure ratherJelmer Vernooij1-71/+69
than simple messaging callbacks.
2010-06-11s4-python: Fix formatting.Jelmer Vernooij1-2/+7
2010-06-06s4:provision - fix typo in substitution variableMatthias Dieter Wallnöfer1-1/+1
2010-05-17s4-rodc: Set am_rodc flag during provisionAnatoliy Atanasov1-8/+10
2010-05-13s4:domain functional level - it is also specified in the domain object under ↵Matthias Dieter Wallnöfer1-1/+2
partitions Discovered by the "ldapcmp" tool
2010-05-11Revert "s4-rodc: Fix provision warnings by creating ntds objectGUID in ↵Anatoliy Atanasov1-5/+1
provision" This reverts commit c3cbb846d0bfbaa11fd255bada7fa5fe502d4d96. The fix is not correct, we should cache a bool to answer amIRODC
2010-05-10s4-rodc: Fix provision warnings by creating ntds objectGUID in provisionAnatoliy Atanasov1-1/+5
2010-04-29Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"Kamen Mazdrashki1-2/+0
This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26. Windows implementation does not set schemaInfo attribute value until first Schema update request. This way, newly provisioned forest returns no schemaInfo value. I think it won't be bad for us to have this value preset, but I want to mimic Win AD behavior as close as possible.
2010-04-27s4-provision: setup spn_update_list in provisionAndrew Tridgell1-1/+5
2010-04-20s4:provision Pass in the invoication ID and NTDS Settings DN to Schema()Andrew Bartlett1-5/+5
By putting these values into the cache on the LDB, this reduces some of the noise in provision, particularly with the LDAP backend. Andrew Bartlett
2010-04-12Fixed a problem with provision missing the default_dir/etc directory.Nadezhda Ivanova1-2/+2
2010-04-09s4/dsdb: Set schemaInfo attribute value during provisioningKamen Mazdrashki1-0/+2
After provisioning new Forest, schemaInfo should be set to a value with revision=1 and current invocation_id
2010-04-08s4-python: More cleanups.Jelmer Vernooij1-4/+4
2010-04-08s4-python: Fix formatting, import of FLG_NOSYNC.Jelmer Vernooij1-1/+1
2010-04-08s4-python: Simplify code, improve formatting.Jelmer Vernooij1-34/+55
2010-04-07s4-provision: Proper handling of exceptions, use SamDB class but skip global ↵Jelmer Vernooij1-10/+17
schema.
2010-04-07s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij1-5/+6
2010-04-07s4:provision - add a comment which explains why "paths.dns_keytab" is stored ↵Matthias Dieter Wallnöfer1-0/+3
without path reference
2010-04-06s4-python: Move set_session_info to PySambaLdb.Jelmer Vernooij1-4/+4
2010-04-04s4-python: Avoid importing glue directly.Jelmer Vernooij1-9/+10
2010-04-04s4-python: Move dsdb constants to a separate python module.Jelmer Vernooij1-1/+1
2010-03-28upgradeprovision: Fix formatting, syntax error.Jelmer Vernooij1-48/+49
2010-03-28provision: make gpo related function more reusable for upgradeprovisionMatthieu Patou1-26/+30
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-28provision: Remove unnecessary whitespace.Jelmer Vernooij1-6/+1
2010-03-24s4-provision: FreeBSD uses 'staff' for usersAndrew Tridgell1-1/+1
2010-03-24s4-provision: solaris uses the group "other"Andrew Tridgell1-1/+1
2010-03-12s4:provision.py - small output improvementMatthias Dieter Wallnöfer1-1/+1
2010-03-11s4:provision Improve the handling of provision errorsAndrew Bartlett1-10/+12
The backtraces were too confusing for our users, and didn't tell them what to do to fix the problem. By printing the string (rather than a backtrace), and including in the error what to do, and what file to remove, we give them a chance. Andrew Bartlett
2010-03-11s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett1-1/+1
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-04s4:provision - use the new "interface_ips" python call to detect the right ↵Matthias Dieter Wallnöfer1-8/+8
host IPv4 address Inform the user when there are more possibilities (so he can check for the right address and otherwise he is able to do an immediate reprovision) and no possibility at all (then we fall back to the loopback address "127.0.0.1" - this is thought for testing purposes). I think this should be enough for closing bug #5484.
2010-03-02s4:provision - Moved backend-specific variables into backend class.Endi S. Dewata1-30/+3
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-01More formatting fixes, pointed out by pylint.Jelmer Vernooij1-3/+3
2010-03-01General cleanups of python code, hinted by pyflakes.Jelmer Vernooij1-4/+1
2010-02-26s4:provision: use generate_random_password()Stefan Metzmacher1-5/+5
metze
2010-02-26s4-provision: fixed use of rndc command from pythonAndrew Tridgell1-1/+1
rndc command is now a list
2010-02-26s4-provision: also create the dns_update_list when running net vampireAndrew Tridgell1-0/+10
We need the list when joining a windows domain, so we can automatically maintain the right DNS entries on the Windows DNS server
2010-02-26s4-provision: setup the dns_update_list at provision timeAndrew Tridgell1-0/+5
This file is substituted at runtime by samba_dnsupdate
2010-02-21s4:provision.py - try to use other addresses than "127.0.0.x" and "::1"Matthias Dieter Wallnöfer1-2/+10
On production systems a user for sure strongly disagrees to use local IP addresses (how should the server be accessible?). Therefore if the user didn't specify an IP as provision option and in the "/etc/hosts" file we have at least one not-local IP which resolves to our hostname use this or one of them. Notice: if a host has more public IP addresses with the same name assigned the behaviour is non-deterministic (well, okay - by the entries order it is). But then the user is invited to specify the host IP manually. This should address bug #5484.
2010-02-17s4-provision: freeze the DNS zone before creating the zone fileAndrew Tridgell1-2/+10
This prevents bind from getting confused if it has a journal for the zone.