summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
* pynet: Raise proper exceptions rather than invoking sys.exit.Jelmer Vernooij2010-05-192-8/+6
|
* s4/selftest: fix passwords in selftest-vars scriptKamen Mazdrashki2010-05-191-2/+2
|
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-3/+0
|
* s4-rodc: Set am_rodc flag during provisionAnatoliy Atanasov2010-05-173-11/+16
|
* s4:net domainlevel tool - fix up the error handling as Jelmer suggestedMatthias Dieter Wallnöfer2010-05-141-2/+4
| | | | Sorry, I've copied this from the "ldap.py" test and thought it would work.
* s4:domainlevel - handle exceptions more preciselyMatthias Dieter Wallnöfer2010-05-131-2/+2
| | | | | | | | | LDB_ERR_UNWILLING_TO_PERFORM should be the right error code when the "msDS-Behavior-Version" was already raised by the first change as it is on Windows Server. When s4 itself does implement this trigger then we don't need to do the second write operation anymore (they're kept in sync).
* s4:domainlevel.py - update the script to handle both domain level ↵Matthias Dieter Wallnöfer2010-05-131-0/+25
| | | | | | | occourrences on s4 The second "modify" is located under a try-catch block to ignore the change failure against Windows Server (there only the first change is required).
* s4:domain functional level - it is also specified in the domain object under ↵Matthias Dieter Wallnöfer2010-05-131-1/+2
| | | | | | partitions Discovered by the "ldapcmp" tool
* Revert "s4-rodc: Fix provision warnings by creating ntds objectGUID in ↵Anatoliy Atanasov2010-05-112-9/+1
| | | | | | | provision" This reverts commit c3cbb846d0bfbaa11fd255bada7fa5fe502d4d96. The fix is not correct, we should cache a bool to answer amIRODC
* v2 Latest enhancements in ldapcmp toolZahari Zahariev2010-05-101-140/+262
| | | | | | | | | | | - Added support for replicating hosts versus hosts in different domains - Added switches for the following modes: = two - ignores additional attributes that cannot be the same in two different provisions (domains) = quiet - display nothing, only return code = verbose - display all dn objects through compare fase = default - display only objects with differences - Added more placeholders for nETBIOSDomainName and ServerName
* s4-rodc: Fix provision warnings by creating ntds objectGUID in provisionAnatoliy Atanasov2010-05-102-1/+9
|
* s4:net utility - make outprinted description comments more consistentMatthias Dieter Wallnöfer2010-05-0913-14/+14
| | | | | I've added a [server connection needed] when commands won't work on the local SamDB.
* s4:net utility - remove unixname parameter of samdb.newuserMatthias Dieter Wallnöfer2010-05-091-9/+4
| | | | We don't handle the id mapping stuff manually anymore.
* s4:samdb python bindings - remove idmap creation stuff from this callMatthias Dieter Wallnöfer2010-05-091-22/+1
| | | | The id mapping should now be handled automatically by the s4 daemon.
* s4:net utility - add an optional password attribute to "net user add"Matthias Dieter Wallnöfer2010-05-091-3/+5
| | | | To make it behave similar to "net newuser".
* s4-devel: a very useful script when dealing with library/linking issuesAndrew Tridgell2010-05-071-0/+15
| | | | | I use this all the time, so I thought I'd put it in the tree for others
* s4-devel: auto-delete any leftover IPsAndrew Tridgell2010-05-061-0/+8
| | | | remove IP from a previous vampire_ad.sh run
* s4-devel: a useful script for giving DRS replication demosAndrew Tridgell2010-05-061-0/+14
|
* s4:py_nttime2string - removed unused variable "nt2"Matthias Dieter Wallnöfer2010-05-041-2/+3
| | | | And add some linespaces to look better.
* s4 python: fix glues functions manipulating NTTIMEMatthieu Patou2010-05-021-1/+35
| | | | | The fix include reverse function (from NTTIME to timestamp) + fix on the transformation of a NTTIME to a PyLong object
* Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"Kamen Mazdrashki2010-04-293-31/+0
| | | | | | | | | | | This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26. Windows implementation does not set schemaInfo attribute value until first Schema update request. This way, newly provisioned forest returns no schemaInfo value. I think it won't be bad for us to have this value preset, but I want to mimic Win AD behavior as close as possible.
* s4:provisionbackend Don't loop forever waiting for OpenLDAPAndrew Bartlett2010-04-281-0/+6
| | | | | | | We need to give a good error when we can't get OpenLDAP to accept our connections. Andrew Bartlett
* s4-provision: setup spn_update_list in provisionAndrew Tridgell2010-04-271-1/+5
|
* s4-dns: install samba_spnupdateAndrew Tridgell2010-04-271-1/+1
|
* s4-dsdb: added samba_spnupdateAndrew Tridgell2010-04-271-0/+137
| | | | | this script adds all our required servicePrincipalName entries at runtime. The admin can add more entries to spn_update_list as needed
* s4-dns: cope better with comments in dns_update_listAndrew Tridgell2010-04-271-7/+4
|
* s4-drsdevel: support sites in drs developer scriptsAndrew Tridgell2010-04-273-3/+7
|
* s4-upgradeprovision: fixed --realm option duplicate in upgrade_from_s3Andrew Tridgell2010-04-211-1/+1
|
* s4-python: added --realm option to python scriptsAndrew Tridgell2010-04-211-1/+7
| | | | | | this is needed for net vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: accept --option arguments in python cmdline parsingAndrew Tridgell2010-04-211-10/+17
| | | | | | also fixed the -d option to use lp.set() which calls lp_set_cmdline() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-devel: allow extra net command line options and gdbAndrew Tridgell2010-04-211-1/+1
| | | | | | | | | | | | This allows you to run: GDB="gdb --args" vampire_ad.sh and also to add higher debug levels like this: vampire_ad.sh -d100 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-net: don't show a full python exception when you can't open sam.ldbAndrew Tridgell2010-04-201-2/+2
|
* s4-python: added PYTHONDIR to python search pathAndrew Tridgell2010-04-201-0/+5
| | | | | we put it after the scripting/python dir, so we look in the build directory (if applicable) first.
* s4:provisionbackend Print the command we failed to start slapd withAndrew Bartlett2010-04-201-1/+2
| | | | | | This makes it easier to put failed startups into a debugger. Andrew Bartlett
* s4:provision Pass in the invoication ID and NTDS Settings DN to Schema()Andrew Bartlett2010-04-203-11/+31
| | | | | | | By putting these values into the cache on the LDB, this reduces some of the noise in provision, particularly with the LDAP backend. Andrew Bartlett
* s4-dns: use neater python for reading linesAndrew Tridgell2010-04-191-7/+2
| | | | files are line iterators
* s4-dev: expanded selftest-vars.sh to match current testenvAndrew Tridgell2010-04-191-4/+41
|
* s4-net: allow a username to be displayed in setpassword errorsAndrew Tridgell2010-04-161-1/+6
| | | | | | the filter is a bit too cryptic Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-net: nicer error message (and no exception)Andrew Tridgell2010-04-162-5/+17
| | | | | | | in net newuser and net setpasswd we shouldn't be throwing python exceptions on normal user errors like unknown user Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: added KRB5_CONFIG to selftest-vars.shAndrew Tridgell2010-04-161-0/+1
|
* pydsdb: Fix memory leak on invalid parameters, formatting, trivialJelmer Vernooij2010-04-151-9/+7
| | | | typos.
* s4 python: add a unit test for function dsdb_get_oid_from_attidMatthieu Patou2010-04-151-0/+44
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 python: make the function dsdb_get_oid_from_attid reachable from a samDB ↵Matthieu Patou2010-04-151-0/+3
| | | | | | object Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fixed a problem with provision missing the default_dir/etc directory.Nadezhda Ivanova2010-04-121-2/+2
|
* s4-net: Add definition of outf.Jelmer Vernooij2010-04-121-0/+2
|
* s4:provision Don't make the 'slaptest' call produce errorsAndrew Bartlett2010-04-101-6/+3
| | | | | | Adding -n 0 also allows us to check the error code too Andrew Bartlett
* s4-waf: only enable the python uuid module if python <= 2.4Andrew Tridgell2010-04-091-1/+2
|
* s4-net: Cope with options without arguments.Jelmer Vernooij2010-04-091-1/+2
|
* s4-net: 'net user create' -> 'net user add', for backwards compatibility.Jelmer Vernooij2010-04-091-3/+3
|
* Support --version in python scripts.Jelmer Vernooij2010-04-091-0/+8
|