summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba
Commit message (Collapse)AuthorAgeFilesLines
* Fix merge of my host GUID removal and the IPv6 addition to provisionAndrew Bartlett2008-04-021-10/+26
|\ | | | | | | | | | | | | Merge branch 'v4-0-ipv6' of git://git.id10ts.net/samba into 4-0-abartlet Andrew Bartlett (This used to be commit d3336684f084f984500dd0893dd01bcfc5be0ab1)
| * provision: Add support for IPv6 (bz #4593).Andrew Kroeger2008-04-011-9/+25
| | | | | | | | (This used to be commit 8585a3c77d5dfe97bca3f08716fc06ac2819f578)
* | Remove references to setting the host GUID, as the repl_meta_dataAndrew Bartlett2008-04-021-12/+5
|/ | | | | | | module prohibits it anyway. Andrew Bartlett (This used to be commit c5b287c056855892f30fbbf32efe7d65da31ce91)
* Rework 'compleated' message in provision to be more useful.Andrew Bartlett2008-03-291-7/+9
| | | | | | | | In particular, this should draw attention to accidential 'standalone' server provisions and therefore cause less frustration. Andrew Bartlett (This used to be commit e906ae041a2b589ffceff97b74f7c4b01386382a)
* Fix and test python scripts and kerberosAndrew Bartlett2008-03-282-3/+13
| | | | | | | | | | | | | | | | | This fixes up the python credentials interface in a number of areas, with the aim of supporting '-k yes' as a command line option. (This enables the use of kerberos). As such, I've had to change the get_credentials call to take a loadparm context, so that the credentials can be initialised correctly. The test_kinit script has been modified to prove that this continues to work, as well as to provide greater code coverage of the kerberos paths. Andrew Bartlett (This used to be commit 727ef40c2b56910028ef3c1092b8eab1bfa6ce63)
* Make the setup/newuser and setup/setpassword scripts actually work...Andrew Bartlett2008-03-281-16/+42
| | | | | | | These need a testsuite, but this will come soon. Andrew Bartlett (This used to be commit fbcaa622bd1929399e32326349e96b6676a49b96)
* Merge branch 'v4-0-local' of git://git.id10ts.net/samba into v4-0-testJelmer Vernooij2008-03-281-1/+1
|\ | | | | | | (This used to be commit b6c61bee649734f6000fbf3fe3736d8c82155ac9)
| * provision: Increase max NetBIOS name length from 13 to 15.Andrew Kroeger2008-03-271-1/+1
| | | | | | | | | | Issue originally reported by user Julsa-FR on IRC. (This used to be commit ee9ad77009ef5e36655a49c41730a4a963ba9d43)
* | Don't specify what should be a default option in the generated smb.confAndrew Bartlett2008-03-281-2/+2
|/ | | | | | | Instead, sub in "", so that the default continued to come from the code. Andrew Bartlett (This used to be commit b1829da8f75175fcc569a3a9195f2358731055a9)
* provision: Initialize uninitialized variables if "targetdir" is notKai Blin2008-03-271-1/+4
| | | | | defined and there is no smb.conf file (This used to be commit 19c29f473883be0a17fa740de9feb226f347df4a)
* Rework memberof handling in slapd.conf (used for OpenLDAP backend)Andrew Bartlett2008-03-151-22/+19
| | | | | | | | Instead of using an include file, put the generated configurationd directly into slapd.conf. Andrew Bartlett (This used to be commit 95ac786136aebfe5ededeb3fb81cbd4e296e3988)
* Rework to have member server 'domains' be CN=NETBIOSNAMEAndrew Bartlett2008-03-131-0/+6
| | | | | | | | | | | | This reworks quite a few parts of our provision system to use CN=NETBIOSNAME as the domain for member servers. This makes it clear that these domains are not in the DNS structure, while complying with our own schema (found by OpenLDAP's schema validation). Andrew Bartlett (This used to be commit bda6a38b055fed2394e65cdc0b308a1442116402)
* Update the provision scripts and selftest for LDAPAndrew Bartlett2008-03-131-5/+7
| | | | | | | | | | This should allow us to provision onto an OpenLDAP backend again. Also ensure we always have a sysvol and netlogon share in the selftest environment. Andrew Bartlett (This used to be commit b2d9b03ba3434e76d4d476233a198728523d17f9)
* Upgrade provision-backend to python.Andrew Bartlett2008-03-131-210/+411
| | | | | | | | | This required a large rework of the provision code, so as to move much of the 'guess' logic into subprocedures, rather than just inline in the provision code. Andrew Bartlett (This used to be commit a0754c2a857217ca831c2295b17255d8f38dfbc2)
* Fix provision script to work without smb.conf location specified.Andrew Bartlett2008-03-111-2/+3
| | | | | Andrew Bartlett (This used to be commit b4da374a998caac18c288a0a6e3fcd2c50cbffa7)
* Try to fix up part of the upgrade test.Andrew Bartlett2008-03-072-12/+21
| | | | | | | | There are still problems with the upgrade test, but these are not related to the provision system. Andrew Bartlett (This used to be commit d331bc400fb138bc43be88d0ca8ab3bcd590d2cd)
* Rework provision scripts for more testingAndrew Bartlett2008-03-072-17/+17
| | | | | | | | | | | | | | | This fixes up some issues with testdir (was not honoured) and increases test coverage. We now check all the major provision modes. In doing so, to make it possible to call from the multiple layers of 'sh', I have allowed 'dc' to alias 'domain controller' and 'member' to alias 'member server'. Fighting shell quoting in the test system was just too hard... Also fix upgrade.py Andrew Bartlett (This used to be commit 0923de12282b0e063dd73bc3e056dd5c3663c190)
* Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-localAndrew Bartlett2008-03-071-76/+138
|\ | | | | | | (This used to be commit a6997c333cdd68dfba8a069df448836ff487787f)
| * Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).Andrew Bartlett2008-03-061-76/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make Samba4, using the python provision system, pass this test required some major rework. Untested code is broken code, and some of the refactoring for a seperate provision test (which also now passes) broke things. Similarly, the iconv work has compiled, but these codepaths have never been run (NULL pointer de-reference). In working to use a local, rather than global, loadparm context, and to support using a target directory, a few things needed to be reworked, particularly around path handling. Andrew Bartlett (This used to be commit 1169e8d7bee20477b0efbfea3534ac63c83fb3d6)
* | Start to rework provision for LDAP backendsAndrew Bartlett2008-03-072-2/+16
|/ | | | | | | | | | This is the start of the rework of the provision script to handle an LDAP backend correctly. For example, we must not set the 'tdb modules' against an LDAP backend such as OpenLDAP that handles subtree renames. Andrew Bartlett (This used to be commit e462a107d3bafcc546ca4d53dcc8eb32e4280745)
* Fix failure to re-provision.Andrew Bartlett2008-03-032-9/+21
| | | | | | | | | Somewhere in the conversion from ejs we lost calling the 'delete partitions' code. However, we have to be careful not to wipe partitions when we are the second client connecting to an LDAP server. Andrew Bartlett (This used to be commit 272eb765b81e3eab216a07249334f9b7d20e530b)
* Fix member server provisionDouglas VanLeuven2008-03-031-1/+1
| | | | | | | Can't add "member server" because the script aborts with null reference when no match on serverrole. This is fixed by checking for the keyword "member server". (This used to be commit 62536750ae06248a49c6b56c86d01b0062bb54f0)
* Reorder modules to have rdn_name before objectclass.Andrew Bartlett2008-02-281-1/+1
| | | | | | | | This ensures the relative DN is placed in the correct case into the DB. Andrew Bartlett (This used to be commit 16378219fbf9e8a26621f848e85426180822ea29)
* idmap: Handle uid->SID mappingKai Blin2008-02-211-0/+24
| | | | (This used to be commit 6ac6de8476ba036eb041e054bc37e4503dc2fde8)
* Formatting fixes.Jelmer Vernooij2008-02-161-2/+3
| | | | (This used to be commit bc0fab89e325ebb6ab870b1c3f4b263c50631b70)
* Use struct for provision parameters since there are so many of them.Jelmer Vernooij2008-02-151-18/+22
| | | | (This used to be commit 4b9d5bc57ca4ee14c142ea720dce5e4ee97f8c16)
* Initial work on a test for samba.tests.samdbJelmer Vernooij2008-02-132-1/+57
| | | | (This used to be commit 8b33860954ca03be1ea45fd8d40963dbbd5b162f)
* Fix invalid symbol.Jelmer Vernooij2008-02-131-3/+5
| | | | (This used to be commit bd0ef811c4e6419ba05076fbc151827cea5d1ca1)
* Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.Jelmer Vernooij2008-02-115-8/+13
| | | | (This used to be commit eb04de69c0e319e18b148191946808f81e1cc8c4)
* Add tests for upgrade of WINS database.Jelmer Vernooij2008-02-092-3/+20
| | | | (This used to be commit 7777611c0f32a693f0fa057c130e4ea491658f6b)
* Add docstring.Jelmer Vernooij2008-02-091-0/+2
| | | | (This used to be commit 073ed0dd1cc8fae9eb4a2f7ff6763124917c56e8)
* Fix syntax of docstrings, set project name when generating Python API ↵Jelmer Vernooij2008-02-092-5/+3
| | | | | | documentation. (This used to be commit 68f13d87eb034fdbc712169f2d1b1a0475751ec5)
* Fix upgrade after provision parameter rename.Jelmer Vernooij2008-02-091-2/+2
| | | | (This used to be commit 361b9f43fb2abb64f2cbae7740b89a616a3c2646)
* Fix provision python test.Jelmer Vernooij2008-02-091-15/+9
| | | | (This used to be commit b173fa6bd2b24b5a3e7b4fbcb926f6c9771c10ba)
* Add tests for findnss(), add some docstrings.Jelmer Vernooij2008-02-092-14/+48
| | | | (This used to be commit 4eec2bbc9a139e927ce21c615ebfbb3026b26384)
* Remove unused class members.Jelmer Vernooij2008-02-091-4/+2
| | | | (This used to be commit 373ef4287f998b79bf9ba6364d6a67e5c522833d)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivialJelmer Vernooij2008-02-081-17/+27
|\ | | | | | | | | | | | | Conflicts: source/scripting/python/samba/provision.py (This used to be commit e367df5d994181f08ad1a20a0ce01991ca30bcc8)
| * Fix LDAP backend with pythonAndrew Bartlett2008-02-081-18/+26
| | | | | | | | | | | | | | | | We were still setting the hard-coded users.ldb etc, rather than switching to the ldapi:// URI Andrew Bartlett (This used to be commit 603e981250b26b533ec35dd607cb635226cf99df)
* | Fix formatting.Jelmer Vernooij2008-02-081-10/+10
|/ | | | (This used to be commit 73d1b0fcb64fdc7be1e1e1002f3f182fcbe476ae)
* python: Use relative paths for registry.Jelmer Vernooij2008-01-261-1/+8
| | | | (This used to be commit 079200b824de6dd8c7de3e5b76ed1805fde02965)
* python: Load smb.conf file for the provision tests.Jelmer Vernooij2008-01-261-2/+6
| | | | (This used to be commit 41571bbb933c763a9608f4ba56f1a5a97af133ab)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivialJelmer Vernooij2008-01-251-4/+8
|\ | | | | | | | | | | | | Conflicts: source/scripting/python/samba/provision.py (This used to be commit 64babbec22f165e34799d36ff4b76806d9fead50)
| * Tidy up the last regresesions on the python smbscript, from my workAndrew Bartlett2008-01-251-10/+17
| | | | | | | | | | | | | | | | | | | | | | with Jelmer today. The only remaining issue is that for the build farm, we will need to manually specify the users and groups from the NSS_WRAPPPER, as python isn't compiled with this. Andrew Bartlett (This used to be commit 5370484d25b8c7a5bde730d9be36ecbbb0aaf315)
* | python/provision: Reload secrets when necessary, fix unix names in mappings.Jelmer Vernooij2008-01-251-7/+9
|/ | | | | Pair programmed with Andrew. (This used to be commit 04fe8c8aefae8da8966954d0654c37adf2d0361d)
* python: Fix representation of UUIDs as strings in zone files rather than ↵Jelmer Vernooij2008-01-255-10/+19
| | | | | | | binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration. Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-( (This used to be commit dff54ff043563f93b86361039c46e662045f62cc)
* python: Add test for secretsdb_become_dcJelmer Vernooij2008-01-251-3/+18
| | | | (This used to be commit 9173c678efb6f74dbec64298bcb00952feff2ed7)
* python: fix tests for check_all_substituted.Jelmer Vernooij2008-01-251-2/+2
| | | | (This used to be commit 859cffed9d3a62f9f7610d74472aa3c0d1979a35)
* python/provision: Reconcile code partitions-only provisioning and generic ↵Jelmer Vernooij2008-01-255-212/+276
| | | | | | | provisioning, some other minor refactoring of the provisioning. Pair-programmed by Andrew and me using obby :-) (This used to be commit 688adcbb635af87fcfedb869b7f1857a947fd2f9)
* python: Add function to look for unsubsituted variables.Jelmer Vernooij2008-01-242-0/+19
| | | | (This used to be commit e726ce5bc515ae8d10b472396e228cfd35737476)
* python: Add bindings for SamDB.set_invocation_id().Jelmer Vernooij2008-01-241-0/+7
| | | | (This used to be commit c09efa7b778f9cb29032a6abfd914fcaae8df163)