summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4:schema Update Windows 2008 schema from Microsoft to latest versionAndrew Bartlett2009-04-031-2/+2
|
* Merge branch 'master' into wspp-schemaAndrew Tridgell2009-03-312-4/+4
|\
| * s4/provision: Use existing serverrole variable.Matthias Dieter Wallnoefer2009-03-211-1/+1
| | | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
| * s4:ldb Ensure to pass down options to LDB from pythonAndrew Bartlett2009-03-201-3/+3
| | | | | | | | | | | | | | This is needed for things such as to load modules, like the paged_searches module. Andrew Bartlett
* | s4:schema Remove 'cn' from the final output of ms_schema.pyAndrew Bartlett2009-03-201-0/+6
| | | | | | | | | | | | | | This avoids one more point of difference between this an the output from minschema and fullschema Andrew Bartlett
* | Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schemaAndrew Bartlett2009-03-201-13/+14
|\|
| * use a base64 encoded password when changing passwordsAndrew Tridgell2009-03-121-2/+3
| | | | | | | | | | This avoids problems with embedded control characters in password changes
| * fixed more embedded spaces in LDIFAndrew Tridgell2009-03-121-3/+3
| | | | | | | | This one added 3 spaces to the end of any new passwords
| * removed leading spaces from embedded ldifAndrew Tridgell2009-03-121-10/+10
| | | | | | | | | | This fixes the problem with the setpassword command failing like this: Error: First line of ldif must be a dn not ' dn'
* | s4:provision load_schema in provision.py no longer takes a hostnameAndrew Bartlett2009-03-111-2/+1
| | | | | | | | | | | | This was missed in the earlier work to use this in provision-backend Andrew Bartlett
* | Load the schema for provision-backend in a transactionAndrew Bartlett2009-03-061-18/+24
| | | | | | | | | | | | Loading data in a transaction is faster than without. Andrew Bartlett
* | Allow ms_schema.py to produce output much like minschema_wsppSreepathi Pai2009-03-051-0/+15
| | | | | | | | | | | | | | | | | | I've patched the new ms_schema.py (which was intended to be used as a library) to function as minschema_wspp if invoked standalone. Although this is less robust than minschema_wspp on incorrect data, having two programs doing the same thing might not be good idea. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* | Remove ad2oLschema, insted call it directly from provision-backendAndrew Bartlett2009-03-053-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | This removes a level of indirection via external binaries in the provision-backend code, and also makes better use of our internal code for loading schema from an LDIF file. Remaining to do: Sort the output again, as the load from LDIF is unsorted (also needed because the normal LDB load from sorted input is too slow anyway, and is only needed here). Andrew Bartlett
* | Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schemaAndrew Bartlett2009-03-056-13/+14
|\|
| * Don't print the admin password if we don't set one.Andrew Bartlett2009-03-041-1/+2
| | | | | | | | | | | | | | | | For example, if we don't create the admin user (perhaps expecting users to be in LDAP already, or we are due an incoming replication) we should not confuse the administrator by printing a unused password. Andrew Bartlett
| * Fix test_surrounding in samba4.rpcecho.python.Jelmer Vernooij2009-03-021-1/+1
| |
| * Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-02-251-16/+109
| |\ | | | | | | | | | | | | Conflicts: source4/scripting/python/samba/provision.py
| * | expand tabs in python file, consistent with the rest of the file.Jelmer Vernooij2009-02-244-9/+9
| | |
| * | expand tabs in python file, consistent with the rest of the file.Jelmer Vernooij2009-02-241-39/+39
| | |
| * | Fix finding of setup data.Jelmer Vernooij2009-02-241-1/+1
| | |
* | | Add the new, updated AD schema file from MicrosoftAndrew Bartlett2009-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | Also remove the copy of the licence text from licence.txt, to ensure we don't get variations between the copies. Andrew Bartlett
* | | Don't parse the schema data twiceAndrew Bartlett2009-02-251-12/+8
| | |
* | | Tolerate more whitespace errorsAndrew Bartlett2009-02-251-0/+1
| | | | | | | | | | | | | | | | | | We need to trim trailing spaces in the Microsoft-supplied schema. Andrew Bartlett
* | | Create schema.ldif at runtime directly from ad-schema filesSreepathi Pai2009-02-252-5/+278
| |/ |/| | | | | | | | | | | | | | | | | | | Here's a first attempt at moving the minschema_wspp code into a library as Andrew requested. Since this script no longer has to generate CN=aggregate, I've simplified it quite a bit to a level where it almost does a line-by-line translation. This is faster and simpler, but it may not catch as many errors in the ad-schema files as the previous versions did. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* | Updates to the recent cn=config support for the OpenLDAP backendOliver Liebel2009-02-251-18/+6
| | | | | | | | | | | | | | | | | | | | | | | | - removed workaround for olcSyncprovConfig - creation (works perfect now with 2.4.15, release was today) - added 1 message-helpline, which is displayed when running provision-backend with olc and/or mmr setup - corrected 1 wrong slapcommand-helpline - slapd.conf is removed now in case of olc-setup - added 1 copyright-line to provision.py and provision-backend Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* | Added mmr and olc to the OpenLDAP backend provisioning-scriptsOliver Liebel2009-02-241-41/+146
|/ | | | | | | | | | | | | | | | | | | | | | | These extensions add mmr (multi-master-replication) and olc (openldap-online-configuration) capabilities to the provisioning-scripts (provision-backend and provision.py), for use with the openldap-backend (only versions >=2.4.15!). Changes / additions made to the provision-backend -script: added new command-line-options: --ol-mmr-urls=<list of whitespace separated ldap-urls> for use with mmr (can be combined with --ol-olc=yes), --ol-olc=[yes/no] (activate automatic conversion from static slapd.conf to olc), --ol-slaptest=<path to slaptest binary> (needed in conjunction with --ol-olc=yes) Changes / additions made to the provision.py -script: added extensions, that will automatically generate the chosen mmr and/or olc setup for the openldap backend, according to the to chosen parameters set in the provision-backend script Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* paper over failure to reprovision with os.unlink()Andrew Bartlett2009-02-181-1/+2
| | | | | | | We need to figure out why the deletes on the database fail, but for now doing an unlink of templates_tdb isn't too bad. Andrew Bartlett
* Provide a SamDB TestCase-class that can be used by OpenChange.Jelmer Vernooij2009-02-121-0/+10
|
* Use created loadparm context, rather than the one specified on the command-line.Jelmer Vernooij2009-02-121-2/+2
|
* Catch specific exceptions, rather than catching everything, which might hide ↵Jelmer Vernooij2009-02-111-3/+3
| | | | other exceptions silently.
* Use convenience function for finding setup dir in SaMDB tests.Jelmer Vernooij2009-02-111-2/+2
|
* Use convenience function for finding setup_dir based on location ofJelmer Vernooij2009-02-111-0/+17
| | | | python module.
* Move some samdb-specific code out of provision.Jelmer Vernooij2009-02-112-6/+10
|
* Make it possible to override the setup path.Jelmer Vernooij2009-02-111-9/+11
|
* Cancel transactions when exceptions are raised.Jelmer Vernooij2009-02-112-83/+93
|
* s4:scripting/python: we should not silence warnings on handwritten python ↵Stefan Metzmacher2009-02-021-1/+1
| | | | | | bindings metze
* s4:auth: the python bindings don't use swig anymoreStefan Metzmacher2009-02-021-1/+1
| | | | metze
* Remove obsolete samr Python module - use samba.dcerpc.samr instead.Jelmer Vernooij2009-01-221-759/+0
|
* s4:python glue: fix dependecy to pyldbStefan Metzmacher2009-01-211-1/+1
| | | | metze
* Make sure server_role gets initialized in backend provisioning code -Jelmer Vernooij2009-01-191-1/+17
| | | | fixes test.
* Print more useful suggestion for the main provision command lineAndrew Bartlett2009-01-191-1/+1
|
* Find default smb.conf path correctly, when it was not specified on theJelmer Vernooij2009-01-161-0/+8
| | | | command-line.
* Only do special DN tracking for normal DNs in OpenLDAP backend.Andrew Bartlett2009-01-091-2/+2
| | | | | | | This means trying (again, harder), not to do this for DN+Binary and DN+String attributes. Andrew Bartlett
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-1/+5
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-1/+1
|
* Display lsa string contents.Jelmer Vernooij2009-01-071-2/+5
|
* Fix typoMatthias Dieter Wallnöfer2009-01-061-1/+1
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-8/+8
|
* More work to have OpenLDAP accept the full AD schemaAndrew Bartlett2009-01-051-2/+2
| | | | | | | | | | We need to avoid handling DN+Binary and DN+String with the refint module for now, as this is a currently unsupported syntax. Also rename entryTTL to avoid a conflict with the operational attribute of the same name. Andrew Bartlett
* pyglue: fix the build with automatic dependeciesStefan Metzmacher2008-12-291-1/+1
| | | | metze