summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2009-04-06Improve formatting in Python file.Jelmer Vernooij1-0/+5
2009-04-06Make valid_netbios_name() check a bit stricter.Jelmer Vernooij2-2/+16
2009-03-21s4/provision: Use existing serverrole variable.Matthias Dieter Wallnoefer1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-20s4:fullschema Use server-side sort to make the output deterministicAndrew Bartlett1-2/+4
2009-03-20s4: Remove autogenerated attributes from minschema and fullschema outputAndrew Bartlett2-16/+0
These attributes will be generated by Samba on import, and do not need to be in the schema file. Andrew Bartlett
2009-03-20Add minschema like tool to extract and dump the full schema from ADAndrew Bartlett1-0/+191
2009-03-20s4:minschma Fix aggregate schema generation in minschemaAndrew Bartlett1-24/+23
The conversion from EJS to python I did with Jelmer this morning was not quite complete, due mostly to the difference between print in EJS and python (python implies a newline). Andrew Bartlett
2009-03-20s4:ldb Ensure to pass down options to LDB from pythonAndrew Bartlett1-3/+3
This is needed for things such as to load modules, like the paged_searches module. Andrew Bartlett
2009-03-20Merge branch 'master' of git://git.samba.org/samba into minschemaJelmer Vernooij3-15/+17
2009-03-20Fix up minschema after the conversion from JavaScript.Jelmer Vernooij1-88/+77
Pair programmed over the phone with Andrew :-)
2009-03-12use a base64 encoded password when changing passwordsAndrew Tridgell1-2/+3
This avoids problems with embedded control characters in password changes
2009-03-12fixed more embedded spaces in LDIFAndrew Tridgell1-3/+3
This one added 3 spaces to the end of any new passwords
2009-03-12removed leading spaces from embedded ldifAndrew Tridgell1-10/+10
This fixes the problem with the setpassword command failing like this: Error: First line of ldif must be a dn not ' dn'
2009-03-04Don't print the admin password if we don't set one.Andrew Bartlett1-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
2009-03-02Fix test_surrounding in samba4.rpcecho.python.Jelmer Vernooij1-1/+1
2009-02-25Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-16/+109
Conflicts: source4/scripting/python/samba/provision.py
2009-02-25Updates to the recent cn=config support for the OpenLDAP backendOliver Liebel1-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>
2009-02-24Added mmr and olc to the OpenLDAP backend provisioning-scriptsOliver Liebel1-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>
2009-02-24expand tabs in python file, consistent with the rest of the file.Jelmer Vernooij4-9/+9
2009-02-24expand tabs in python file, consistent with the rest of the file.Jelmer Vernooij1-39/+39
2009-02-24Fix finding of setup data.Jelmer Vernooij1-1/+1
2009-02-18paper over failure to reprovision with os.unlink()Andrew Bartlett1-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
2009-02-12Provide a SamDB TestCase-class that can be used by OpenChange.Jelmer Vernooij1-0/+10
2009-02-12Use created loadparm context, rather than the one specified on the command-line.Jelmer Vernooij1-2/+2
2009-02-11Catch specific exceptions, rather than catching everything, which might hide ↵Jelmer Vernooij1-3/+3
other exceptions silently.
2009-02-11Use convenience function for finding setup dir in SaMDB tests.Jelmer Vernooij1-2/+2
2009-02-11Use convenience function for finding setup_dir based on location ofJelmer Vernooij1-0/+17
python module.
2009-02-11Move some samdb-specific code out of provision.Jelmer Vernooij2-6/+10
2009-02-11Make it possible to override the setup path.Jelmer Vernooij1-9/+11
2009-02-11Cancel transactions when exceptions are raised.Jelmer Vernooij2-83/+93
2009-02-02s4:scripting/python: we should not silence warnings on handwritten python ↵Stefan Metzmacher1-1/+1
bindings metze
2009-02-02s4:auth: the python bindings don't use swig anymoreStefan Metzmacher1-1/+1
metze
2009-01-22Remove obsolete samr Python module - use samba.dcerpc.samr instead.Jelmer Vernooij1-759/+0
2009-01-21s4:python glue: fix dependecy to pyldbStefan Metzmacher1-1/+1
metze
2009-01-19Make sure server_role gets initialized in backend provisioning code -Jelmer Vernooij1-1/+17
fixes test.
2009-01-19Print more useful suggestion for the main provision command lineAndrew Bartlett1-1/+1
2009-01-16Find default smb.conf path correctly, when it was not specified on theJelmer Vernooij1-0/+8
command-line.
2009-01-09Only do special DN tracking for normal DNs in OpenLDAP backend.Andrew Bartlett1-2/+2
This means trying (again, harder), not to do this for DN+Binary and DN+String attributes. Andrew Bartlett
2009-01-08Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij1-1/+5
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-07s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty1-1/+1
2009-01-07Display lsa string contents.Jelmer Vernooij1-2/+5
2009-01-06Fix typoMatthias Dieter Wallnöfer1-1/+1
2009-01-06py: Properly increase the reference counter of Py_None.Jelmer Vernooij1-8/+8
2009-01-05More work to have OpenLDAP accept the full AD schemaAndrew Bartlett1-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
2008-12-29pyglue: fix the build with automatic dependeciesStefan Metzmacher1-1/+1
metze
2008-12-23samba.tests.samdb: Fix test after merger of samba.security andJelmer Vernooij1-1/+1
samba.dcerpc.security
2008-12-23pyldb: Fix segfault because of incorrect reference counting.Jelmer Vernooij1-0/+1
2008-12-22Add header for pyparam.Jelmer Vernooij1-1/+1
2008-12-22Remove includes of py_*.h, which are no longer generated.Jelmer Vernooij1-2/+0
2008-12-21Fix more tests, improve repr() functions for various Python types.Jelmer Vernooij2-8/+13