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
Alexander Bokovoy 234957a2e4 Fix build after removal of an extra safe_string.h
Move of strcasecmp redefine to lib/util/safe_string.h in
https://gitlab.com/samba-team/samba/-/merge_requests/1507 broke build on
Fedora 33 with GCC 10.2.1 for those compilation units that use
ldb_att_cmp().

The reason for that is that ldb_attr_cmp() defined as

   #define ldb_attr_cmp(a, b) strcasecmp(a, b)

because attribute names restricted to be ASCII by RFC2251 (LDAPv3 spec).

A solution is to add

   #undef strcasecmp

to all source code files which use ldb_attr_cmp().

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct  1 22:45:29 UTC 2020 on sn-devel-184
2020-10-01 22:45:29 +00:00
..
tests pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +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 Fix build after removal of an extra safe_string.h 2020-10-01 22:45:29 +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: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
ldif_handlers.h dsdb: Introduce LDB_SYNTAX_SAMBA_OCTET_STRING 2016-03-09 10:32:16 +01:00
pyldb.c Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
README
samba_extensions.c Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00: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.