summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2012-09-30s4 dns: Fix return code for deleted recordsKai Blin1-3/+43
This fixes bug #9225. We already had a test for this scenario, but the test wasn't correct. This patch fixes the test, and also fixes the bug. Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Sun Sep 30 13:09:14 CEST 2012 on sn-devel-104
2012-09-27sanba.upgradehelpers: Use standard functionality for getting temp dir.Jelmer Vernooij1-3/+0
2012-09-27s4-python: Various formatting fixes.Jelmer Vernooij37-282/+283
* Trailing whitespace * use of "==" where "is" should be used * double spaces
2012-09-27samba.tests.source: Check for trailing whitespace in Python files.Jelmer Vernooij1-1/+16
2012-09-27samba-tool domain provision: DNS forwarder defaultRicky Nance1-0/+2
Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none". Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104
2012-09-26samba-tool: Hide 'samba-tool domain samba3upgrade'.Jelmer Vernooij2-12/+25
This subcommand is provided for backwards compatibility only; new use of it should be discouraged. Its new name is 'samba-tool domain classicupgrade'. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9047
2012-09-26samba_dnsupdate: Safely update/create names for Samba3 targets as wellAndrew Bartlett1-4/+14
This avoids unlocked writes to the dns_hosts_file, and may fix some of our issues on the build farm where large numbers of tests fail due to failed name resolution. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 26 05:48:25 CEST 2012 on sn-devel-104
2012-09-26samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file ↵Andrew Bartlett1-3/+10
consistent This may be the cause of some of the large failure modes on the build farm. Andrew Bartlett
2012-09-25s4-python: Override SIGINT handler in scripts only.Jelmer Vernooij5-8/+26
Override the SIGINT handler in a few select cases only, rather than doing so in one of the samba Python modules. I've done this where it matters most; we can add this code to other scripts too if necessary. This means that importing the 'samba' module from a third party application does not have side-effects on the state of the signal handlers. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
2012-09-25samba-tool domain provision: DNS forwarder is not a boolean.Jelmer Vernooij1-3/+3
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104
2012-09-24replace: Support setproctitle().Jelmer Vernooij1-2/+2
This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
2012-09-24samba-tool domain-provision: Avoid python2.5-isms.Jelmer Vernooij1-1/+4
2012-09-24samba-tool domain-provision: Fix docstring.Jelmer Vernooij1-2/+2
2012-09-22s4:dns.py: reproducer for (bug #9184)Stefan Metzmacher1-0/+29
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Sep 22 06:08:05 CEST 2012 on sn-devel-104
2012-09-20Correct command help messageDaniele Dario1-1/+1
Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Sep 20 16:55:17 CEST 2012 on sn-devel-104
2012-09-16s4-python: Formatting fixes, break lines.Jelmer Vernooij14-50/+69
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sun Sep 16 15:58:04 CEST 2012 on sn-devel-104
2012-09-16samba.netcmd: Formatting fixes, break lines.Jelmer Vernooij8-194/+209
2012-09-16samba.provision.common: Fix formatting.Jelmer Vernooij1-2/+0
2012-09-16samba.provision.sambadns: Fix formatting.Jelmer Vernooij1-57/+126
2012-09-16samba.provision.backend: Fix formatting.Jelmer Vernooij1-0/+1
2012-09-16samba.provision: Fix formatting, NameErrors.Jelmer Vernooij1-68/+80
2012-09-12s4 provision: Ask for the dns forwarder IP address during interactive provisionKai Blin2-10/+50
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12s4:samba_upgradedns: delete dns-HOSTNAME account if using the internal dns ↵Stefan Metzmacher1-0/+28
server metze
2012-09-12s4:upgradehelpers.py: don't require a dns-$HOSTNAME accountStefan Metzmacher1-3/+0
metze
2012-09-12s4:provision: don't add the dns-HOSTNAME account if we use the internal dns ↵Stefan Metzmacher1-6/+10
server metze
2012-09-12s4 dns: use the internal DNS server per defaultKai Blin3-18/+18
2012-09-12s4 dns: Run python tests in fl2003dc envKai Blin1-19/+19
2012-09-12s4:scripting: rename upgradeprovision -> samba_upgradeprovisionStefan Metzmacher3-2/+2
metze
2012-09-12smbd-posix_acls: Use a IDL union to store the ACL entryAndrew Bartlett1-41/+11
This is a clearer, long-term-stable structure we can hash without risking it changing. Andrew Bartlett
2012-09-11provision: Only give the "no posix ACLs" exception if we could not set the SDAndrew Bartlett1-6/+6
This will allow us to run make test on all platforms again, as we emululate the posix ACLs using the fake_acls module. By then testing smbd.have_posix_acls() we gain a more specific error message. Andrew Bartlett
2012-09-11s4:scripting: install samba_kcc to SBINDIRStefan Metzmacher1-2/+2
It's use as "%s/samba_kcc", dyn_SCRIPTSBINDIR" similar to samba_spnupdate and samba_dnsupdate. metze
2012-09-11s4:scripting: use the 'sbin_files' variableStefan Metzmacher1-1/+1
metze
2012-09-11s4:samba-tool: add 'samba-tool domain provision'Stefan Metzmacher1-1/+264
This is mostly a copy of the standalone source4/setup/provision. metze
2012-09-11s4:python/netcmd: give the Commad implementations access to the raw argumentsStefan Metzmacher1-0/+8
metze
2012-09-11s4:samba-tool: remove unused code in testparm.pyStefan Metzmacher1-5/+0
metze
2012-09-11s4:samba-tool: allow sys.exit(ret) to control the exit codeStefan Metzmacher1-1/+1
Some subcommands may use sys.exit(0), which shouldn't be reported as an error to the caller. metze
2012-09-06join.py: Only replicate DNS zones if the source DC had DNS zonesAndrew Bartlett1-7/+18
This avoid folks needing to specify --dns-backend=NONE Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 6 04:48:55 CEST 2012 on sn-devel-104
2012-09-05selftest: Add python blackbox tests for samba-tool ntacl get/setAndrew Bartlett1-2/+67
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 5 15:47:55 CEST 2012 on sn-devel-104
2012-09-05samba_tool: Improve samba-tool ntacl get/set to use the local sam.ldb SIDAndrew Bartlett1-19/+53
This gets the SID for the local machine correctly. We also add options for --use-ntvfs and --use-s3fs to help control exactly which database is being read and written. Andrew Bartlett
2012-09-05samba_tool: Fix ntacl get to correctly output in sddlAndrew Bartlett1-3/+3
2012-09-05s4-provision: Fix error message to contain the string SSDL of the ↵Andrew Bartlett1-2/+2
failed-to-match ACL
2012-09-04s4-selftest: Try a more complex ACL - this example from a GPOAndrew Bartlett1-0/+14
Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 11:30:17 CEST 2012 on sn-devel-104
2012-09-04s4-selftest: Try to make ntacl unit tests better match their namesAndrew Bartlett1-5/+5
We are trying to test combinations of setting and getting via the VFS and directly to the underlying DB. Andrew Bartlett
2012-09-04s4-samba-tool: Ensure we also sync the SACL as well as the DACL during ↵Andrew Bartlett1-1/+1
sysvolreset
2012-09-04s3-passdb: Rename pdb_samba4 to samba_dsdb and autoconfigure when we are a AD DCAndrew Bartlett2-13/+14
The name samba_dsdb is not ideal, but it matches the primary ldb module we use, and more importantly it avoids having '4' in the name. We should slowly avoid using the term samba4 in long-term places like the smb.conf because it is confusing to users given we are shipping Samba 4.0 as an AD DC as well as all the other supported roles (domain member/standalone server/classic DC) Additionally, samba4 will be an odd name when we eventually release Samba 5.0! samba4 remains accepted as an alias to ensure existing smb.conf files load, but to allow changes here in the future, we set the value during the smb.conf load, and not during the provision when we are an AD DC. This simplifies the default smb.conf for the vast majority of our users and reduces the number of things listed in smb.conf files that we later have to work around if we wish to change the name/implementation of the passdb glue module again. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 04:45:16 CEST 2012 on sn-devel-104
2012-09-03s4-classicupgrade: Show more clearly what is wrong with the Adminstrator SIDAndrew Bartlett1-0/+1
2012-08-28s3-classicupgrade: Fix import from ldapAndrew Bartlett1-2/+2
We must not reference result before provision(), and do not need session_info and lp for reading a normal ldap backend anyway. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 28 09:49:39 CEST 2012 on sn-devel-104
2012-08-28s4-classicupgrade: Do the setting of the sysvol ACLs last, after idmap is ↵Andrew Bartlett2-7/+14
configured This will allow files to be correctly owned by the idmap that is imported. This appears to fix an issue that came up after s3fs-compatible ACLs were merged into provision. Andrew Bartlett
2012-08-28s3-passdb: Allow reload of the static passdb from pythonAndrew Bartlett1-0/+2
This is then used in provision when the passdb backend is forced. Andrew Bartlett
2012-08-28s4-dsdb: Add secrets_tdb_sync - an ldb module to keep secrets.tdb in syncAndrew Bartlett3-2/+4
secrets_tdb_sync is a new ldb module designed to sync secrets.ldb entries with the secrets.tdb file. While not ideal to keep two copies of this data, this routine will assist in allowing the samba-tool domain join code to operate correctly in most cases where winbindd and smbd are used. Andrew Bartlett