extended provision-backend
Oliver Liebel
oliver at itc.li
Wed Aug 12 12:36:45 MDT 2009
Andrew Bartlett schrieb:
> On Tue, 2009-08-11 at 20:39 +0200, Oliver Liebel wrote:
>
>> Andrew Bartlett schrieb:
>>
>>> Anyway, if you can test these patches, I would appreciate it. If that
>>> passes, then I or mdw can push them.
>>>
>>> Andrew Bartlett
>>>
>>>
>> i have tested your patches.
>> "make test" seems to pass, until the started samba is queried.
>> the output i got is listed below.
>>
>> the error looks to me identical as the one
>> i have noticed last week:
>>
>> (see http://lists.samba.org/archive/samba-technical/2009-August/066051.html
>> and http://lists.samba.org/archive/samba-technical/2009-August/066055.html)
>>
>
> I'm sorry, I didn't notice the crashes in these before.
>
> Can you re-run the test with 'make gdbtest' instead of 'make test'?
>
> This will put smbd under GDB, and might catch the failure.
>
> Andrew Bartlett
>
hi andrew,
the output of "make gdbtest" is attached.
greetings,
oliver
-----------
ldapmaster:/install/samba4/source4 #
OPENLDAP_SLAPD=/usr/local/libexec/slapd TEST_LDAP=yes make gdbtest
Samba will be compiled with flags:
CPP = gcc -E
CPPFLAGS = -I./include -I. -I./lib -I./../lib/replace
-I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H
CC = gcc
CFLAGS = -g -DDEBUG_PASSWORD -DDEVELOPER -Wall -Wshadow
-Werror-implicit-function-declaration -Wstrict-prototypes
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wmissing-format-attribute -Wformat=2 -Wdeclaration-after-statement
-Wunused-macros -Wno-format-y2k -Wno-unused-parameter
PICFLAG = -fPIC
BNLD = gcc
BNLD_FLAGS = -Wl,--export-dynamic
STLD = /usr/bin/ar
STLD_FLAGS = -rcs
SHLD = gcc
SHLD_FLAGS = -shared -Wl,-Bsymbolic
MDLD = gcc
MDLD_FLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined
SHLIBEXT = so
srcdir = .
builddir = .
pwd = /install/samba4/source4
SAMBA_VALGRIND="xterm -n server -e ./../selftest/gdb_run
LD_LIBRARY_PATH=./bin/shared:$LD_LIBRARY_PATH" \
LD_LIBRARY_PATH=./bin/shared:$LD_LIBRARY_PATH
PYTHON=/usr/bin/python2.6 /usr/bin/perl -W ./../selftest/selftest.pl
--prefix=./st --builddir=. --srcdir=. --exclude=./selftest/skip
--testlist="./selftest/tests.sh|" --exclude=./selftest/slow
--socket-wrapper | /usr/bin/perl -W ./../selftest/filter-subunit.pl
--expected-failures=./selftest/knownfail | /usr/bin/perl -W
./../selftest/format-subunit.pl --format=plain --immediate
SOCKET_WRAPPER_DIR=./st/w
Version 4.0.0alpha9-GIT-UNKNOWN
OPTIONS --configfile=$SMB_CONF_PATH --maximum-runtime=2400
--target=samba4 --basedir=/install/samba4/source4/st/s4client
--format=subunit
Your openldap Backend for Samba4 is now configured, and is ready to be
started
Server Role: domain controller
Hostname: localdc1
DNS Domain: samba.example.com
Base DN: DC=samba,DC=example,DC=com
LDAP admin user: samba-admin
LDAP admin password: localdcpass
LDAP Debug-Output:
(1, 'connection to remote LDAP server dropped?')
Ok. - No other slapd-Instance listening on:
ldapi://%2Finstall%2Fsamba4%2Fsource4%2Fst%2Fdc%2Fprivate%2Fldap%2Fldapi.
Starting slapd now for final provision.
Started slapd for final provisioning with PID: 32268
Now run final provision with: --ldap-backend=ldapi
--ldap-backend-type=openldap --password=localdcpass
--username=samba-admin --realm=samba.example.com --domain=SAMBADOMAIN
--server-role='domain controller'
schema_fsmo_init: no schema dn present: (skip schema loading)
naming_fsmo_init: no partitions dn present: (skip loading of naming
contexts details)
pdc_fsmo_init: no domain dn present: (skip loading of domain details)
schema_fsmo_init: no schema head present: (skip schema loading)
naming_fsmo_init: no partitions dn present: (skip loading of naming
contexts details)
pdc_fsmo_init: no domain object present: (skip loading of domain details)
PROVISIONING DC...STARTING SAMBA... DONE
delaying for nbt name registration
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
Lookup failed - NT_STATUS_IO_TIMEOUT
Lookup failed - NT_STATUS_HOST_UNREACHABLE
SAMBA LOG of: localdc1
Warning: This program is an suid-root program or is being run by the
root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s
xterm: DISPLAY is not set
./bin/samba failed with status 1!
[1/603 in 0s] samba4.ldb.ldap with options (dc)
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
UNEXPECTED(failure): samba4.ldb.ldap with options (dc).RootDSE
Getting defaultNamingContext
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
BASEDN is
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
UNEXPECTED(failure): samba4.ldb.ldap with options (dc).Listing Users
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
UNEXPECTED(failure): samba4.ldb.ldap with options (dc).Listing Users
(sorted)
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
UNEXPECTED(failure): samba4.ldb.ldap with options (dc).Listing Groups
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Found 0 entries
Should have found at least 10 entries
Check rootDSE for Controls
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Should have found at least 4 entries
Test Paged Results Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Paged Results Control test returned 0 items
Test Server Sort Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Server Sort Control test returned 0 items
Test Extended DN Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Extended DN Control test returned 0 items
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Extended DN Control test returned 0 items
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Extended DN Control test returned 0 items
Test Domain scope Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Extended Domain scope Control test returned 0 items
Test Attribute Scope Query Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Attribute Scope Query test returned 0 items
Test Search Options Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Search Options Control Query test returned 0 items
Test Search Options Control with Domain Scope Control
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Search Options Control Query test returned 0 items
Test <WKGUID=22B70C67D56E4EFB91E9300FCA3DC1AA,> => ForeignSecurityPrincipals
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=22B70C67D56E4EFB91E9300FCA3DC1AA,> => ForeignSecurityPrincipals
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <WKGUID=2FBAC1870ADE11D297C400C04FD8D5CD,> => Infrastructure
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=2FBAC1870ADE11D297C400C04FD8D5CD,> => Infrastructure
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <WKGUID=AB1D30F3768811D1ADED00C04FD8D5CD,> => System
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=AB1D30F3768811D1ADED00C04FD8D5CD,> => System
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <WKGUID=A361B2FFFFD211D1AA4B00C04FD7D83A,> => Domain
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=A361B2FFFFD211D1AA4B00C04FD7D83A,> => Domain
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <WKGUID=AA312825768811D1ADED00C04FD8D5CD,> => Computers
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=AA312825768811D1ADED00C04FD8D5CD,> => Computers
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <WKGUID=A9D1CA15768811D1ADED00C04FD8D5CD,> => Users
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Test <wkGuId=A9D1CA15768811D1ADED00C04FD8D5CD,> => Users
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
Object not found by WKGUID
Getting HEX GUID/SID of
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
HEXGUID[]
Getting STR GUID/SID of
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
STRDN:
STRGUID[]
Getting STR GUID/SID of
Failed to connect to ldap URL 'ldap://127.0.0.1' - LDAP client internal
error: NT_STATUS_HOST_UNREACHABLE
Failed to connect to 'ldap://127.0.0.1'
Failed to connect to ldap://127.0.0.1 - (null)
STRDN:
STRSID[]
command: ../testprogs/blackbox/test_ldb.sh ldap $SERVER_IP
ERROR: Exit code was 31
[2/593 in 59s, 1 errors] samba4.ldb
[3/143 in 67s, 1 errors] samba4.local.binding
[4/143 in 67s, 1 errors] samba4.local.ntlmssp
[5/143 in 67s, 1 errors] samba4.local.messaging
[6/143 in 77s, 1 errors] samba4.local.irpc
[7/143 in 87s, 1 errors] samba4.local.strlist
[8/143 in 87s, 1 errors] samba4.local.file
[9/143 in 87s, 1 errors] samba4.local.str
[10/143 in 87s, 1 errors] samba4.local.time
[11/143 in 87s, 1 errors] samba4.local.datablob
[12/143 in 87s, 1 errors] samba4.local.idtree
[13/143 in 87s, 1 errors] samba4.local.genrand
[14/143 in 87s, 1 errors] samba4.local.iconv
[15/143 in 87s, 1 errors] samba4.local.socket
[16/143 in 87s, 1 errors] samba4.local.socket.wrapper
[17/143 in 87s, 1 errors] samba4.local.nss.wrapper
[18/143 in 87s, 1 errors] samba4.local.pac
[19/143 in 87s, 1 errors] samba4.local.resolve
[20/143 in 89s, 1 errors] samba4.local.sddl
[21/143 in 89s, 1 errors] samba4.local.ndr
[22/143 in 90s, 1 errors] samba4.local.tdr
[23/143 in 90s, 1 errors] samba4.local.share
[24/143 in 90s, 1 errors] samba4.local.loadparm
[25/143 in 90s, 1 errors] samba4.local.charset
[26/143 in 90s, 1 errors] samba4.local.compression
[27/143 in 90s, 1 errors] samba4.local.event
[28/143 in 96s, 1 errors] samba4.local.torture
[29/143 in 96s, 1 errors] samba4.local.dbspeed
[30/143 in 116s, 1 errors] samba4.local.credentials
[31/143 in 116s, 1 errors] samba4.local.ldb
[32/143 in 116s, 1 errors] samba4.local.registry
[33/143 in 116s, 1 errors] samba4.local.talloc
[34/143 in 131s, 1 errors] samba4.local.replace
[35/143 in 132s, 1 errors] samba4.local.crypto.md4
[36/143 in 132s, 1 errors] samba4.local.crypto.md5
[37/143 in 132s, 1 errors] samba4.local.crypto.hmacmd5
[38/143 in 132s, 1 errors] samba4.tdb.stress
[39/143 in 137s, 1 errors] samba4.pidl.cutil
[40/143 in 137s, 1 errors] samba4.pidl.dump
[41/143 in 137s, 1 errors] samba4.pidl.header
[42/143 in 137s, 1 errors] samba4.pidl.ndr
[43/143 in 138s, 1 errors] samba4.pidl.ndr_align
[44/143 in 138s, 1 errors] samba4.pidl.ndr_alloc
[45/143 in 139s, 1 errors] samba4.pidl.ndr_array
[46/143 in 139s, 1 errors] samba4.pidl.ndr_compat
[47/143 in 140s, 1 errors] samba4.pidl.ndr_deprecations
[48/143 in 140s, 1 errors] samba4.pidl.ndr_fullptr
[49/143 in 140s, 1 errors] samba4.pidl.ndr_refptr
[50/143 in 142s, 1 errors] samba4.pidl.ndr_represent
[51/143 in 142s, 1 errors] samba4.pidl.ndr_simple
[52/143 in 142s, 1 errors] samba4.pidl.ndr_string
[53/143 in 143s, 1 errors] samba4.pidl.ndr_tagtype
[54/143 in 143s, 1 errors] samba4.pidl.parse_idl
# Failed test at ./selftest/../../pidl/tests/samba3-cli.pl line 32.
# got: 'struct rpccli_bar_state {
# struct bar orig;
# struct bar tmp;
# TALLOC_CTX *out_mem_ctx;
# NTSTATUS (*dispatch_recv)(struct tevent_req *req, TALLOC_CTX
*mem_ctx);
# };
#
# static void rpccli_bar_done(struct tevent_req *subreq);
#
# struct tevent_req *rpccli_bar_send(TALLOC_CTX *mem_ctx,
# struct tevent_context *ev,
# struct rpc_pipe_client *cli)
# {
# struct tevent_req *req;
# struct rpccli_bar_state *state;
# struct tevent_req *subreq;
#
# req = tevent_req_create(mem_ctx, &state,
# struct rpccli_bar_state);
# if (req == NULL) {
# return NULL;
# }
# state->out_mem_ctx = NULL;
# state->dispatch_recv = cli->dispatch_recv;
#
# /* In parameters */
#
# /* Out parameters */
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &state->orig);
# }
#
# /* make a temporary copy, that we pass to the dispatch function */
# state->tmp = state->orig;
#
# subreq = cli->dispatch_send(state, ev, cli,
# &ndr_table_foo,
# NDR_BAR,
# &state->tmp);
# if (tevent_req_nomem(subreq, req)) {
# return tevent_req_post(req, ev);
# }
# tevent_req_set_callback(subreq, rpccli_bar_done, req);
# return req;
# }
#
# static void rpccli_bar_done(struct tevent_req *subreq)
# {
# struct tevent_req *req = tevent_req_callback_data(
# subreq, struct tevent_req);
# struct rpccli_bar_state *state = tevent_req_data(
# req, struct rpccli_bar_state);
# NTSTATUS status;
# TALLOC_CTX *mem_ctx;
#
# if (state->out_mem_ctx) {
# mem_ctx = state->out_mem_ctx;
# } else {
# mem_ctx = state;
# }
#
# status = state->dispatch_recv(subreq, mem_ctx);
# TALLOC_FREE(subreq);
# if (!NT_STATUS_IS_OK(status)) {
# tevent_req_nterror(req, status);
# return;
# }
#
# /* Copy out parameters */
#
# /* Reset temporary structure */
# ZERO_STRUCT(state->tmp);
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &state->orig);
# }
#
# tevent_req_done(req);
# }
#
# NTSTATUS rpccli_bar_recv(struct tevent_req *req,
# TALLOC_CTX *mem_ctx)
# {
# struct rpccli_bar_state *state = tevent_req_data(
# req, struct rpccli_bar_state);
# NTSTATUS status;
#
# if (tevent_req_is_nterror(req, &status)) {
# tevent_req_received(req);
# return status;
# }
#
# /* Steal possbile out parameters to the callers context */
# talloc_steal(mem_ctx, state->out_mem_ctx);
#
# tevent_req_received(req);
# return NT_STATUS_OK;
# }
#
# NTSTATUS rpccli_bar(struct rpc_pipe_client *cli,
# TALLOC_CTX *mem_ctx)
# {
# struct bar r;
# NTSTATUS status;
#
# /* In parameters */
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &r);
# }
#
# status = cli->dispatch(cli,
# mem_ctx,
# &ndr_table_foo,
# NDR_BAR,
# &r);
#
# if (!NT_STATUS_IS_OK(status)) {
# return status;
# }
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &r);
# }
#
# if (NT_STATUS_IS_ERR(status)) {
# return status;
# }
#
# /* Return variables */
#
# /* Return result */
# return NT_STATUS_OK;
# }
#
# '
# expected: 'NTSTATUS rpccli_bar(struct rpc_pipe_client *cli,
# TALLOC_CTX *mem_ctx)
# {
# struct bar r;
# NTSTATUS status;
#
# /* In parameters */
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &r);
# }
#
# status = cli->dispatch(cli,
# mem_ctx,
# &ndr_table_foo,
# NDR_BAR,
# &r);
#
# if (!NT_STATUS_IS_OK(status)) {
# return status;
# }
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &r);
# }
#
# if (NT_STATUS_IS_ERR(status)) {
# return status;
# }
#
# /* Return variables */
#
# /* Return result */
# return NT_STATUS_OK;
# }
#
# '
# Failed test at ./selftest/../../pidl/tests/samba3-cli.pl line 75.
# got: 'struct rpccli_bar_state {
# struct bar orig;
# struct bar tmp;
# TALLOC_CTX *out_mem_ctx;
# NTSTATUS (*dispatch_recv)(struct tevent_req *req, TALLOC_CTX
*mem_ctx);
# };
#
# static void rpccli_bar_done(struct tevent_req *subreq);
#
# struct tevent_req *rpccli_bar_send(TALLOC_CTX *mem_ctx,
# struct tevent_context *ev,
# struct rpc_pipe_client *cli)
# {
# struct tevent_req *req;
# struct rpccli_bar_state *state;
# struct tevent_req *subreq;
#
# req = tevent_req_create(mem_ctx, &state,
# struct rpccli_bar_state);
# if (req == NULL) {
# return NULL;
# }
# state->out_mem_ctx = NULL;
# state->dispatch_recv = cli->dispatch_recv;
#
# /* In parameters */
#
# /* Out parameters */
#
# /* Result */
# ZERO_STRUCT(state->orig.out.result);
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &state->orig);
# }
#
# /* make a temporary copy, that we pass to the dispatch function */
# state->tmp = state->orig;
#
# subreq = cli->dispatch_send(state, ev, cli,
# &ndr_table_foo,
# NDR_BAR,
# &state->tmp);
# if (tevent_req_nomem(subreq, req)) {
# return tevent_req_post(req, ev);
# }
# tevent_req_set_callback(subreq, rpccli_bar_done, req);
# return req;
# }
#
# static void rpccli_bar_done(struct tevent_req *subreq)
# {
# struct tevent_req *req = tevent_req_callback_data(
# subreq, struct tevent_req);
# struct rpccli_bar_state *state = tevent_req_data(
# req, struct rpccli_bar_state);
# NTSTATUS status;
# TALLOC_CTX *mem_ctx;
#
# if (state->out_mem_ctx) {
# mem_ctx = state->out_mem_ctx;
# } else {
# mem_ctx = state;
# }
#
# status = state->dispatch_recv(subreq, mem_ctx);
# TALLOC_FREE(subreq);
# if (!NT_STATUS_IS_OK(status)) {
# tevent_req_nterror(req, status);
# return;
# }
#
# /* Copy out parameters */
#
# /* Copy result */
# state->orig.out.result = state->tmp.out.result;
#
# /* Reset temporary structure */
# ZERO_STRUCT(state->tmp);
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &state->orig);
# }
#
# tevent_req_done(req);
# }
#
# NTSTATUS rpccli_bar_recv(struct tevent_req *req,
# TALLOC_CTX *mem_ctx,
# WERROR *result)
# {
# struct rpccli_bar_state *state = tevent_req_data(
# req, struct rpccli_bar_state);
# NTSTATUS status;
#
# if (tevent_req_is_nterror(req, &status)) {
# tevent_req_received(req);
# return status;
# }
#
# /* Steal possbile out parameters to the callers context */
# talloc_steal(mem_ctx, state->out_mem_ctx);
#
# /* Return result */
# *result = state->orig.out.result;
#
# tevent_req_received(req);
# return NT_STATUS_OK;
# }
#
# NTSTATUS rpccli_bar(struct rpc_pipe_client *cli,
# TALLOC_CTX *mem_ctx,
# WERROR *werror)
# {
# struct bar r;
# NTSTATUS status;
#
# /* In parameters */
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &r);
# }
#
# status = cli->dispatch(cli,
# mem_ctx,
# &ndr_table_foo,
# NDR_BAR,
# &r);
#
# if (!NT_STATUS_IS_OK(status)) {
# return status;
# }
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &r);
# }
#
# if (NT_STATUS_IS_ERR(status)) {
# return status;
# }
#
# /* Return variables */
#
# /* Return result */
# if (werror) {
# *werror = r.out.result;
# }
#
# return werror_to_ntstatus(r.out.result);
# }
#
# '
# expected: 'NTSTATUS rpccli_bar(struct rpc_pipe_client *cli,
# TALLOC_CTX *mem_ctx,
# WERROR *werror)
# {
# struct bar r;
# NTSTATUS status;
#
# /* In parameters */
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_IN_DEBUG(bar, &r);
# }
#
# status = cli->dispatch(cli,
# mem_ctx,
# &ndr_table_foo,
# NDR_BAR,
# &r);
#
# if (!NT_STATUS_IS_OK(status)) {
# return status;
# }
#
# if (DEBUGLEVEL >= 10) {
# NDR_PRINT_OUT_DEBUG(bar, &r);
# }
#
# if (NT_STATUS_IS_ERR(status)) {
# return status;
# }
#
# /* Return variables */
#
# /* Return result */
# if (werror) {
# *werror = r.out.result;
# }
#
# return werror_to_ntstatus(r.out.result);
# }
#
# '
# Looks like you failed 2 tests of 9.
[55/143 in 144s, 1 errors] samba4.pidl.samba-ndr
[56/143 in 144s, 1 errors] samba4.pidl.samba3-cli
UNEXPECTED(failure): samba4.pidl.samba3-cli.7
UNEXPECTED(failure): samba4.pidl.samba3-cli.8
command: perl ./selftest/../../pidl/tests/samba3-cli.pl | perl
./selftest/../../lib/subunit/tap2subunit
ERROR: Exit code was 1
[57/143 in 145s, 2 errors] samba4.pidl.samba3-srv
[58/143 in 145s, 2 errors] samba4.pidl.tdr
[59/143 in 145s, 2 errors] samba4.pidl.test_util
[60/143 in 146s, 2 errors] samba4.pidl.typelist
[61/143 in 146s, 2 errors] samba4.pidl.util
[62/143 in 146s, 2 errors] samba4.pidl.wireshark-conf
[63/143 in 147s, 2 errors] samba4.pidl.wireshark-ndr
[64/143 in 147s, 2 errors] samba4.selftest.samba4.pl
[65/143 in 147s, 2 errors] samba4.blackbox.ndrdump
Your openldap Backend for Samba4 is now configured, and is ready to be
started
Server Role: member server
Hostname: localmember3
DNS Domain: samba.example.com
Base DN: CN=LOCALMEMBER3
LDAP admin user: samba-admin
LDAP admin password: localmemberpass
LDAP Debug-Output:
(1, 'connection to remote LDAP server dropped?')
Ok. - No other slapd-Instance listening on:
ldapi://%2Finstall%2Fsamba4%2Fsource4%2Fst%2Fmember%2Fprivate%2Fldap%2Fldapi.
Starting slapd now for final provision.
Started slapd for final provisioning with PID: 664
Now run final provision with: --ldap-backend=ldapi
--ldap-backend-type=openldap --password=localmemberpass
--username=samba-admin --realm=samba.example.com --domain=LOCALMEMBER3
--server-role='member server'
schema_fsmo_init: no schema dn present: (skip schema loading)
naming_fsmo_init: no partitions dn present: (skip loading of naming
contexts details)
pdc_fsmo_init: no domain dn present: (skip loading of domain details)
schema_fsmo_init: no schema head present: (skip schema loading)
naming_fsmo_init: no partitions dn present: (skip loading of naming
contexts details)
pdc_fsmo_init: no domain object present: (skip loading of domain details)
Joining domain failed: Connection to SAMR pipe of PDC for SAMBADOMAIN
failed: Connection to DC failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
Join failed
SOCKET_WRAPPER_DEFAULT_IFACE="3"
KRB5_CONFIG="/install/samba4/source4/st/member/etc/krb5.conf" ./bin/net
join --configfile=/install/samba4/source4/st/member/etc/smb.conf
SAMBADOMAIN member -UAdministrator%localdcpass at
/install/samba4/selftest/target/Samba4.pm line 840.
A summary with detailed information can be found in:
./summary
FAILED (6 failures and 0 errors in 2 testsuites)
make: *** [gdbtest-all] Error 1
More information about the samba-technical
mailing list