summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4-gensec: Pass the auth context in during gensec testAndrew Bartlett2011-12-291-2/+3
|
* test:dnsserver: Add zone creation and deletion testAmitay Isaacs2011-12-231-0/+51
|
* samba-tool:dns: Fix a typoAmitay Isaacs2011-12-231-1/+1
|
* samba-tool:dns: Add zone create/delete commandsAmitay Isaacs2011-12-231-0/+85
|
* samba-tool:dns: Add support for reverse names (PTR records)Amitay Isaacs2011-12-231-5/+33
|
* s4-provision: Set dNSProperty attribute for dns zonesAmitay Isaacs2011-12-231-2/+71
|
* samba-tool: Add transaction wrapper for creating GPOAmitay Isaacs2011-12-201-51/+44
| | | | | | | | This ensures that if the GPT files are not copied via SMB, AD changes are rolled back. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Dec 20 09:12:41 CET 2011 on sn-devel-104
* s4-join: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for ↵Matthieu Patou2011-12-191-0/+10
| | | | | | | | | | | the base dn partition Windows dcpromo do the same: getncchanges with DRS_GET_ANC and DRS_CRITICAL_ONLY, then it does a getncchanges without those flags for the rest. Signed-off-by: Andrew Tridgell <tridge@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4 dns: Update prerequisite checking conforming to RFCKai Blin2011-12-171-0/+79
|
* s4 dns: Give better test output on RCODE mismatchKai Blin2011-12-171-1/+20
|
* samba-tool: Fix DN for GPO entriesAmitay Isaacs2011-12-141-8/+2
|
* samba-tool: gpo: fix a typoAmitay Isaacs2011-12-141-1/+1
|
* samba-tool: Remove duplicate code of dsacl to fsacl conversionAmitay Isaacs2011-12-141-38/+10
| | | | Use samba.ntacls.dsacl2fsacl() instead.
* s4-provision: Do not guess partition file names, use @PARTITION recordAmitay Isaacs2011-12-131-59/+76
| | | | | | | | | | | This is to avoid duplicating the logic of generating partition file names. (partition file names are encoded partially as per RFC1738). Also, use tdb_copy() instead of filesystem copy function to copy database files, which guarantees correct database copy. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Dec 13 03:28:03 CET 2011 on sn-devel-104
* s4-provision: Extract common utility routines in separate fileAmitay Isaacs2011-12-133-92/+106
|
* s4-provision: CN=MicrosoftDNS,CN=System container is in forest and not domainAmitay Isaacs2011-12-131-10/+10
|
* s4:python/samba/join: set msDS-Behavior-Version to '4' 2008_R2 on the nTDSA ↵Stefan Metzmacher2011-12-121-1/+1
| | | | | | | | | | | object This matches the values we set in provision. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 19:16:13 CET 2011 on sn-devel-104
* tdb2: don't use TDB2 versions of test tdb files.Rusty Russell2011-12-121-5/+2
| | | | | | | | | | | Now tdb2 handles tdb1 files, we don't need most of commit 5eecc854236f0b943aaa89e0c3a46f9fbd208ca9 which added TDB2 versions of all the testing tdbs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 12 06:33:44 CET 2011 on sn-devel-104
* s4 dns: Update requests with QCLASS != IN or ALL trigger NOTIMPLEMENTED errorsKai Blin2011-12-091-0/+12
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Dec 9 03:32:28 CET 2011 on sn-devel-104
* s4 dns: Add test to prove two updates in one packet are a FORMERRKai Blin2011-12-091-0/+18
|
* Revert "Install (platform-independent) python scripts to the PYTHONDIR ↵Jelmer Vernooij2011-12-091-1/+1
| | | | | | | | | | | | | | rather than PYTHONARCHDIR." This reverts commit de4b8943bfb40e2f50c9e4e2ee5d39e986317d08. PYTHONDIR and PYTHONARCHDIR are both incorrect - they're the distribution's python locations, rather than the python locations for third party applications. For the moment, using PYTHONARCHDIR seems better though, because it works around an issue on Fedora/RedHat. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Dec 9 01:58:50 CET 2011 on sn-devel-104
* Add test for PEP8 - currently all errors are ignored, but we warn about them ↵Jelmer Vernooij2011-12-081-0/+50
| | | | | | | - and can ratchet if we want to. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 8 23:44:10 CET 2011 on sn-devel-104
* samba.drs_utils: Use new style classes and exceptions, fix formatting of ↵Jelmer Vernooij2011-12-081-13/+19
| | | | docstrings to make pydoctor happy.
* samba.kcc_utils: Fix formatting to match PEP8, make pydoctor happy.Jelmer Vernooij2011-12-081-246/+214
|
* Add tests for srvsvc python interface. Thanks Dhananjay SatheJelmer Vernooij2011-12-081-0/+69
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 8 04:57:52 CET 2011 on sn-devel-104
* dbcheck: cope with objects disappearing during checkingAndrew Tridgell2011-12-082-6/+16
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 8 03:23:49 CET 2011 on sn-devel-104
* samba_kcc NTDSConnection translationDave Craft2011-12-081-108/+682
| | | | | | | | | | | | | | | 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>
* pydsdb: provide a am_pdc hook like am_rodc to python scriptsAndrew Bartlett2011-12-071-0/+4
|
* Install (platform-independent) python scripts to the PYTHONDIR rather than ↵Jelmer Vernooij2011-12-061-1/+1
| | | | PYTHONARCHDIR.
* samba-tool: refuse to demote if the current DC has still rolesMatthieu Patou2011-12-051-4/+12
|
* samba-tool: add a function to cleanly demote a DCMatthieu Patou2011-12-052-2/+257
| | | | | samba-tool domain demote allow the local DC to properly demote against Microsoft and Samba DC.
* s4-python: factorize the definition of get_dsServiceNameMatthieu Patou2011-12-054-18/+14
|
* s4-python: externalize some function to the drs_utils module so that they ↵Matthieu Patou2011-12-052-25/+66
| | | | can be reused
* s4-python: rename conflicting variable with the import optionMatthieu Patou2011-12-051-2/+2
|
* s4 dns: Test SOA queriesKai Blin2011-12-031-0/+32
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 3 20:52:51 CET 2011 on sn-devel-104
* s4:python: add --machinepass option to 'samba-tool domain join'Stefan Metzmacher2011-11-291-5/+11
| | | | metze
* s4:python/samba/join.py: add optional 'machinepass' parameter to join_*()Stefan Metzmacher2011-11-291-6/+12
| | | | metze
* s4:python/samba/join.py: add optional 'machinepass' parameter to class dc_joinStefan Metzmacher2011-11-291-2/+6
| | | | metze
* s4-samba-tool: Add --principal argument to samba-tool domain exportkeytabAndrew Bartlett2011-11-291-3/+4
| | | | | | | | | | | | | This allows only a particular principal to be exported to the keytab. This is useful when setting up unix servers in a Samba controlled domain. Based on a request by Gémes Géza <geza@kzsdabas.hu> Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 29 09:20:55 CET 2011 on sn-devel-104
* s4-provision: Fix the security ace for DnsAdmins group on DNS recordsAmitay Isaacs2011-11-291-12/+19
| | | | | | | Find the objectSid for DnsAdmins group and use that instead of a fixed sid. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 29 07:38:06 CET 2011 on sn-devel-104
* s4-provision: Make BIND9_DLZ as the default backend for DNSAmitay Isaacs2011-11-293-3/+3
|
* s4-provision: Create a samdb copy for access by dlz_bind9 moduleAmitay Isaacs2011-11-293-56/+156
| | | | | | | | This creates a copy of rootdse, configuration and schema partitions for dlz_bind9 use in dns/ directory. Since dlz_bind9 requires write access to DNS partitions (DomainDnsZones and ForestDnsZones), those partitions are hard-linked (or symlinked) to the actual partitions. An empty domain partition is created so samdb layer can work.
* s4-provision: Extract security descriptors in separate fileAmitay Isaacs2011-11-292-77/+111
| | | | Need to use domain security descriptor from sambadns.py also.
* s4-test: Remove metadata and ldb.d directory on clean upAmitay Isaacs2011-11-291-0/+5
| | | | | | When using partitions, metadata.tdb automatically gets created in ${prefix}ldb.d/ directory. To correctly clean up check if metadata.tdb exists, then remove metadata.tdb and directory.
* s4-samdb: seqence_number() operation must be in a transactionAmitay Isaacs2011-11-291-0/+14
|
* samba-tool: domain info - add basic exception handlingMatthias Dieter Wallnöfer2011-11-271-2/+4
| | | | | | | It is nicer to get an error message rather than a stacktrace on wrong IP addresses. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* samba-tool: add a domain info command to get basic infoMatthieu Patou2011-11-271-1/+24
| | | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:netcmd/common.py: add a "netcmd" function to do a cldap netlogon requestMatthias Dieter Wallnöfer2011-11-271-0/+9
| | | | | | | | This is useful for a new "samba-tool domain info" command. Patch inspired by Matthieu Patou. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libnet/py_net.c: "py_net_finddc" - add an "address" parameterMatthias Dieter Wallnöfer2011-11-262-6/+9
| | | | | | | | This is useful for a new "samba-tool domain info" command. Patch inspired by Matthieu Patou. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4 dns: Test QCLASS_NONE queryKai Blin2011-11-241-0/+14
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Thu Nov 24 14:10:45 CET 2011 on sn-devel-104