summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
AgeCommit message (Collapse)AuthorFilesLines
2012-09-25s4-python: Override SIGINT handler in scripts only.Jelmer Vernooij4-1/+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-12s4:samba_upgradedns: delete dns-HOSTNAME account if using the internal dns ↵Stefan Metzmacher1-0/+28
server metze
2012-09-12s4 dns: use the internal DNS server per defaultKai Blin1-3/+3
2012-09-12s4:scripting: rename upgradeprovision -> samba_upgradeprovisionStefan Metzmacher2-1/+1
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-08-03s4: samba_spnupdate: fix "if we are DNS server" checkBjörn Baumbach1-5/+6
We need to check if we have hasMasterNCs. If we are RODC we have hasFullReplicaNCs instead of hasMasterNCs. TODO: maybe check for hasFullReplicaNCs, too? Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-25s4-samba_upgradedns: Do not set DNS account for internal serverAndrew Bartlett1-32/+32
The internal DNS server does not need the samba-only NAME-dns account. Andrew Bartlett
2012-05-24s4/scripting: in MIT build do not install samba-tool, it is not usable yetAlexander Bokovoy1-3/+1
2012-05-23Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy1-5/+4
System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
2012-05-15samba-upgradedns: Use the correct magic incantation of sys.path.insert()Amitay Isaacs1-1/+1
This replaces "bin/python" with the correct path for python libraries. The pattern requires double quotes (") instead of single quotes ('). Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue May 15 05:19:46 CEST 2012 on sn-devel-104
2012-05-01s4-upgradedns: Update serverdn with only the attributes that have changedAmitay Isaacs1-11/+21
This fixes the issue of ldb 'Operations Error' when trying to modify hasPartialReplicaNCs attribute. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue May 1 05:28:04 CEST 2012 on sn-devel-104
2012-04-19samba_spnupdate: don't try to register DNS related SPN if we are not ↵Matthieu Patou1-1/+24
mastering the NC For RW DC the impact is pretty small but for RODC the whole SPN set is rejected by the target DC as RODC hasn't the right to register DNS SPN if it is not mastering this NC.
2012-04-02s4-upgradedns: Fix the fqdn for forest dns zoneAmitay Isaacs1-1/+1
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Apr 2 10:56:10 CEST 2012 on sn-devel-104
2012-03-28s4-upgradedns: Make sure the attribute exists before accessing itAmitay Isaacs1-4/+8
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 28 10:27:40 CEST 2012 on sn-devel-104
2012-03-26LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer3-13/+14
Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-21s4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settingsAmitay Isaacs1-0/+40
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 21 03:16:22 CET 2012 on sn-devel-104
2012-03-21s4-upgradedns: Allow fixing of dns provision after domain joinAmitay Isaacs1-39/+56
This change allows samba_upgradedns script to be run even on existing dns provision (DLZ_BIND9 or SAMBA_INTERNAL) without any side effects. This allows to "fix" dns provision after samba-tool domain join for running BIND with DLZ plugin.
2012-03-17upgrade provision didn't run findprovisionrange anymoreMatthieu Patou1-8/+13
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Mar 17 09:51:46 CET 2012 on sn-devel-104
2012-03-17Rewrite findprovisionrange to use factorized functionsMatthieu Patou1-98/+4
2012-03-13samba_dnsupdate: Mention contents of invalid line when encountering parsing ↵Jelmer Vernooij1-2/+5
error. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8809
2012-03-13samba_dnsupdate: Raise proper exception when getting unexpected DNS reply.Jelmer Vernooij1-2/+1
2012-03-13samba_dnsupdate: Use docstrings, which show up nicely in API docs.Jelmer Vernooij1-21/+17
2012-03-11upgradedns: Remove unused import.Jelmer Vernooij1-1/+0
2012-03-11s4:upgradeprovision - fix some output messagesMatthias Dieter Wallnöfer1-3/+3
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Mar 11 21:54:54 CET 2012 on sn-devel-104
2012-03-07s4-upgradeprovision: Add options to do a DB backup only and not to fix acls ↵Matthieu Patou1-17/+26
in sysvol
2012-03-04kcc: Improve formatting of Python code to be more consistent with our other ↵Jelmer Vernooij1-193/+157
code.
2012-03-02upgradedns: Fix import of TXT DNS recordsAmitay Isaacs1-1/+3
2012-02-28upgradedns: Missing rename from upgradedns to samba_upgradednsAmitay Isaacs1-1/+1
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Feb 28 10:06:03 CET 2012 on sn-devel-104
2012-02-27samba.xattr: Massively simplify copytree_with_xattrs.Jelmer Vernooij1-1/+1
2012-02-27upgradeprovision: Only backup sysvol directory if it exists.Jelmer Vernooij1-1/+2
This is not the case for standalone installations. Bug: https://bugs.launchpad.net/samba/+bug/930370 Bug: https://bugzilla.samba.org/show_bug.cgi?id=8781
2012-02-27samba.xattr: Split copying of tree with extended attributes out into ↵Jelmer Vernooij1-66/+3
separate module.
2012-02-26provision: Leave result reporting up to caller.Jelmer Vernooij1-1/+2
2012-02-24upgradedns: Rename to less generic name samba_upgradedns.Jelmer Vernooij2-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Feb 24 15:07:27 CET 2012 on sn-devel-104
2012-02-21upgradedns: Upgrade DNS provision from BIND9_FLATFILE to AD based DNSAmitay Isaacs2-0/+405
This script can be used to convert provision from BIND9_FLATFILE to BIND9_DLZ or SAMBA_INTERNAL dns backends. In addition, the script migrates the DNS data in zone file (if available). Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Feb 21 14:50:10 CET 2012 on sn-devel-104
2012-01-24python: Change except: statement to except Exception:Amitay Isaacs1-4/+4
This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2012-01-14KCC importldif/exportldif and intersite topologyDave Craft1-172/+1457
Add options for extracting an LDIF file from a database and reimporting the LDIF into a schema-less database for subsequent topology test/debug. Add intersite topology generation with computation of ISTG and bridgehead servers Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Jan 14 07:45:11 CET 2012 on sn-devel-104
2012-01-03upgradeprovision: do not hold references to messageElementsMatthieu Patou1-10/+17
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Jan 3 08:20:02 CET 2012 on sn-devel-104
2012-01-03upgradeprovision: treat provision without oem attribute as quite recent, ↵Matthieu Patou1-1/+1
it's provision that comes from Windows replication
2011-12-08samba_kcc NTDSConnection translationDave Craft1-110/+610
This is an advancement of samba_kcc to compute and commit the modification of a repsFrom on an NC Replica. The repsFrom is computed according to the MS tech spec for implied replicas of NTDSConnections. Proper maintenance of (DRS options, schedules, etc) from a NTDSConnection are now all present. New classes for inter-site transports, sites, and repsFrom) are now present in kcc_utils.py. Substantively this gets intra-site topology generation functional by committing the repsFrom that were computed from the DSA graph implemented in prior drops of samba_kcc Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-12-07s4-dnsupdate: Do not attempt to add the PDC names if we are not a PDCAndrew Bartlett1-5/+11
2011-11-26s4:libnet/py_net.c: "py_net_finddc" - add an "address" parameterMatthias Dieter Wallnöfer1-1/+1
This is useful for a new "samba-tool domain info" command. Patch inspired by Matthieu Patou. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-22s4-dns: added --no-credentials option to samba_dnsupdateAndrew Tridgell1-3/+10
this is for a user who is doing DNS updates via key files rather than GSSAPI. This allows the update to go through without a kerberos error Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Nov 22 06:34:59 CET 2011 on sn-devel-104
2011-11-15s4:dsdb/pydsdb: pass down schema_dn to _dsdb_set_schema_from_ldif()Stefan Metzmacher1-3/+4
metze
2011-11-14Fix default value for subunitrun --list.Jelmer Vernooij1-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 14 17:27:03 CET 2011 on sn-devel-104
2011-11-14subunitrun: Don't load smb.conf when just listing tests.Jelmer Vernooij1-4/+5
2011-11-10subunitrun: Add notes about subunitrun being deprecated.Jelmer Vernooij1-0/+12
2011-11-10Revert "test: added -D option to subunitrun"Jelmer Vernooij1-5/+0
This reverts commit ac0bba2ea18e2e9ac578a333a3b260951e4c976e. "python -m subunit.run" is the preferred way of running tests to generate subunit. I also don't want to move too far away from the standard test running infrastructure for python so that other test runners (nosetests, trial, tribunal, ...) can be used with Samba code.
2011-11-10test: added -D option to subunitrunAndrew Tridgell1-0/+5
this allows for: subunitrun -D lib/ldb/tests/python api which makes this easier for developers
2011-11-07samba_kcc: Remove unnecessary return statements.Jelmer Vernooij1-17/+0
2011-11-07kcc: fixed program nameAndrew Tridgell1-3/+3
kcccompute -> samba_kcc