summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* Changed ldb.ERR_NO_SUCH_OBJECT to LDB_ERR_NO_SUCH_OBJECT.Andrew Tridgell2009-07-021-5/+5
| | | | | | | | The LDB_ERR_NO_SUCH_OBJECT varient is not a defined variable. This should improve error handling in our python code on some systems. Unfortunately it still doesn't work on mine. I need to trap Jelmer somewhere where he can't escape some day and force him to divulge the deep druid secrets of python exception handling ....
* s4: Add tests and 'must change password' flags in setpassword and newuserAndrew Bartlett2009-06-181-10/+21
| | | | | | | In particular, ensure that we can acutally change the password under these circumstances. Andrew Bartlett
* s4:setup Add an option to 'setpassword' to force password change at next loginAndrew Bartlett2009-06-181-2/+12
|
* Remove outdated Python status file.Jelmer Vernooij2009-06-181-14/+0
|
* python: Provide way to iterate over available shares.Jelmer Vernooij2009-06-161-1/+4
|
* python: Add API for accessing available shares.Jelmer Vernooij2009-06-161-0/+58
|
* Fix installation path of the subunit python modules.Timur I Bakeyev2009-06-091-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* python: Fix samba4.dcerpc.rpcecho.RpcEchoTests.test_surrounding test.Jelmer Vernooij2009-06-081-1/+1
|
* Fix more unresolved symbols.Jelmer Vernooij2009-06-022-10/+18
|
* python: Move helper functions for using param into a separate file ratherJelmer Vernooij2009-06-021-1/+1
| | | | than linking against the python module.
* Modified SamDB to accept options like Ldb.Nadezhda Ivanova2009-05-271-2/+2
|
* Add str() for policy_handles.Andrew Bartlett2009-04-211-1/+6
| | | | Pair programmed with Jelmer
* python/dcerpc: Custom implementations of policy_handle.__init__ and ↵Andrew Bartlett2009-04-211-0/+11
| | | | | | policy_handle.__repr__ pair-programmed with Jelmer
* python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and ↵Andrew Bartlett2009-04-211-0/+48
| | | | GUID.__cmp__.
* Fix the valid NetBIOS name tests.Jelmer Vernooij2009-04-201-3/+3
|
* Merge branch 'wspp-schema'Andrew Tridgell2009-04-094-42/+364
|\
| * 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: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
| |\ \
| * | | 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
| |\ \ \
| * | | | 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>
* | | | | Improve formatting in Python file.Jelmer Vernooij2009-04-061-0/+5
| | | | |
* | | | | Make valid_netbios_name() check a bit stricter.Jelmer Vernooij2009-04-062-2/+16
| |_|_|/ |/| | |
* | | | 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
* | | 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'
* | 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
| * 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>
* | 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
|/
* 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.