summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2009-07-03s4: Remove stub endpoint mapper script.Jelmer Vernooij1-24/+0
2009-07-02show attribute values in sorted order to make comparison easierAndrew Tridgell1-0/+5
2009-07-02Changed ldb.ERR_NO_SUCH_OBJECT to LDB_ERR_NO_SUCH_OBJECT.Andrew Tridgell1-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 ....
2009-06-18s4: Add tests and 'must change password' flags in setpassword and newuserAndrew Bartlett1-10/+21
In particular, ensure that we can acutally change the password under these circumstances. Andrew Bartlett
2009-06-18s4:setup Add an option to 'setpassword' to force password change at next loginAndrew Bartlett1-2/+12
2009-06-18Remove outdated Python status file.Jelmer Vernooij1-14/+0
2009-06-17Make fullschema script executable.Jelmer Vernooij1-0/+0
2009-06-16python: Provide way to iterate over available shares.Jelmer Vernooij1-1/+4
2009-06-16python: Add API for accessing available shares.Jelmer Vernooij1-0/+58
2009-06-11A script to compare the differences in nTSecurityDescriptor between 2 hostsNadezhda Ivanova1-0/+153
This script walks the schema, configuration and domain partitions of the locally installed Ldb and a remote hosts and compares the descriptors disregarding the difference in domain SID. The goal is to make sure a freshly provisioned Samba has the correct descriptors so ACLs work correctly. It outputs the descriptors in short SDDL, where the correct SIDs are to be replaced during provisioning. Optionally it can be output as an LDIF file with the current local domain and domain SIDs.
2009-06-09Fix installation path of the subunit python modules.Timur I Bakeyev1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-06-08python: Fix samba4.dcerpc.rpcecho.RpcEchoTests.test_surrounding test.Jelmer Vernooij1-1/+1
2009-06-02Fix more unresolved symbols.Jelmer Vernooij2-10/+18
2009-06-02python: Move helper functions for using param into a separate file ratherJelmer Vernooij1-1/+1
than linking against the python module.
2009-05-27Modified SamDB to accept options like Ldb.Nadezhda Ivanova1-2/+2
2009-04-21Add str() for policy_handles.Andrew Bartlett1-1/+6
Pair programmed with Jelmer
2009-04-21python/dcerpc: Custom implementations of policy_handle.__init__ and ↵Andrew Bartlett1-0/+11
policy_handle.__repr__ pair-programmed with Jelmer
2009-04-21python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and ↵Andrew Bartlett1-0/+48
GUID.__cmp__.
2009-04-20Fix the valid NetBIOS name tests.Jelmer Vernooij1-3/+3
2009-04-09Merge branch 'wspp-schema'Andrew Tridgell4-42/+364
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-04-03s4:schema Update Windows 2008 schema from Microsoft to latest versionAndrew Bartlett1-2/+2
2009-03-31Merge branch 'master' into wspp-schemaAndrew Tridgell4-30/+206
2009-03-21s4/provision: Use existing serverrole variable.Matthias Dieter Wallnoefer1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-20s4:schema Remove 'cn' from the final output of ms_schema.pyAndrew Bartlett1-0/+6
This avoids one more point of difference between this an the output from minschema and fullschema Andrew Bartlett
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 ssh://git.samba.org/data/git/samba into wspp-schemaAndrew Bartlett2-101/+91
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-11s4:provision load_schema in provision.py no longer takes a hostnameAndrew Bartlett1-2/+1
This was missed in the earlier work to use this in provision-backend Andrew Bartlett
2009-03-06Load the schema for provision-backend in a transactionAndrew Bartlett1-18/+24
Loading data in a transaction is faster than without. Andrew Bartlett
2009-03-05Allow ms_schema.py to produce output much like minschema_wsppSreepathi Pai1-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>
2009-03-05Remove ad2oLschema, insted call it directly from provision-backendAndrew Bartlett3-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
2009-03-05Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schemaAndrew Bartlett6-13/+14
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-25Add the new, updated AD schema file from MicrosoftAndrew Bartlett1-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
2009-02-25Don't parse the schema data twiceAndrew Bartlett1-12/+8
2009-02-25Tolerate more whitespace errorsAndrew Bartlett1-0/+1
We need to trim trailing spaces in the Microsoft-supplied schema. Andrew Bartlett
2009-02-25Create schema.ldif at runtime directly from ad-schema filesSreepathi Pai2-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>
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>