summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* 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
* s4 dns: Test QTYPE_ALL queryKai Blin2011-11-241-0/+25
|
* s4 dns: Check more of the returned values for the A queryKai Blin2011-11-241-0/+3
|
* s4 dns: Move dns_transaction_udp to other helper functionsKai Blin2011-11-241-13/+14
|
* s3-py-passdb: Fix handling of uninitialized gid valuesAmitay Isaacs2011-11-182-2/+2
| | | | | | | | Uninitialized gid value is set to -1 and return as such from python passdb api. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
* s3-passdb_test: Policy values are converted to signed integerAmitay Isaacs2011-11-181-1/+1
| | | | No need to check value for 0xffffffff (4294967295).
* s4-s3-upgrade: Add --verbose option to print extra detailsAmitay Isaacs2011-11-182-3/+6
|
* s4-s3-upgrade: Fix idmap types ID_TYPE_UID/ID_TYPE_GID instead of UID/GIDAmitay Isaacs2011-11-181-3/+3
|
* samba-tool: Fix the domain account policy max_pwd_age calculationAmitay Isaacs2011-11-181-2/+8
| | | | | Windows sets maxPwdAge to -0x8000000000000000 when maximum password age is set to 0 days.
* s4-s3-upgrade: Fix the minimum and maximum password age calculationAmitay Isaacs2011-11-181-4/+4
| | | | | Windows sets maxPwdAge to -0x8000000000000000 when maximum password age is set to 0 days.
* s4-s3-upgrade now look for -1 as the special 'not set' valueAndrew Bartlett2011-11-181-1/+1
| | | | | | | this is possible because we know the py_passdb will always set -1 here, not passing though 0xFFFFFFFF. Andrew Bartlett
* s4 dns: Add a first test caseKai Blin2011-11-171-0/+117
|
* samba.tests.dsdb: Import TestCase from samba.tests.Jelmer Vernooij2011-11-171-4/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104
* samba.tests: Make sure testtools is available before importing it.Jelmer Vernooij2011-11-171-0/+2
|
* s4-provision permit server role to be the ROLE_ strings from s3Andrew Bartlett2011-11-172-12/+19
| | | | | | | | Also convert between the aliases in one single place. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* provision: Set the security descriptor while creating partitionsAmitay Isaacs2011-11-161-12/+2
| | | | | | | | With Matthieu's patch, the setting of security descriptor on partition dn at create time works correctly. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Nov 16 08:54:25 CET 2011 on sn-devel-104
* s3-s4-upgrade: do not add description if it is empty string or noneAmitay Isaacs2011-11-161-6/+12
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Nov 16 05:53:41 CET 2011 on sn-devel-104
* s4:join.py - fix typoMatthias Dieter Wallnöfer2011-11-151-1/+1
|
* s4:dsdb/pydsdb: pass down schema_dn to _dsdb_set_schema_from_ldif()Stefan Metzmacher2011-11-151-1/+1
| | | | metze
* s4:python/samba/schema: pass down the schema_dn to set_from_ldif()Stefan Metzmacher2011-11-151-3/+3
| | | | metze
* samba-tool: Don't set UF_PASSWD_NOTREQD flag on "user disable"Giampaolo Lauria2011-11-151-1/+1
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 15 02:51:16 CET 2011 on sn-devel-104
* samba-tool: Remove "domain machinepassword" commandGiampaolo Lauria2011-11-151-28/+0
| | | | | | | | | | As per Andrew Bartlett's comment: "we should remove it. This was originally a script to support some interactions between samba3 and samba4, when they were in distinct build systems. We now can call between the two systems without difficulty at runtime, so this command has no value." Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* waf: Don't link python modules against libpython2.x, consistent with other ↵Jelmer Vernooij2011-11-131-1/+1
| | | | | | Python modules. Rather, rely just on waf's pyext feature. This fixes a warning from dh_python2.
* upgrade: use logger.warning.Jelmer Vernooij2011-11-131-4/+4
|