[PATCH] Merged provision and provision-backend
Howard Chu
hyc at symas.com
Thu Aug 13 02:52:10 MDT 2009
Andrew Bartlett wrote:
> On Thu, 2009-08-13 at 17:07 +1000, Andrew Bartlett wrote:
>> Attached is a great slab of work, aimed at merging the provision and
>> provision-backend scripts. I've taken quite a comprehensive approach to
>> the problem, and have also looked into some of the performance issues in
>> the 'normal' provision.
>>
>> Attached is the patch series.
>>
>> Let me know how it goes, as I can't actually get OpenLDAP to start.
>> I've CC'ed Howard for some assistance on that point :-)
>
> Rather than waste more bandwidth with another patch set, I've pushed a
> rebased set (on top of current master) to
>
> git://git.samba.org/abartlet/samba.org openldap-backend
>
OK. this is all I get, it hangs at the end. OpenSuSE 10.3 by the way, old
system...
>>>
make test TEST_LDAP=yes
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/local/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 = /home/software/samba/source4
LD_LIBRARY_PATH=./bin/shared:$LD_LIBRARY_PATH PYTHON=/usr/bin/X11/python2.5
/usr/bin/X11/perl -W ./../selftest/selftest.pl --prefix=./st --builddir=.
--srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|"
--exclude=./selftest/slow --socket-wrapper | /usr/bin/X11/perl -W
./../selftest/filter-subunit.pl --expected-failures=./selftest/knownfail |
/usr/bin/X11/perl -W ./../selftest/format-subunit.pl --format=plain --immediate
SOCKET_WRAPPER_DIR=./st/w
Version 4.0.0alpha9-GIT-88fd98b
OPTIONS --configfile=$SMB_CONF_PATH --maximum-runtime=2400 --target=samba4
--basedir=/home/software/samba/source4/st/s4client --format=subunit
hdb_db_open: database "cn=Schema,cn=Configuration,dc=samba,dc=example,dc=com":
db_open(/home/software/samba/source4/st/dc/private/ldap/db/schema/id2entry.bdb) failed:
No such file or directory (2).
backend_startup_one: bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)
Failed to bind - LDAP client internal error: NT_STATUS_UNEXPECTED_NETWORK_ERROR
Failed to connect to
'ldapi://%2Fhome%2Fsoftware%2Fsamba%2Fsource4%2Fst%2Fdc%2Fprivate%2Fldap%2Fldapi'
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)
Traceback (most recent call last):
File "./setup/provision", line 193, in <module>
nosync=opts.nosync)
File "bin/python/samba/provision.py", line 1181, in provision
if provision.slapd.poll() is None:
AttributeError: 'function' object has no attribute 'slapd'
Unable to provision:
NSS_WRAPPER_PASSWD="/home/software/samba/source4/st/dc/etc/passwd"
NSS_WRAPPER_GROUP="/home/software/samba/source4/st/dc/etc/group"
/usr/bin/X11/python2.5 ./setup/provision
--configfile=/home/software/samba/source4/st/dc/etc/smb.conf
--host-name=localdc1 --host-ip=127.0.0.1 --quiet --domain=SAMBADOMAIN
--realm=SAMBA.EXAMPLE.COM --adminpass=localdcpass
--krbtgtpass=krbtgtlocaldcpass --machinepass=machinelocaldcpass --root=hyc
--server-role="domain controller" --ldap-backend-type=openldap
--slapd-path=/home/hyc/OD/i24/usr/local/libexec/slapd
<<<
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
More information about the samba-technical
mailing list