1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib/ldb-samba
Andreas Schneider 7a1128cb9a lib:ldb-samba: Improve calculate_popt_array_length()
Note that memcmp() doesn't work well with padding bytes. So avoid it!

(gdb) ptype/o struct poptOption
/* offset    |  size */  type = struct poptOption {
/*    0      |     8 */    const char *longName;
/*    8      |     1 */    char shortName;
/* XXX  3-byte hole  */
/*   12      |     4 */    unsigned int argInfo;
/*   16      |     8 */    void *arg;
/*   24      |     4 */    int val;
/* XXX  4-byte hole  */
/*   32      |     8 */    const char *descrip;
/*   40      |     8 */    const char *argDescrip;

                           /* total size (bytes):   48 */

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit c2c7c1f50a)
2021-11-02 20:36:16 +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 lib:ldb-samba: Improve calculate_popt_array_length() 2021-11-02 20:36:16 +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.