summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/pydsdb.c
Commit message (Collapse)AuthorAgeFilesLines
* pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij2011-08-071-11/+10
|
* pydsdb: added get_backlink_from_lDAPDisplayName()Andrew Tridgell2011-07-131-0/+45
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dsdb: added get_lDAPDisplayName_by_attidAndrew Tridgell2011-07-111-0/+33
| | | | | | | this allows conversion from a DRS attribute ID to a LDAP display name Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: Add functions to get linkid and systemflags of an attributeMatthieu Patou2011-07-111-0/+68
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pydsdb: added get_syntax_oid_from_lDAPDisplayName()Andrew Tridgell2011-06-221-0/+40
| | | | | | this gives you access to the syntax oid of an attribute Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pydsdb: added dsdb_normalise_attributes() callAndrew Tridgell2011-06-171-0/+104
| | | | | | this call converts a set of attributes to DRSUAPI format and back to ldb format. This has the effect of normalising the attributes using the schema syntax rules
* s4-python: Add missing prototypes.Jelmer Vernooij2011-01-031-0/+2
|
* s4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid()Kamen Mazdrashki2010-12-201-4/+16
| | | | | | | | | | | | | This version reverts changes from commit b974966cc2b4d0b5b0d83206070b5f7c5c6495d1 and is what Matthieu Patou had commited in d784ecec555a3d9737e6f4b3894f27904d2b833c with added reference to the schema cache. I think referencing schema here is the right thing to be done as thus we garantee that schema cache will stay in memory for the time our function is executed Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Mon Dec 20 12:01:53 CET 2010 on sn-devel-104
* s4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"Matthias Dieter Wallnöfer2010-12-121-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 12 23:40:17 CET 2010 on sn-devel-104
* ldb:pyldb.h - revert to the previous header behaviourMatthias Dieter Wallnöfer2010-12-121-1/+3
| | | | "ldb_private.h" is private and therefore might not always be available.
* s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced ↵Matthias Dieter Wallnöfer2010-12-121-4/+0
| | | | | | | Py_RETURN_NONE This was only thought for Python 2.3 which we generally no longer support (only pyldb in the LDB library is an exception).
* s4:dsdb/pydsdb.c - clean up memory handlingMatthias Dieter Wallnöfer2010-12-121-54/+70
| | | | | | | - Remove memory contexts when not really useful (if only one allocation) - Try to find out OOM conditions and return correct error codes - Move the parameter parsing always to the beginning (to prevent unneeded allocations in case of errors)
* s4-pydsdb: two more GPO related flagsAndrew Tridgell2010-11-291-0/+2
|
* s4-pydsdb: added GPO policy flagsAndrew Tridgell2010-11-291-0/+7
|
* s4-pydsdb: use cpp macro to simplify flags definitionsAndrew Tridgell2010-11-281-137/+110
| | | | also added some more from flags.h
* s4-pydsdb: py_dsdb_am_rodc() may call samdb_rodc() only once to get the job ↵Kamen Mazdrashki2010-11-101-1/+1
| | | | done :)
* s4-pydsdb: py_dsdb_load_partition_usn() - simplify error handling inKamen Mazdrashki2010-11-101-2/+4
| | | | and print on which partition error has occured
* s4-pydsdb-py_samdb_ntds_objectGUID(): Avoid potential memory leakKamen Mazdrashki2010-11-101-7/+6
| | | | in case py_ldb is not a valid LDB
* s4-pydsdb-py_dsdb_get_oid_from_attid(): Avoid potential memory leakKamen Mazdrashki2010-11-101-2/+2
| | | | in case py_ldb is not a valid LDB
* s4-pydsdb.c: Fix small memory leak in py_samdb_set_domain_sid()Kamen Mazdrashki2010-11-101-0/+1
|
* s4:pydsdb.c - use "Py_ssize_t" for Python list countersMatthias Dieter Wallnöfer2010-11-081-1/+1
| | | | Seems to be the most appropriate type
* s4:pydsdb.c - introduce Python 2.4 compatibility definesMatthias Dieter Wallnöfer2010-11-081-0/+11
|
* s4-pydsdb: added DsReplicaAttribute()Andrew Tridgell2010-11-051-0/+74
| | | | this allows us to form a DsReplicaAttribute structure from python
* s4-pydsdb: added am_rodc() method on samdbAndrew Tridgell2010-09-191-0/+27
|
* s4-pydsdb: expose samdb_partitions_dn() as get_partitions_dn() in pythonAndrew Tridgell2010-09-091-0/+30
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: make more of the UF_* flags available on pydsdbAndrew Tridgell2010-08-251-0/+28
| | | | this really should be moved to IDL
* s4-dsdb: add more DS flags to the dsdb moduleAndrew Tridgell2010-08-251-0/+15
| | | | | | These are from libds/common/flags.h Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added get_attid_from_lDAPDisplayName() on samdbAndrew Tridgell2010-08-251-0/+46
| | | | | | | This can be used to form the partial_attribute_set list for GetNCChanges Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb/pydsdb.c - import "systemFlags" into PythonMatthias Dieter Wallnöfer2010-07-311-0/+26
| | | | Needed by ldap.py tests
* s4:provision Add an msDS-SupportedEncryptionTypes entry to our DCAndrew Bartlett2010-06-291-1/+16
| | | | | | | | This ensures that our DC will use all the available encyption types. (The KDC reads this entry to determine what the server supports) Andrew Bartlett
* libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett2010-06-231-10/+0
| | | | | | These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
* pydsdb: Mark all SamDB and Schema methods that are in pydsdb asJelmer Vernooij2010-06-201-15/+15
| | | | private, to discourage them being called directly.
* pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.Jelmer Vernooij2010-06-191-0/+26
|
* pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij2010-06-191-0/+31
|
* pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij2010-06-191-0/+20
|
* s4-rodc: Cache am_rodc flagAnatoliy Atanasov2010-05-171-0/+22
|
* Revert "s4-rodc: Fix provision warnings by creating ntds objectGUID in ↵Anatoliy Atanasov2010-05-111-23/+0
| | | | | | | provision" This reverts commit c3cbb846d0bfbaa11fd255bada7fa5fe502d4d96. The fix is not correct, we should cache a bool to answer amIRODC
* s4-rodc: Fix provision warnings by creating ntds objectGUID in provisionAnatoliy Atanasov2010-05-101-0/+23
|
* s4:provision Pass in the invoication ID and NTDS Settings DN to Schema()Andrew Bartlett2010-04-201-0/+36
| | | | | | | By putting these values into the cache on the LDB, this reduces some of the noise in provision, particularly with the LDAP backend. Andrew Bartlett
* pydsdb: Fix memory leak on invalid parameters, formatting, trivialJelmer Vernooij2010-04-151-8/+15
| | | | typos.
* s4 python: Add a function to get the oid of an attribute when the attid is knownMatthieu Patou2010-04-151-0/+37
| | | | | | This function is mainly to help decoding replPropertyMetaData in python Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-python: Move load_partition_usn to dsdb module.Jelmer Vernooij2010-04-081-0/+49
|
* s4-python: Move set_global_schema to pydsdb.Jelmer Vernooij2010-04-081-35/+104
|
* s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij2010-04-071-0/+148
|
* s4-python: Move set_opaque_integer to pyldb.Jelmer Vernooij2010-04-061-66/+0
|
* s4-python: Move dsdb_convert_schema_to_openldap to dsdb.Jelmer Vernooij2010-04-041-0/+30
|
* s4-python: Move set_opaque_integer -> dsdb.Jelmer Vernooij2010-04-041-6/+72
|
* s4-python: Move samdb_server_site_name to dsdb module.Jelmer Vernooij2010-04-041-0/+38
|
* s4-python: Move dsdb constants to a separate python module.Jelmer Vernooij2010-04-041-0/+78