mirror of
https://github.com/samba-team/samba.git
synced 2025-12-06 16:23:49 +03:00
r13166: Patches form Brad Hards
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
615b82f7c7
commit
335050b30d
@@ -15,7 +15,7 @@ AC_DEFUN([SMB_ENABLE], [echo -n ""])
|
|||||||
AC_INIT(include/ldb.h)
|
AC_INIT(include/ldb.h)
|
||||||
WITH_GCOV=0
|
WITH_GCOV=0
|
||||||
AC_ARG_ENABLE(gcov,
|
AC_ARG_ENABLE(gcov,
|
||||||
[ --enable-gcov Enable GCOV code coverage tests],
|
AS_HELP_STRING([--enable-gcov],[enable GCOV code coverage tests]),
|
||||||
[ WITH_GCOV=1])
|
[ WITH_GCOV=1])
|
||||||
AC_SUBST(WITH_GCOV)
|
AC_SUBST(WITH_GCOV)
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|||||||
@@ -276,7 +276,37 @@ struct ldb_parse_tree {
|
|||||||
|
|
||||||
struct ldb_parse_tree *ldb_parse_tree(void *mem_ctx, const char *s);
|
struct ldb_parse_tree *ldb_parse_tree(void *mem_ctx, const char *s);
|
||||||
char *ldb_filter_from_tree(void *mem_ctx, struct ldb_parse_tree *tree);
|
char *ldb_filter_from_tree(void *mem_ctx, struct ldb_parse_tree *tree);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Encode a binary blob
|
||||||
|
|
||||||
|
This function encodes a binary blob using the encoding rules in RFC
|
||||||
|
2254 (Section 4). This function also escapes any non-printable
|
||||||
|
characters.
|
||||||
|
|
||||||
|
\param ctx the memory context to allocate the return string in.
|
||||||
|
\param val the (potentially) binary data to be encoded
|
||||||
|
|
||||||
|
\return the encoded data as a null terminated string
|
||||||
|
|
||||||
|
\sa <a href="http://www.ietf.org/rfc/rfc2252.txt">RFC 2252</a>.
|
||||||
|
*/
|
||||||
char *ldb_binary_encode(void *ctx, struct ldb_val val);
|
char *ldb_binary_encode(void *ctx, struct ldb_val val);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Encode a string
|
||||||
|
|
||||||
|
This function encodes a string using the encoding rules in RFC 2254
|
||||||
|
(Section 4). This function also escapes any non-printable
|
||||||
|
characters.
|
||||||
|
|
||||||
|
\param mem_ctx the memory context to allocate the return string in.
|
||||||
|
\param string the string to be encoded
|
||||||
|
|
||||||
|
\return the encoded data as a null terminated string
|
||||||
|
|
||||||
|
\sa <a href="http://www.ietf.org/rfc/rfc2252.txt">RFC 2252</a>.
|
||||||
|
*/
|
||||||
char *ldb_binary_encode_string(void *mem_ctx, const char *string);
|
char *ldb_binary_encode_string(void *mem_ctx, const char *string);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -328,7 +358,7 @@ struct ldb_attrib_handler {
|
|||||||
|
|
||||||
This is the well-known LDAP attribute syntax for a Directory String.
|
This is the well-known LDAP attribute syntax for a Directory String.
|
||||||
|
|
||||||
See <a href="http://www.ietf.org/rfc/rfc2252.txt">RFC 2252</a>, Section 4.3.2
|
\sa <a href="http://www.ietf.org/rfc/rfc2252.txt">RFC 2252</a>, Section 4.3.2
|
||||||
*/
|
*/
|
||||||
#define LDB_SYNTAX_DIRECTORY_STRING "1.3.6.1.4.1.1466.115.121.1.15"
|
#define LDB_SYNTAX_DIRECTORY_STRING "1.3.6.1.4.1.1466.115.121.1.15"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ with_ldap_support=auto
|
|||||||
AC_MSG_CHECKING([for LDAP support])
|
AC_MSG_CHECKING([for LDAP support])
|
||||||
|
|
||||||
AC_ARG_WITH(ldap,
|
AC_ARG_WITH(ldap,
|
||||||
[ --with-ldap LDAP support (default yes)],
|
AS_HELP_STRING([--with-ldap],[LDAP backend support (default=yes)]),
|
||||||
[ case "$withval" in
|
[ case "$withval" in
|
||||||
yes|no)
|
yes|no)
|
||||||
with_ldap_support=$withval
|
with_ldap_support=$withval
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ with_sqlite3_support=no
|
|||||||
AC_MSG_CHECKING([for SQLITE3 support])
|
AC_MSG_CHECKING([for SQLITE3 support])
|
||||||
|
|
||||||
AC_ARG_WITH(sqlite3,
|
AC_ARG_WITH(sqlite3,
|
||||||
[ --with-sqlite3 SQLITE3 support (default=no)],
|
AS_HELP_STRING([--with-sqlite3],[SQLITE3 backend support (default=no)]),
|
||||||
[ case "$withval" in
|
[ case "$withval" in
|
||||||
yes|no|auto)
|
yes|no|auto)
|
||||||
with_sqlite3_support=$withval
|
with_sqlite3_support=$withval
|
||||||
|
|||||||
Reference in New Issue
Block a user