1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb-samba
Douglas Bagnall e075f52a75 pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness
In the Python/C API, conversion functions which check the types of their arguments
have names like:

double PyFloat_AsDouble(PyObject *pyfloat);

while conversion macros that don't check have names like:

PyFloat_AS_DOUBLE(pyfloat)

The pyldb_Ldb_AsLdbContext() macro looks like one of the checking functions
but it actually isn't. This has fooled us more than once. Here we fork
the macro into two -- one which performs checks and keeps the camel
case, and one with a shouty name that keeps the check-free behaviour.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-07-10 04:32:13 +00:00
..
tests ldb: tests for <= and >= integer indexing with duplicates 2019-04-08 02:07:23 +00:00
ldb_ildap.c samba-o3: fix -Werror=strict-overflow error in lib/ldb-samba/ldb_ildap module 2019-03-08 00:42:18 +00:00
ldb_matching_rules.c lib: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
ldb_matching_rules.h dns: custom match rule for DNS records to be tombstoned 2018-07-12 04:31:54 +02:00
ldb_wrap.c dsdb: add defines for sessionInfo and networkSessionInfo 2018-06-09 15:02:11 +02:00
ldb_wrap.h
ldif_handlers.c lib: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
ldif_handlers.h dsdb: Introduce LDB_SYNTAX_SAMBA_OCTET_STRING 2016-03-09 10:32:16 +01:00
pyldb.c pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness 2019-07-10 04:32:13 +00:00
README
samba_extensions.c dsdb: add defines for sessionInfo and networkSessionInfo 2018-06-09 15:02:11 +02:00
wscript_build build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00

This directory contains Samba specific extensions to ldb. It also
serves as example code on how to extend ldb for your own application.

The main extension Samba uses is to provide ldif encode/decode
routines for specific attributes, so users can get nice pretty
printing of attributes in ldbedit, while the attributes are stored in
the standard NDR format in the database.