summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/pyglue.c
Commit message (Collapse)AuthorAgeFilesLines
...
* samdb: added get_ntds_GUID() methodAndrew Tridgell2010-02-261-0/+35
|
* pyglue: added py_samdb_server_site_name()Andrew Tridgell2010-02-261-0/+29
|
* pyglue: added py_samdb_ntds_invocation_id()Andrew Tridgell2010-02-261-0/+36
|
* pyglue: don't return 127.0.0.0/8 IPs in interface_ips()Andrew Tridgell2010-02-261-5/+18
| | | | We don't generally want loopback addresses in the python code
* s4-pyglue: added interface_ips() callAndrew Tridgell2010-02-231-0/+43
| | | | | This allows a python script to query the internal network interface lists from Samba
* s4-drs: Function for accessing dsdb_load_partition_usn from PythonFernando J V da Silva2010-02-151-0/+50
| | | | | | | Returns both uSNHighest and uSNUrgent as a dict object in Python from a given partition dn. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s4: add python bindings for wrap_(s|g)etxattrMatthieu Patou2010-01-211-2/+2
|
* pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().Jelmer Vernooij2009-12-311-23/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Some changes to allow processing of ldap controls on modify requests.Nadezhda Ivanova2009-11-201-0/+6
| | | | | ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls.
* s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"Matthias Dieter Wallnöfer2009-11-051-0/+17
|
* s4:samdb python bindings - Reorder some function bodies to match the order ↵Matthias Dieter Wallnöfer2009-11-051-25/+24
| | | | in "ldb_wrap_connect"
* s4-python: fixed annoyance where control-C doesn't kill our python scriptsAndrew Tridgell2009-10-251-0/+10
| | | | | | | | | We want our scripts to die immediately when a user hits control-C. Otherwise we not only annoy the hell out of the user, we also risk db corruption as the control-C could get delivered as an exception which gets mis-interpreted (eg. as a missing db object). We use transactions for all our databases, so the right thing to do in all our command line tools is to die immediately.
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-1/+1
| | | | | If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
* s4/python: flagsMatthias Dieter Wallnöfer2009-09-171-5/+41
| | | | | - Introduce the "userAccountControl", "groupType" and "sAMAccountType" flags - Corrects the "domain/forestFunctionality" and "domainControllerFunctionality" flags
* Revert "s4: Let the "setpassword" script finally use the ↵Matthias Dieter Wallnöfer2009-09-101-63/+2
| | | | | | | | | "samdb_set_password" routine" This reverts commit fdd62e9699b181a140292689fcd88a559bc26211. abartlet and I agreed that this isn't the right way to enforce the password policies. Sooner or later we've to control them anyway on the directory level.
* s4: Let the "setpassword" script finally use the "samdb_set_password" routineMatthias Dieter Wallnöfer2009-09-071-2/+63
| | | | | | The "setpassword" script should use the "samdb_set_password" call to change the NT user password. Windows Server tests show that "userPassword" is not the right place to save the NT password and does not inherit the password complexity.
* allow setting of the debug level in python from CAndrew Tridgell2009-09-031-0/+11
|
* s4:python Add helper to get at the domain SIDAndrew Bartlett2009-08-271-0/+27
|
* s4:provison Add prefixes to ldb using same code a later modify will useAndrew Bartlett2009-08-261-0/+26
| | | | | | | | This allows us to test out the code that will do the modify of the prefixMap, and to provide the bindings that may assist a future upgrade script. Andrew Bartlett
* s4:pyglue Add a wrapper for loading the correct UTF8 casefolderMatthias Dieter Wallnöfer2009-08-171-0/+20
| | | | Needed for special characters (e.g. in German "Umlaute")
* s4:schema Allow a schema load on an unconnected databaseAndrew Bartlett2009-08-171-1/+1
| | | | | | | This helps ensure we don't load the schema too often in the provision (allowing a reference in of the schema before the modules load). Andrew Bartlett
* s4:schema Provide a way to reference a loaded schema between ldbsAndrew Bartlett2009-08-171-3/+32
| | | | | | | | This allows us to load the schema against one ldb context, but apply it to another. This will be useful in the provision script, as we need the schema before we start the LDAP server backend. Adnrew Bartlett
* s4:test for "primaryGroupToken"Matthias Dieter Wallnöfer2009-08-111-0/+23
| | | | | | | | Tests for the right behaviour of this introduced constructed attribute. Since we don't support the read-only-ness of those attributes yet, I commented some lines out. Also I had to add a function for python which converts domain SIDs in RIDs. And a small fix for the "groupType" test.
* Remove pyldb_util and simply duplicate the 5-line function it contains,Jelmer Vernooij2009-07-181-0/+9
| | | | rather than creating a separate shared library for it.
* s4:dsdb Handle dc/domain/forest functional levels properlyAndrew Bartlett2009-07-161-0/+6
| | | | | | | | | | | | Rather than have the functional levels scattered in 4 different, unconnected locations, the provision script now sets it, and the rootdse module maintains it's copy only as a cached view onto the original values. We also use the functional level to determine if we should store AES Kerberos keys. Andrew Bartlett
* Add a way to set an opaque integer onto a samdbAndrew Bartlett2009-07-161-0/+59
| | | | This will allow us to set some more flags into ldb during the provision.
* Fix more unresolved symbols.Jelmer Vernooij2009-06-021-9/+17
|
* Remove ad2oLschema, insted call it directly from provision-backendAndrew Bartlett2009-03-051-3/+28
| | | | | | | | | | | | 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
* 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
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-8/+8
|
* pyglue: fix the build with automatic dependeciesStefan Metzmacher2008-12-291-1/+1
| | | | metze
* pyldb: Fix segfault because of incorrect reference counting.Jelmer Vernooij2008-12-231-0/+1
|
* Add header for pyparam.Jelmer Vernooij2008-12-221-1/+1
|
* Remove includes of py_*.h, which are no longer generated.Jelmer Vernooij2008-12-221-2/+0
|
* Fix more introduced regressions in new bindings.Jelmer Vernooij2008-12-211-13/+5
|
* Convert auth python module to "plain" C rather than using SWIG.Jelmer Vernooij2008-12-211-1/+7
|
* py: Fix initialisation of subtypes, fix segfaults.Jelmer Vernooij2008-12-211-0/+273