summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2012-02-17s4:samba-tool fsmo * - fix missing "takes_optiongroups"Matthias Dieter Wallnöfer1-0/+12
This has been reported in bug #8755. Reviewed-by: Jelmer
2012-02-16s4:provision: only print the adminpass if it was generated (not user-provided)Michael Adam1-1/+5
2012-02-16s4:provision: generate the adminpass provision() instead of provision_fill()Michael Adam1-2/+3
so that the adminpass can be logged at the end (otherwise we get "None")
2012-02-16s4:provision: don't log the ldap admin password - it is internal onlyMichael Adam1-3/+0
2012-02-16s4-scripting: samba-tool: Fix domain info usage messageBjörn Baumbach1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2012-02-13s4:join python code - "msDS-KeyVersionNumber" does not exist on Win2kMatthias Dieter Wallnöfer1-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>
2012-02-10tests/source: Add wafsamba/ files to list of Python files to check.Jelmer Vernooij1-2/+16
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Feb 10 01:45:16 CET 2012 on sn-devel-104
2012-02-09s4:join python code - perform a fallback password set operation over libnetMatthias Dieter Wallnöfer1-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>
2012-02-09s4:join python code - write the SAM account name correctlyMatthias Dieter Wallnöfer1-2/+2
It is easier for the comprehension Reviewed-By: Andrew Bartlett <abartlet@samba.org>
2012-02-08samba-tool sites: Re-add support for option groupsAmitay Isaacs1-0/+13
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Feb 8 02:27:28 CET 2012 on sn-devel-104
2012-02-08samba-tool dns: Re-add support for option groupsAmitay Isaacs1-0/+60
2012-02-07provision: Make sure target directory is created early.Jelmer Vernooij2-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
2012-02-07samba-tool user password: Re-add support for option groups.Jelmer Vernooij1-4/+13
2012-02-07samba-tool: Add optiongroups, necessary for 'samba-tool domain ...'Jelmer Vernooij1-6/+13
2012-02-07Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij17-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
2012-02-07Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.pyHoracio G. de Oro1-2/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-01-31s4-s3-upgrade: Check if there are duplicate sids for users and groupsAmitay Isaacs1-0/+4
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 31 02:23:17 CET 2012 on sn-devel-104
2012-01-31s4-s3-upgrade: Use lowercase hostname as hostname for provisionAmitay Isaacs1-1/+1
2012-01-24python: Change except: statement to except Exception:Amitay Isaacs7-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
2012-01-14KCC importldif/exportldif and intersite topologyDave Craft2-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
2012-01-12s4:repl_cleartext_pwd.py: add optional 'clear_utf16_name' parameterStefan Metzmacher1-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
2012-01-12s4:repl_cleartext_pwd.py: add 'attmode' parameter to convert the attname to utf8Stefan Metzmacher1-5/+22
metze
2012-01-12s4:repl_cleartext_pwd.py: correctly compare attids as uint32_t valuesStefan Metzmacher1-5/+10
metze
2012-01-12s4:pygensec/tests: add test for gensec_set_max_update_size()Stefan Metzmacher1-0/+54
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 12 14:47:05 CET 2012 on sn-devel-104
2012-01-12samba-tool:dns: DNS names are case insensitiveAmitay Isaacs1-3/+3
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Jan 12 06:43:01 CET 2012 on sn-devel-104
2012-01-10s4:provision: add "+dns" to server services if the dns backend is SAMBA_INTERNALMichael Adam1-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
2012-01-10s4:provision: add the possibility to provision "server services" in smb.confMichael Adam1-2/+9
Signed-off-by: Kai Blin <kai@samba.org>
2012-01-10s4:provision: improve a messageMichael Adam1-1/+1
Signed-off-by: Kai Blin <kai@samba.org>
2012-01-10s4:python tests __init__.py - do not depend on "subprocess.check_call()"Matthias Dieter Wallnöfer1-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
2012-01-09s4:python tests __init__.py - do not depend on "subprocess.CalledProcessError"Matthias Dieter Wallnöfer1-6/+11
The class is not present in Python 2.4 Reviewed-by: Jelmer
2012-01-09s4:scripting/devel: add repl_cleartext_pwd.py scriptStefan Metzmacher1-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
2012-01-09s4:python/samba/ndr.py: add an optional 'allow_remaining' to ndr_unpack()Stefan Metzmacher1-2/+3
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 9 10:28:30 CET 2012 on sn-devel-104
2012-01-06samba-tool:dns: Check through all the DNS records for a matchAmitay Isaacs1-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
2012-01-04s4:pygensec/tests: check that the client and server have the same session keyStefan Metzmacher1-1/+4
metze
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
2012-01-03s4-provision: Fix the problem of DnsProperty values not being set correctlyAmitay Isaacs1-0/+7
DnsProperty can have empty 'data' member. To parse Dnsproperty with empty data, dnsp.idl has a hack as follows: [switch_is(wDataLength?id:DSPROPERTY_ZONE_EMPTY)] dnsPropertyData data; This implies, to set 'data' value, wDataLength has to be set to a non-zero value first. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 3 05:26:32 CET 2012 on sn-devel-104
2012-01-02s4-provision: Fix tdbdump path lookup in make test.Andreas Schneider1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-29s4-gensec: Pass the auth context in during gensec testAndrew Bartlett1-2/+3
2011-12-23test:dnsserver: Add zone creation and deletion testAmitay Isaacs1-0/+51
2011-12-23samba-tool:dns: Fix a typoAmitay Isaacs1-1/+1
2011-12-23samba-tool:dns: Add zone create/delete commandsAmitay Isaacs1-0/+85
2011-12-23samba-tool:dns: Add support for reverse names (PTR records)Amitay Isaacs1-5/+33
2011-12-23s4-provision: Set dNSProperty attribute for dns zonesAmitay Isaacs1-2/+71
2011-12-20samba-tool: Add transaction wrapper for creating GPOAmitay Isaacs1-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
2011-12-19s4-join: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for ↵Matthieu Patou1-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>
2011-12-17s4 dns: Update prerequisite checking conforming to RFCKai Blin1-0/+79
2011-12-17s4 dns: Give better test output on RCODE mismatchKai Blin1-1/+20
2011-12-14samba-tool: Fix DN for GPO entriesAmitay Isaacs1-8/+2
2011-12-14samba-tool: gpo: fix a typoAmitay Isaacs1-1/+1