summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
* upgradedns: Rename to less generic name samba_upgradedns.Jelmer Vernooij2012-02-243-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Feb 24 15:07:27 CET 2012 on sn-devel-104
* s4-provision: Fix typo in 9b9fdeefb47f2657c9bb4c2f48318550da510209Andrew Bartlett2012-02-231-3/+3
| | | | | | This was not found to to a bug in the selftest system. Andrew Bartlett
* upgradedns: Upgrade DNS provision from BIND9_FLATFILE to AD based DNSAmitay Isaacs2012-02-213-2/+411
| | | | | | | | | 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
* s4-provision: dns: Add txt DNS recordAmitay Isaacs2012-02-211-0/+9
|
* s4-provision: dns: Do not re-calculate ntdsguid, use from namesAmitay Isaacs2012-02-211-15/+1
|
* s4-provision: dns: Refactor population of dns data codeAmitay Isaacs2012-02-211-56/+98
| | | | | | | | | | | Code is split in 4 functions - create_dns_legacy - fill_dns_data_legacy - create_dns_partitions - fill_dns_data_partitions This is useful to upgrade dns provision from file based DNS backend to AD based DNS backend.
* samba-tool: dns: Update the copyrightAmitay Isaacs2012-02-211-1/+1
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Feb 21 09:55:07 CET 2012 on sn-devel-104
* samba-tool: dns: Fix the output display of DNS recordsAmitay Isaacs2012-02-211-2/+3
|
* samba-tool: dns: Add extra references for string objects as workaroundAmitay Isaacs2012-02-211-8/+17
| | | | | | | This is a workaround for bug in pidl generated python bindings, where C object hold a pointer to python string without increasing reference count in python. So when the python string goes out of scope, the C pointer loses the value.
* samba-tool: dns: Add support to add/update/delete MX and SRV recordsAmitay Isaacs2012-02-211-44/+47
|
* samba-tool: dns: Convert dns data into a dns record for comparisonAmitay Isaacs2012-02-211-5/+33
| | | | | and compare two dns records directly. Refactor dns name comparision as dns_name_equal().
* samba-tool: dns: Convert dns data in a string to DNS recordAmitay Isaacs2012-02-211-0/+48
|
* samba-tool: dns: Add MXRecord type to add/update mx recordsAmitay Isaacs2012-02-211-0/+14
|
* s4-python: Various formatting fixes.Jelmer Vernooij2012-02-189-59/+42
|
* samba.web_server: Fix use of whitespace.Jelmer Vernooij2012-02-181-1/+1
|
* s4:samba-tool fsmo * - fix missing "takes_optiongroups"Matthias Dieter Wallnöfer2012-02-171-0/+12
| | | | | | This has been reported in bug #8755. Reviewed-by: Jelmer
* s4:provision: only print the adminpass if it was generated (not user-provided)Michael Adam2012-02-161-1/+5
|
* s4:provision: generate the adminpass provision() instead of provision_fill()Michael Adam2012-02-161-2/+3
| | | | | so that the adminpass can be logged at the end (otherwise we get "None")
* s4:provision: don't log the ldap admin password - it is internal onlyMichael Adam2012-02-161-3/+0
|
* s4-scripting: samba-tool: Fix domain info usage messageBjörn Baumbach2012-02-161-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s4:join python code - "msDS-KeyVersionNumber" does not exist on Win2kMatthias Dieter Wallnöfer2012-02-131-2/+6
| | | | | | | | No problem since "secretsdb_self_join()" then chooses 1 as a default value. Fix case sensitivity for "msDS-KeyVersionNumber". Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* tests/source: Add wafsamba/ files to list of Python files to check.Jelmer Vernooij2012-02-101-2/+16
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Feb 10 01:45:16 CET 2012 on sn-devel-104
* s4:join python code - perform a fallback password set operation over libnetMatthias Dieter Wallnöfer2012-02-091-4/+18
| | | | | | | | Windows 2000 DCs allow LDAP password set operations only with the help of SSL. Given the fact that this technique is hard to setup it is easier to use SAMR over "libnet". Reviewed-By: Andrew Bartlett <abartlet@samba.org>
* s4:join python code - write the SAM account name correctlyMatthias Dieter Wallnöfer2012-02-091-2/+2
| | | | | | It is easier for the comprehension Reviewed-By: Andrew Bartlett <abartlet@samba.org>
* samba-tool sites: Re-add support for option groupsAmitay Isaacs2012-02-081-0/+13
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Feb 8 02:27:28 CET 2012 on sn-devel-104
* samba-tool dns: Re-add support for option groupsAmitay Isaacs2012-02-081-0/+60
|
* provision: Make sure target directory is created early.Jelmer Vernooij2012-02-072-8/+16
| | | | | | | | This is necessary when using the target directory to store temporary files. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Feb 7 02:45:37 CET 2012 on sn-devel-104
* samba-tool user password: Re-add support for option groups.Jelmer Vernooij2012-02-071-4/+13
|
* samba-tool: Add optiongroups, necessary for 'samba-tool domain ...'Jelmer Vernooij2012-02-071-6/+13
|
* Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij2012-02-0717-27/+240
| | | | | | | | | | | | | | | | | This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c. This keeps the main command class fairly slim, and makes it a bit more obvious where the arguments to run() are coming from. Conflicts: source4/scripting/python/samba/netcmd/__init__.py source4/scripting/python/samba/netcmd/domain.py source4/scripting/python/samba/netcmd/gpo.py source4/scripting/python/samba/netcmd/newuser.py source4/scripting/python/samba/netcmd/testparm.py source4/scripting/python/samba/netcmd/user.py source4/scripting/python/samba/tests/samba_tool/__init__.py
* Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.pyHoracio G. de Oro2012-02-071-2/+2
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-s3-upgrade: Check if there are duplicate sids for users and groupsAmitay Isaacs2012-01-311-0/+4
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 31 02:23:17 CET 2012 on sn-devel-104
* s4-s3-upgrade: Use lowercase hostname as hostname for provisionAmitay Isaacs2012-01-311-1/+1
|
* python: Change except: statement to except Exception:Amitay Isaacs2012-01-247-13/+13
| | | | | | | | 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
* KCC importldif/exportldif and intersite topologyDave Craft2012-01-142-376/+2429
| | | | | | | | | | | | 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
* s4:repl_cleartext_pwd.py: add optional 'clear_utf16_name' parameterStefan Metzmacher2012-01-121-7/+17
| | | | | | | | | | Not all cleartext password (machine passwords) can be converted to utf8, let's export the raw uint16_t array. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 12 23:58:12 CET 2012 on sn-devel-104
* s4:repl_cleartext_pwd.py: add 'attmode' parameter to convert the attname to utf8Stefan Metzmacher2012-01-121-5/+22
| | | | metze
* s4:repl_cleartext_pwd.py: correctly compare attids as uint32_t valuesStefan Metzmacher2012-01-121-5/+10
| | | | metze
* s4:pygensec/tests: add test for gensec_set_max_update_size()Stefan Metzmacher2012-01-121-0/+54
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 12 14:47:05 CET 2012 on sn-devel-104
* samba-tool:dns: DNS names are case insensitiveAmitay Isaacs2012-01-121-3/+3
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Jan 12 06:43:01 CET 2012 on sn-devel-104
* s4:provision: add "+dns" to server services if the dns backend is SAMBA_INTERNALMichael Adam2012-01-101-2/+7
| | | | | | | Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Jan 10 21:17:45 CET 2012 on sn-devel-104
* s4:provision: add the possibility to provision "server services" in smb.confMichael Adam2012-01-101-2/+9
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4:provision: improve a messageMichael Adam2012-01-101-1/+1
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4:python tests __init__.py - do not depend on "subprocess.check_call()"Matthias Dieter Wallnöfer2012-01-101-1/+4
| | | | | | | | | Method not present in Python 2.4 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Jan 10 00:41:59 CET 2012 on sn-devel-104
* s4:python tests __init__.py - do not depend on "subprocess.CalledProcessError"Matthias Dieter Wallnöfer2012-01-091-6/+11
| | | | | | The class is not present in Python 2.4 Reviewed-by: Jelmer
* s4:scripting/devel: add repl_cleartext_pwd.py scriptStefan Metzmacher2012-01-091-0/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful to sync passwords from an AD domain. $ $ source4/scripting/devel/repl_cleartext_pwd.py \ -Uadministrator%A1b2C3d4 \ 172.31.9.219 DC=bla,DC=base /tmp/cookie cleartext_utf8 131085 displayName # starting at usn[0] dn: CN=Test User1,CN=Users,DC=bla,DC=base cleartext_utf8: A1b2C3d4 displayName:: VABlAHMAdAAgAFUAcwBlAHIAMQA= # up to usn[16449] $ $ source4/scripting/devel/repl_cleartext_pwd.py \ -Uadministrator%A1b2C3d4 172.31.9.219 DC=bla,DC=base /tmp/cookie cleartext_utf8 131085 displayName # starting at usn[16449] # up to usn[16449] $ metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 9 19:06:06 CET 2012 on sn-devel-104
* s4:python/samba/ndr.py: add an optional 'allow_remaining' to ndr_unpack()Stefan Metzmacher2012-01-091-2/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 9 10:28:30 CET 2012 on sn-devel-104
* samba-tool:dns: Check through all the DNS records for a matchAmitay Isaacs2012-01-061-16/+16
| | | | | | | There can be multiple dns records for a specified record type. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Jan 6 02:41:22 CET 2012 on sn-devel-104
* s4:pygensec/tests: check that the client and server have the same session keyStefan Metzmacher2012-01-041-1/+4
| | | | metze
* upgradeprovision: do not hold references to messageElementsMatthieu Patou2012-01-031-10/+17
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Jan 3 08:20:02 CET 2012 on sn-devel-104