mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r26483: Merge ldb module dependency fixes, fix auth python module.
(This used to be commit 85eeecf997
)
This commit is contained in:
parent
20a6fcf726
commit
71e2cafe96
@ -27,12 +27,14 @@
|
||||
#include "includes.h"
|
||||
#include "auth/session.h"
|
||||
#include "auth/system_session_proto.h"
|
||||
#include "param/param.h"
|
||||
%}
|
||||
|
||||
%include "carrays.i"
|
||||
%include "stdint.i"
|
||||
%include "typemaps.i"
|
||||
%import "carrays.i"
|
||||
%import "stdint.i"
|
||||
%import "typemaps.i"
|
||||
%import "../lib/talloc/talloc.i"
|
||||
%import "../param/param.i"
|
||||
|
||||
%typemap(default) struct auth_session_info * {
|
||||
$1 = system_session_anon(NULL, global_loadparm);
|
||||
|
@ -57,6 +57,7 @@ def _swig_setattr_nondynamic_method(set):
|
||||
return set_attr
|
||||
|
||||
|
||||
import param
|
||||
system_session = _auth.system_session
|
||||
system_session_anon = _auth.system_session_anon
|
||||
|
||||
|
@ -2461,15 +2461,18 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
||||
#define SWIGTYPE_p_char swig_types[2]
|
||||
#define SWIGTYPE_p_int swig_types[3]
|
||||
#define SWIGTYPE_p_loadparm_context swig_types[4]
|
||||
#define SWIGTYPE_p_long_long swig_types[5]
|
||||
#define SWIGTYPE_p_short swig_types[6]
|
||||
#define SWIGTYPE_p_signed_char swig_types[7]
|
||||
#define SWIGTYPE_p_unsigned_char swig_types[8]
|
||||
#define SWIGTYPE_p_unsigned_int swig_types[9]
|
||||
#define SWIGTYPE_p_unsigned_long_long swig_types[10]
|
||||
#define SWIGTYPE_p_unsigned_short swig_types[11]
|
||||
static swig_type_info *swig_types[13];
|
||||
static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_loadparm_service swig_types[5]
|
||||
#define SWIGTYPE_p_long_long swig_types[6]
|
||||
#define SWIGTYPE_p_param_context swig_types[7]
|
||||
#define SWIGTYPE_p_param_section swig_types[8]
|
||||
#define SWIGTYPE_p_short swig_types[9]
|
||||
#define SWIGTYPE_p_signed_char swig_types[10]
|
||||
#define SWIGTYPE_p_unsigned_char swig_types[11]
|
||||
#define SWIGTYPE_p_unsigned_int swig_types[12]
|
||||
#define SWIGTYPE_p_unsigned_long_long swig_types[13]
|
||||
#define SWIGTYPE_p_unsigned_short swig_types[14]
|
||||
static swig_type_info *swig_types[16];
|
||||
static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@ -2517,9 +2520,7 @@ static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
|
||||
#include "includes.h"
|
||||
#include "auth/session.h"
|
||||
#include "auth/system_session_proto.h"
|
||||
|
||||
|
||||
#include <stdint.h> // Use the C99 official header
|
||||
#include "param/param.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -2536,15 +2537,20 @@ SWIGINTERN PyObject *_wrap_system_session(PyObject *SWIGUNUSEDPARM(self), PyObje
|
||||
(char *) "lp_ctx", NULL
|
||||
};
|
||||
|
||||
{
|
||||
arg2 = loadparm_init(NULL);
|
||||
}
|
||||
{
|
||||
arg1 = NULL;
|
||||
}
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:system_session",kwnames,&obj0)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:system_session",kwnames,&obj0)) SWIG_fail;
|
||||
if (obj0) {
|
||||
res2 = SWIG_ConvertPtr(obj0, &argp2,SWIGTYPE_p_loadparm_context, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "system_session" "', argument " "2"" of type '" "struct loadparm_context *""'");
|
||||
}
|
||||
arg2 = (struct loadparm_context *)(argp2);
|
||||
}
|
||||
result = (struct auth_session_info *)system_session(arg1,arg2);
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_auth_session_info, 0 | 0 );
|
||||
return resultobj;
|
||||
@ -2565,15 +2571,20 @@ SWIGINTERN PyObject *_wrap_system_session_anon(PyObject *SWIGUNUSEDPARM(self), P
|
||||
(char *) "lp_ctx", NULL
|
||||
};
|
||||
|
||||
{
|
||||
arg2 = loadparm_init(NULL);
|
||||
}
|
||||
{
|
||||
arg1 = NULL;
|
||||
}
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:system_session_anon",kwnames,&obj0)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:system_session_anon",kwnames,&obj0)) SWIG_fail;
|
||||
if (obj0) {
|
||||
res2 = SWIG_ConvertPtr(obj0, &argp2,SWIGTYPE_p_loadparm_context, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "system_session_anon" "', argument " "2"" of type '" "struct loadparm_context *""'");
|
||||
}
|
||||
arg2 = (struct loadparm_context *)(argp2);
|
||||
}
|
||||
result = (struct auth_session_info *)system_session_anon(arg1,arg2);
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_auth_session_info, 0 | 0 );
|
||||
return resultobj;
|
||||
@ -2595,8 +2606,11 @@ static swig_type_info _swigt__p_TALLOC_CTX = {"_p_TALLOC_CTX", "TALLOC_CTX *", 0
|
||||
static swig_type_info _swigt__p_auth_session_info = {"_p_auth_session_info", "struct auth_session_info *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_loadparm_context = {"_p_loadparm_context", "struct loadparm_context *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_loadparm_context = {"_p_loadparm_context", "struct loadparm_context *|loadparm_context *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_loadparm_service = {"_p_loadparm_service", "struct loadparm_service *|loadparm_service *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_param_context = {"_p_param_context", "struct param_context *|param *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_param_section = {"_p_param_section", "struct param_section *|param_section *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
|
||||
@ -2610,7 +2624,10 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_char,
|
||||
&_swigt__p_int,
|
||||
&_swigt__p_loadparm_context,
|
||||
&_swigt__p_loadparm_service,
|
||||
&_swigt__p_long_long,
|
||||
&_swigt__p_param_context,
|
||||
&_swigt__p_param_section,
|
||||
&_swigt__p_short,
|
||||
&_swigt__p_signed_char,
|
||||
&_swigt__p_unsigned_char,
|
||||
@ -2624,7 +2641,10 @@ static swig_cast_info _swigc__p_auth_session_info[] = { {&_swigt__p_auth_sessio
|
||||
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_loadparm_context[] = { {&_swigt__p_loadparm_context, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_loadparm_service[] = { {&_swigt__p_loadparm_service, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_param_context[] = { {&_swigt__p_param_context, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_param_section[] = { {&_swigt__p_param_section, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@ -2638,7 +2658,10 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_char,
|
||||
_swigc__p_int,
|
||||
_swigc__p_loadparm_context,
|
||||
_swigc__p_loadparm_service,
|
||||
_swigc__p_long_long,
|
||||
_swigc__p_param_context,
|
||||
_swigc__p_param_section,
|
||||
_swigc__p_short,
|
||||
_swigc__p_signed_char,
|
||||
_swigc__p_unsigned_char,
|
||||
|
@ -11,7 +11,7 @@ PUBLIC_PROTO_HEADER = session_proto.h
|
||||
[SUBSYSTEM::auth_system_session]
|
||||
OBJ_FILES = system_session.o
|
||||
PUBLIC_PROTO_HEADER = system_session_proto.h
|
||||
PRIVATE_DEPENDENCIES = auth_session LIBSAMBA-UTIL LIBSECURITY
|
||||
PRIVATE_DEPENDENCIES = auth_session LIBSAMBA-UTIL LIBSECURITY CREDENTIALS
|
||||
|
||||
[SUBSYSTEM::auth_sam]
|
||||
PRIVATE_PROTO_HEADER = auth_sam.h
|
||||
|
@ -2,27 +2,16 @@
|
||||
# Start SUBSYSTEM CREDENTIALS
|
||||
[SUBSYSTEM::CREDENTIALS]
|
||||
PUBLIC_PROTO_HEADER = credentials_proto.h
|
||||
PUBLIC_HEADERS = credentials.h
|
||||
PUBLIC_HEADERS = credentials.h credentials_krb5.h
|
||||
OBJ_FILES = credentials.o \
|
||||
credentials_files.o \
|
||||
credentials_ntlm.o
|
||||
PUBLIC_DEPENDENCIES = \
|
||||
LIBCLI_AUTH SECRETS LIBCRYPTO KERBEROS UTIL_LDB
|
||||
PRIVATE_DEPENDENCIES = CREDENTIALS_KRB5
|
||||
# End SUBSYSTEM CREDENTIALS
|
||||
#################################
|
||||
|
||||
#################################
|
||||
# Start SUBSYSTEM CREDENTIALS
|
||||
[SUBSYSTEM::CREDENTIALS_KRB5]
|
||||
PUBLIC_PROTO_HEADER = credentials_krb5_proto.h
|
||||
PUBLIC_HEADERS = credentials_krb5.h
|
||||
OBJ_FILES = credentials_krb5.o \
|
||||
credentials_ntlm.o \
|
||||
credentials_krb5.o \
|
||||
../kerberos/kerberos_util.o
|
||||
PUBLIC_DEPENDENCIES = \
|
||||
HEIMDAL_GSSAPI KERBEROS
|
||||
# End SUBSYSTEM CREDENTIALS
|
||||
#################################
|
||||
LIBCLI_AUTH SECRETS LIBCRYPTO KERBEROS UTIL_LDB
|
||||
PRIVATE_DEPENDENCIES = \
|
||||
HEIMDAL_GSSAPI KERBEROS SECRETS
|
||||
|
||||
[PYTHON::swig_credentials]
|
||||
PUBLIC_DEPENDENCIES = CREDENTIALS LIBPYTHON
|
||||
|
@ -18,7 +18,7 @@ PUBLIC_DEPENDENCIES = \
|
||||
SUBSYSTEM = gensec
|
||||
INIT_FUNCTION = gensec_krb5_init
|
||||
OBJ_FILES = gensec_krb5.o
|
||||
PRIVATE_DEPENDENCIES = CREDENTIALS_KRB5 KERBEROS auth auth_sam
|
||||
PRIVATE_DEPENDENCIES = CREDENTIALS KERBEROS auth auth_sam
|
||||
# End MODULE gensec_krb5
|
||||
################################################
|
||||
|
||||
@ -28,7 +28,7 @@ PRIVATE_DEPENDENCIES = CREDENTIALS_KRB5 KERBEROS auth auth_sam
|
||||
SUBSYSTEM = gensec
|
||||
INIT_FUNCTION = gensec_gssapi_init
|
||||
OBJ_FILES = gensec_gssapi.o
|
||||
PRIVATE_DEPENDENCIES = HEIMDAL_GSSAPI CREDENTIALS_KRB5 KERBEROS
|
||||
PRIVATE_DEPENDENCIES = HEIMDAL_GSSAPI CREDENTIALS KERBEROS
|
||||
# End MODULE gensec_gssapi
|
||||
################################################
|
||||
|
||||
|
@ -108,6 +108,7 @@ sub check_module($$$)
|
||||
my $sane_subsystem = lc($mod->{SUBSYSTEM});
|
||||
$sane_subsystem =~ s/^lib//;
|
||||
$mod->{INSTALLDIR} = "MODULESDIR/$sane_subsystem";
|
||||
push (@{$mod->{PRIVATE_DEPENDENCIES}}, $mod->{SUBSYSTEM});
|
||||
}
|
||||
if (grep(/INTEGRATED/, @{$mod->{OUTPUT_TYPE}})) {
|
||||
push (@{$INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTIONS}}, $mod->{INIT_FUNCTION}) if defined($mod->{INIT_FUNCTION});
|
||||
|
1895
source4/dsdb/common/util.c
Normal file
1895
source4/dsdb/common/util.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -9,20 +9,29 @@ PUBLIC_PROTO_HEADER = samdb/samdb_proto.h
|
||||
PUBLIC_HEADERS = samdb/samdb.h
|
||||
PUBLIC_DEPENDENCIES = HEIMDAL_KRB5
|
||||
PRIVATE_DEPENDENCIES = LIBNDR NDR_MISC NDR_DRSUAPI NDR_DRSBLOBS NSS_WRAPPER \
|
||||
auth_system_session LDAP_ENCODE
|
||||
auth_system_session LDAP_ENCODE LIBCLI_AUTH LIBNDR \
|
||||
SAMDB_SCHEMA LDB_WRAP SAMDB_COMMON
|
||||
OBJ_FILES = \
|
||||
samdb/samdb.o \
|
||||
samdb/samdb_privilege.o \
|
||||
samdb/cracknames.o \
|
||||
repl/replicated_objects.o
|
||||
|
||||
[SUBSYSTEM::SAMDB_COMMON]
|
||||
PUBLIC_PROTO_HEADER = common/proto.h
|
||||
OBJ_FILES = \
|
||||
common/sidmap.o \
|
||||
common/flag_mapping.o \
|
||||
common/util.o
|
||||
|
||||
[SUBSYSTEM::SAMDB_SCHEMA]
|
||||
PUBLIC_PROTO_HEADER = schema/proto.h
|
||||
PUBLIC_HEADERS = schema/schema.h
|
||||
PRIVATE_DEPENDENCIES = SAMDB_COMMON
|
||||
OBJ_FILES = \
|
||||
schema/schema_init.o \
|
||||
schema/schema_syntax.o \
|
||||
schema/schema_constructed.o \
|
||||
repl/replicated_objects.o
|
||||
#
|
||||
# End SUBSYSTEM SAMDB
|
||||
################################################
|
||||
|
||||
#######################
|
||||
# Start SUBSYSTEM DREPL_SRV
|
||||
|
@ -11,11 +11,12 @@ OBJ_FILES = \
|
||||
################################################
|
||||
|
||||
################################################
|
||||
# Start MODULE ldb_repl_mata_data
|
||||
# Start MODULE ldb_repl_meta_data
|
||||
[MODULE::ldb_repl_meta_data]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC LIBNDR NDR_MISC NDR_DRSUAPI NDR_DRSBLOBS
|
||||
PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC LIBNDR NDR_MISC NDR_DRSUAPI \
|
||||
NDR_DRSBLOBS LIBNDR
|
||||
INIT_FUNCTION = repl_meta_data_module_init
|
||||
OBJ_FILES = \
|
||||
repl_meta_data.o
|
||||
@ -75,7 +76,7 @@ OBJ_FILES = \
|
||||
[MODULE::ldb_samldb]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LDAP_ENCODE
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LDAP_ENCODE NDR_MISC SAMDB
|
||||
INIT_FUNCTION = samldb_module_init
|
||||
OBJ_FILES = \
|
||||
samldb.o
|
||||
@ -89,7 +90,8 @@ OBJ_FILES = \
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
INIT_FUNCTION = ldb_samba3sam_module_init
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC ldb_map SMBPASSWD NSS_WRAPPER
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC ldb_map SMBPASSWD NSS_WRAPPER LIBSECURITY \
|
||||
NDR_SECURITY
|
||||
OBJ_FILES = \
|
||||
samba3sam.o
|
||||
#
|
||||
@ -102,7 +104,7 @@ OBJ_FILES = \
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
INIT_FUNCTION = ldb_simple_ldap_map_module_init
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC ldb_map
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC ldb_map LIBNDR NDR_MISC
|
||||
ENABLE = YES
|
||||
ALIASES = entryuuid nsuniqueid
|
||||
OBJ_FILES = \
|
||||
@ -127,7 +129,7 @@ OBJ_FILES = \
|
||||
# Start MODULE ldb_rootdse
|
||||
[MODULE::ldb_rootdse]
|
||||
SUBSYSTEM = LIBLDB
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC SAMDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
INIT_FUNCTION = rootdse_module_init
|
||||
OBJ_FILES = \
|
||||
@ -143,7 +145,8 @@ SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
INIT_FUNCTION = password_hash_module_init
|
||||
OBJ_FILES = password_hash.o
|
||||
PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5 LDAP_ENCODE
|
||||
PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5 LDAP_ENCODE \
|
||||
LIBCLI_AUTH NDR_DRSBLOBS KERBEROS SAMDB
|
||||
#
|
||||
# End MODULE ldb_password_hash
|
||||
################################################
|
||||
@ -151,7 +154,7 @@ PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5 LDAP_ENCODE
|
||||
################################################
|
||||
# Start MODULE ldb_local_password
|
||||
[MODULE::ldb_local_password]
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBNDR SAMDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
SUBSYSTEM = LIBLDB
|
||||
INIT_FUNCTION = local_password_module_init
|
||||
@ -163,7 +166,7 @@ OBJ_FILES = local_password.o
|
||||
################################################
|
||||
# Start MODULE ldb_kludge_acl
|
||||
[MODULE::ldb_kludge_acl]
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBSECURITY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBSECURITY SAMDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
SUBSYSTEM = LIBLDB
|
||||
INIT_FUNCTION = ldb_kludge_acl_init
|
||||
@ -178,7 +181,7 @@ OBJ_FILES = \
|
||||
[MODULE::ldb_extended_dn]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBNDR LIBSECURITY SAMDB
|
||||
INIT_FUNCTION = ldb_extended_dn_init
|
||||
OBJ_FILES = \
|
||||
extended_dn.o
|
||||
@ -204,7 +207,7 @@ OBJ_FILES = \
|
||||
[MODULE::ldb_partition]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC SAMDB
|
||||
INIT_FUNCTION = ldb_partition_init
|
||||
OBJ_FILES = \
|
||||
partition.o
|
||||
@ -217,7 +220,7 @@ OBJ_FILES = \
|
||||
[MODULE::ldb_schema]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBLDB
|
||||
INIT_FUNCTION = ldb_schema_init
|
||||
OBJ_FILES = \
|
||||
schema.o schema_syntax.o
|
||||
@ -230,7 +233,7 @@ OBJ_FILES = \
|
||||
[MODULE::ldb_update_keytab]
|
||||
SUBSYSTEM = LIBLDB
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC CREDENTIALS_KRB5
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC CREDENTIALS
|
||||
#Also depends on credentials, but that would loop
|
||||
INIT_FUNCTION = ldb_update_kt_init
|
||||
OBJ_FILES = \
|
||||
@ -245,7 +248,7 @@ OBJ_FILES = \
|
||||
INIT_FUNCTION = ldb_objectclass_init
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
CFLAGS = -Ilib/ldb/include
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBSECURITY NDR_SECURITY SAMDB
|
||||
SUBSYSTEM = LIBLDB
|
||||
OBJ_FILES = \
|
||||
objectclass.o
|
||||
@ -310,7 +313,7 @@ OBJ_FILES = \
|
||||
INIT_FUNCTION = ldb_anr_init
|
||||
CFLAGS = -Ilib/ldb/include
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBSAMBA-UTIL SAMDB
|
||||
SUBSYSTEM = LIBLDB
|
||||
OBJ_FILES = \
|
||||
anr.o
|
||||
|
@ -117,8 +117,8 @@ static struct dsdb_control_current_partition *find_partition(struct partition_pr
|
||||
return NULL;
|
||||
};
|
||||
|
||||
/*
|
||||
fire the caller's callback for every entry, but only send 'done' once.
|
||||
/**
|
||||
* fire the caller's callback for every entry, but only send 'done' once.
|
||||
*/
|
||||
static int partition_search_callback(struct ldb_context *ldb, void *context, struct ldb_reply *ares)
|
||||
{
|
||||
@ -139,8 +139,8 @@ static int partition_search_callback(struct ldb_context *ldb, void *context, str
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
only fire the 'last' callback, and only for START-TLS for now
|
||||
/**
|
||||
* only fire the 'last' callback, and only for START-TLS for now
|
||||
*/
|
||||
static int partition_other_callback(struct ldb_context *ldb, void *context, struct ldb_reply *ares)
|
||||
{
|
||||
@ -248,7 +248,9 @@ static int partition_send_request(struct partition_context *ac, struct ldb_contr
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
||||
/* Send a request down to all the partitions */
|
||||
/**
|
||||
* Send a request down to all the partitions
|
||||
*/
|
||||
static int partition_send_all(struct ldb_module *module,
|
||||
struct partition_context *ac,
|
||||
struct ldb_control *remove_control,
|
||||
@ -270,8 +272,10 @@ static int partition_send_all(struct ldb_module *module,
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
||||
/* Figure out which backend a request needs to be aimed at. Some
|
||||
* requests must be replicated to all backends */
|
||||
/**
|
||||
* Figure out which backend a request needs to be aimed at. Some
|
||||
* requests must be replicated to all backends
|
||||
*/
|
||||
static int partition_replicate(struct ldb_module *module, struct ldb_request *req, struct ldb_dn *dn)
|
||||
{
|
||||
unsigned i;
|
||||
|
@ -329,7 +329,7 @@ done:
|
||||
|
||||
static int schema_init_classes(struct ldb_module *module, struct schema_private_data *data)
|
||||
{
|
||||
static const char *schema_attrs[] = { "governsID",
|
||||
const char *schema_attrs[] = { "governsID",
|
||||
"lDAPDisplayName",
|
||||
"objectClassCategory",
|
||||
"defaultObjectCategory",
|
||||
@ -542,7 +542,7 @@ static int schema_add_check_parent(struct ldb_context *ldb, void *context, struc
|
||||
|
||||
static int schema_add_build_parent_req(struct schema_context *sctx)
|
||||
{
|
||||
static const char * const parent_attrs[] = { "objectClass", NULL };
|
||||
const char * const parent_attrs[] = { "objectClass", NULL };
|
||||
int ret;
|
||||
|
||||
sctx->parent_req = talloc_zero(sctx, struct ldb_request);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -35,6 +35,7 @@ struct loadparm_context;
|
||||
#include "librpc/gen_ndr/drsblobs.h"
|
||||
#include "dsdb/schema/schema.h"
|
||||
#include "dsdb/samdb/samdb_proto.h"
|
||||
#include "dsdb/common/proto.h"
|
||||
|
||||
#define DSDB_CONTROL_CURRENT_PARTITION_OID "1.3.6.1.4.1.7165.4.3.2"
|
||||
struct dsdb_control_current_partition {
|
||||
|
@ -151,4 +151,6 @@ struct dsdb_schema {
|
||||
struct dsdb_class *classes;
|
||||
};
|
||||
|
||||
#include "dsdb/schema/proto.h"
|
||||
|
||||
#endif /* _DSDB_SCHEMA_H */
|
||||
|
@ -11,5 +11,5 @@ PUBLIC_DEPENDENCIES = LIBPOPT
|
||||
[SUBSYSTEM::POPT_CREDENTIALS]
|
||||
PRIVATE_PROTO_HEADER = popt_credentials.h
|
||||
OBJ_FILES = popt_credentials.o
|
||||
PUBLIC_DEPENDENCIES = CREDENTIALS_KRB5 LIBCMDLINE_CREDENTIALS LIBPOPT
|
||||
PUBLIC_DEPENDENCIES = CREDENTIALS LIBCMDLINE_CREDENTIALS LIBPOPT
|
||||
PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL
|
||||
|
@ -3,7 +3,7 @@
|
||||
[SUBSYSTEM::LDBSAMBA]
|
||||
PUBLIC_DEPENDENCIES = LIBLDB
|
||||
PRIVATE_PROTO_HEADER = ldif_handlers.h
|
||||
PRIVATE_DEPENDENCIES = LIBSECURITY SAMDB LIBNDR NDR_MISC
|
||||
PRIVATE_DEPENDENCIES = LIBSECURITY SAMDB_SCHEMA LIBNDR NDR_MISC
|
||||
OBJ_FILES = \
|
||||
ldif_handlers.o
|
||||
# End SUBSYSTEM LDBSAMBA
|
||||
|
@ -4,7 +4,7 @@
|
||||
SUBSYSTEM = LIBLDB
|
||||
CFLAGS = -Ilib/ldb/include
|
||||
OUTPUT_TYPE = SHARED_LIBRARY
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBCLI_LDAP
|
||||
PRIVATE_DEPENDENCIES = LIBTALLOC LIBCLI_LDAP CREDENTIALS
|
||||
INIT_FUNCTION = ldb_ildap_init
|
||||
ALIASES = ldapi ldaps ldap
|
||||
OBJ_FILES = \
|
||||
|
@ -10,6 +10,7 @@ PUBLIC_DEPENDENCIES = \
|
||||
NDR_IRPC \
|
||||
UNIX_PRIVS \
|
||||
UTIL_TDB \
|
||||
CLUSTER
|
||||
CLUSTER \
|
||||
LIBNDR
|
||||
# End SUBSYSTEM MESSAGING
|
||||
################################################
|
||||
|
@ -92,7 +92,8 @@ SO_VERSION = 0
|
||||
DESCRIPTION = WINS Replication client library
|
||||
OBJ_FILES = \
|
||||
wrepl/winsrepl.o
|
||||
PUBLIC_DEPENDENCIES = NDR_WINSREPL samba-socket LIBCLI_RESOLVE LIBEVENTS LIBPACKET
|
||||
PUBLIC_DEPENDENCIES = NDR_WINSREPL samba-socket LIBCLI_RESOLVE LIBEVENTS \
|
||||
LIBPACKET LIBNDR
|
||||
|
||||
[SUBSYSTEM::LIBCLI_RESOLVE]
|
||||
PRIVATE_PROTO_HEADER = resolve/proto.h
|
||||
@ -135,7 +136,7 @@ PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
|
||||
|
||||
[SUBSYSTEM::LIBCLI_RAW]
|
||||
PRIVATE_PROTO_HEADER = raw/raw_proto.h
|
||||
PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE
|
||||
PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE CREDENTIALS gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
|
||||
LDFLAGS = $(SUBSYSTEM_LIBCLI_SMB_COMPOSITE_OUTPUT)
|
||||
PUBLIC_DEPENDENCIES = samba-socket LIBPACKET gensec LIBCRYPTO
|
||||
OBJ_FILES = raw/rawfile.o \
|
||||
|
@ -9,7 +9,7 @@ OBJ_FILES = ldap.o \
|
||||
ldap_controls.o
|
||||
PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBEVENTS LIBPACKET
|
||||
PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE samba-socket NDR_SAMR LIBTLS ASN1_UTIL \
|
||||
LDAP_ENCODE LIBNDR LP_RESOLVE
|
||||
LDAP_ENCODE LIBNDR LP_RESOLVE gensec
|
||||
|
||||
|
||||
[SUBSYSTEM::LDAP_ENCODE]
|
||||
|
@ -30,5 +30,4 @@ OBJ_FILES = \
|
||||
userman.o \
|
||||
groupman.o \
|
||||
prereq_domain.o
|
||||
PUBLIC_DEPENDENCIES = CREDENTIALS dcerpc dcerpc_samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI LIBCLI_COMPOSITE LIBCLI_RESOLVE LIBCLI_FINDDCS LIBSAMBA3 LIBCLI_CLDAP LIBCLI_FINDDCS gensec_schannel
|
||||
PRIVATE_DEPENDENCIES = CREDENTIALS_KRB5
|
||||
PUBLIC_DEPENDENCIES = CREDENTIALS dcerpc dcerpc_samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI LIBCLI_COMPOSITE LIBCLI_RESOLVE LIBCLI_FINDDCS LIBSAMBA3 LIBCLI_CLDAP LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH LIBNDR
|
||||
|
@ -21,7 +21,7 @@ INIT_FUNCTION = wins_ldb_module_init
|
||||
OBJ_FILES = \
|
||||
wins/wins_ldb.o
|
||||
PRIVATE_DEPENDENCIES = \
|
||||
LIBNETIF
|
||||
LIBNETIF LIBSAMBA-CONFIG LIBSAMBA-UTIL
|
||||
# End MODULE ldb_wins_ldb
|
||||
#######################
|
||||
|
||||
|
@ -49,4 +49,3 @@ RPC-FRSAPI # Not provided by Samba 4
|
||||
^samba4.NET-API-BECOME-DC.*$ # Fails
|
||||
WINBIND # FIXME: This should not be skipped
|
||||
NSS-TEST # Fails
|
||||
samba4.auth.python # Missing symbols
|
||||
|
Loading…
Reference in New Issue
Block a user