Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | CVE-2014-8143:pydsdb: Pull in UF_USE_AES_KEYS flag | Andrew Bartlett | 2015-01-15 | 1 | -0/+1 |
| | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10993 Change-Id: I36ad5ebc5d8a4811c41b59af90a3add4ae5fd857 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | pydsdb: Raise a more useful exception when dsdb_wellknown_dn fails. | Andrew Bartlett | 2013-09-24 | 1 | -0/+5 |
| | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> | ||||
* | pydsdb: Give KeyError when we fail a schema lookup in python | Andrew Bartlett | 2013-09-24 | 1 | -8/+8 |
| | | | | | | | | | This allows sensible exception handling. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> | ||||
* | python/drs: Ensure to pass in the local invocationID during the domain join | Andrew Bartlett | 2013-09-19 | 1 | -0/+5 |
| | | | | | | | | | | This ensures (and asserts) that we never write an all-zero GUID as an invocationID to the database in replPropertyMetaData. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | s4:dsdb_sort_objectClass_attr - simplify memory context handling | Matthias Dieter Wallnöfer | 2012-08-22 | 1 | -2/+1 |
| | | | | | | | Do only require the out memory context and build the temporary one in the body of the function. This greatly simplifies the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org> | ||||
* | s4-dsdb: Explain better what records are written during schema set | Andrew Bartlett | 2012-08-10 | 1 | -3/+3 |
| | | | | | | This is controlled by setting write_indices_and_attributes. Andrew Bartlett | ||||
* | s4-pydsdb: Provide control of if we should write index attributes when ↵ | Andrew Bartlett | 2012-08-09 | 1 | -2/+4 |
| | | | | | | | | reloading a schema This allows us to carefully control the loading of the schema. Andrew Bartlett | ||||
* | s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/ | Stefan Metzmacher | 2012-08-06 | 1 | -5/+5 |
| | | | | metze | ||||
* | dsdb: Allocate new OID to allow updates of a read-only replica | Andrew Bartlett | 2012-07-18 | 1 | -0/+1 |
| | | | | | | | Normally this would be a very bad idea, but the specific case of fixing the instanceType is the only case where this makes sense. Andrew Bartlett | ||||
* | s4-dsdb: Remove unused variables in py_dsdb_get_partitions_dn | Andrew Bartlett | 2012-07-06 | 1 | -3/+0 |
| | |||||
* | pydsdb: Add bindings for dsdb_wellknown_dn() | Andrew Bartlett | 2012-07-06 | 1 | -0/+35 |
| | |||||
* | s4-pydsdb: Add bindings for dsdb_find_nc_root() | Andrew Bartlett | 2012-07-06 | 1 | -0/+23 |
| | |||||
* | s4-pydsdb: Improve PyErr_LDB_{DN,}_OR_RAISE to use py_check_dcerpc_type | Andrew Bartlett | 2012-07-06 | 1 | -2/+9 |
| | | | | | | This checks the type rather than just dereferencing the pointer. Andrew Bartlett | ||||
* | s4:dsdb/pydsdb.c - call the "objectClass" normalisation code from Python | Matthias Dieter Wallnöfer | 2012-04-18 | 1 | -0/+14 |
| | | | | | | | This allows the dbchecker to fix ordering/inconsistency problems with the mentioned attribute. Signed-off-by: Andrew Tridgell <tridge@samba.org> | ||||
* | s4:dsdb/pydsdb.c - fix indentation | Matthias Dieter Wallnöfer | 2012-04-11 | 1 | -1/+1 |
| | |||||
* | Intersite KCC flags for python | Dave Craft | 2012-01-14 | 1 | -0/+5 |
| | | | | | | | Add NTDSSITELINK options to dsdb class for use in python samba_kcc Signed-off-by: Andrew Tridgell <tridge@samba.org> | ||||
* | s4:pydsdb: remove unused variable from py_dsdb_am_pdc() | Stefan Metzmacher | 2011-12-13 | 1 | -1/+0 |
| | | | | metze | ||||
* | pydsdb: provide a am_pdc hook like am_rodc to python scripts | Andrew Bartlett | 2011-12-07 | 1 | -0/+22 |
| | |||||
* | s4:dsdb/schema: pass and remember the schema_dn in dsdb_set_schema_from_ldif() | Stefan Metzmacher | 2011-11-15 | 1 | -1/+1 |
| | | | | metze | ||||
* | s4:dsdb/pydsdb: pass down schema_dn to _dsdb_set_schema_from_ldif() | Stefan Metzmacher | 2011-11-15 | 1 | -2/+2 |
| | | | | metze | ||||
* | python dsdb flag addtions (NTDSSETTINGS, NTDSCONN) | Dave Craft | 2011-11-07 | 1 | -0/+27 |
| | | | | | | | | | | | Add missing flags present in C code base to python code base dsdb/pydsdb.c INSTANCE_TYPE... DS_NTDSSETTINGS_OPT... NTDSCONN_OPT... These are consumed by the python KCC scripts Signed-off-by: Andrew Tridgell <tridge@samba.org> | ||||
* | s4-dsdb: added DSDB_CONTROL_DBCHECK | Andrew Tridgell | 2011-10-06 | 1 | -0/+1 |
| | | | | | | this will be used for overrides by the dbcheck validator Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | ||||
* | pyldb: Consistently use pyldb_ prefix. | Jelmer Vernooij | 2011-08-07 | 1 | -11/+10 |
| | |||||
* | pydsdb: added get_backlink_from_lDAPDisplayName() | Andrew Tridgell | 2011-07-13 | 1 | -0/+45 |
| | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> | ||||
* | dsdb: added get_lDAPDisplayName_by_attid | Andrew Tridgell | 2011-07-11 | 1 | -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 attribute | Matthieu Patou | 2011-07-11 | 1 | -0/+68 |
| | | | | Signed-off-by: Andrew Tridgell <tridge@samba.org> | ||||
* | pydsdb: added get_syntax_oid_from_lDAPDisplayName() | Andrew Tridgell | 2011-06-22 | 1 | -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() call | Andrew Tridgell | 2011-06-17 | 1 | -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 Vernooij | 2011-01-03 | 1 | -0/+2 |
| | |||||
* | s4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid() | Kamen Mazdrashki | 2010-12-20 | 1 | -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öfer | 2010-12-12 | 1 | -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 behaviour | Matthias Dieter Wallnöfer | 2010-12-12 | 1 | -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öfer | 2010-12-12 | 1 | -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 handling | Matthias Dieter Wallnöfer | 2010-12-12 | 1 | -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 flags | Andrew Tridgell | 2010-11-29 | 1 | -0/+2 |
| | |||||
* | s4-pydsdb: added GPO policy flags | Andrew Tridgell | 2010-11-29 | 1 | -0/+7 |
| | |||||
* | s4-pydsdb: use cpp macro to simplify flags definitions | Andrew Tridgell | 2010-11-28 | 1 | -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 Mazdrashki | 2010-11-10 | 1 | -1/+1 |
| | | | | done :) | ||||
* | s4-pydsdb: py_dsdb_load_partition_usn() - simplify error handling in | Kamen Mazdrashki | 2010-11-10 | 1 | -2/+4 |
| | | | | and print on which partition error has occured | ||||
* | s4-pydsdb-py_samdb_ntds_objectGUID(): Avoid potential memory leak | Kamen Mazdrashki | 2010-11-10 | 1 | -7/+6 |
| | | | | in case py_ldb is not a valid LDB | ||||
* | s4-pydsdb-py_dsdb_get_oid_from_attid(): Avoid potential memory leak | Kamen Mazdrashki | 2010-11-10 | 1 | -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 Mazdrashki | 2010-11-10 | 1 | -0/+1 |
| | |||||
* | s4:pydsdb.c - use "Py_ssize_t" for Python list counters | Matthias Dieter Wallnöfer | 2010-11-08 | 1 | -1/+1 |
| | | | | Seems to be the most appropriate type | ||||
* | s4:pydsdb.c - introduce Python 2.4 compatibility defines | Matthias Dieter Wallnöfer | 2010-11-08 | 1 | -0/+11 |
| | |||||
* | s4-pydsdb: added DsReplicaAttribute() | Andrew Tridgell | 2010-11-05 | 1 | -0/+74 |
| | | | | this allows us to form a DsReplicaAttribute structure from python | ||||
* | s4-pydsdb: added am_rodc() method on samdb | Andrew Tridgell | 2010-09-19 | 1 | -0/+27 |
| | |||||
* | s4-pydsdb: expose samdb_partitions_dn() as get_partitions_dn() in python | Andrew Tridgell | 2010-09-09 | 1 | -0/+30 |
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | ||||
* | s4-dsdb: make more of the UF_* flags available on pydsdb | Andrew Tridgell | 2010-08-25 | 1 | -0/+28 |
| | | | | this really should be moved to IDL | ||||
* | s4-dsdb: add more DS flags to the dsdb module | Andrew Tridgell | 2010-08-25 | 1 | -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 samdb | Andrew Tridgell | 2010-08-25 | 1 | -0/+46 |
| | | | | | | | This can be used to form the partial_attribute_set list for GetNCChanges Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> |