Problem in Final Provision Script - samba4-pre-Alph9

Oliver Liebel oliver at itc.li
Sat Sep 12 04:33:53 MDT 2009


sorry, i didnt tested it with the latest version from git.
but im sure andrew will know where to focus, as he
reworked provision.py in several parts to integrate
provision-backend in provision.

looks like for some reason s4 cant make a proper connect to the ldapi-socket
on therefore provision fails.

oliver


Motaz Diab schrieb:
> Hello Mr. Oliver, How are you?
> Let me first thank you for your great work in simplifying the
> integration between samba4 and openldap.
> I downloaded the final samba4 GIT tree (pre-Alpha9) and installed
> OpenLDAP 2.4.17 as you mentioned in howto-ol-backend-s4.txt, but when
> I try to install sambe4:
>
> cd samba4/source
> ./autogen.sh
>
> ./autogen.sh: running script/mkversion.sh
> ./script/mkversion.sh: 'version.h' created for
> Samba("4.0.0alpha9-GIT-UNKNOWN")
> ./autogen.sh: running autoheader -I. -I../lib/replace
> ./autogen.sh: running autoconf -I. -I../lib/replace
> Now run ./configure (or ./configure.developer) and then make.
> --------------------------------------------------------------------------------------------------------------------------
> ./configure --prefix=/opt/samba4 --enable-debug 1>configure.out
> 2>configure.err
> gmake 1>make.out 2>make.err
> make install 1>install.out 2>install.err
>
> Note: All output files are attached here.
> Could you please to check the install.err and make.err? especially
> make.err cause it has many errors and warns in compilation stage.
> --------------------------------------------------------------------------------------------------------------------------
> setup/provision \
>    --ldap-backend-type=openldap \
>    --slapd-path="/opt/openldap/libexec/slapd" \
>    --username=samba-admin --realm=uok.edu.sy \
>    --domain=UOK.EDU.SY --server-role='domain controller'\
>    --adminpass=recoba
>   
> This is the output:
>
> hdb_db_open: database
> "cn=Schema,cn=Configuration,dc=uok,dc=edu,dc=sy":
> db_open(/opt/samba4/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://%2Fopt%2Fsamba4%2Fprivate%2Fldap%2Fldapi'
> Setting up share.ldb
> Setting up secrets.ldb
> Setting up the registry
> Setting up idmap db
> Setting up SAM db
> Setting up sam.ldb partitions and settings
> Setting up sam.ldb rootDSE
> Pre-loading the Samba 4 and AD schema
> 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)
> Erasing data from partitions
> Adding DomainDN: DC=uok,DC=edu,DC=sy
> Modifying DomainDN: DC=uok,DC=edu,DC=sy
> Adding configuration container
> Modifying configuration container
> Setting up sam.ldb schema
> Setting up sam.ldb configuration data
> Setting up display specifiers
> Adding users container
> Modifying users container
> Adding computers container
> Modifying computers container
> Setting up sam.ldb data
> Setting up sam.ldb users and groups
> Setting up self join
> Traceback (most recent call last):
>   File "setup/provision", line 201, in <module>
>     ldap_dryrun_mode=opts.ldap_dryrun_mode)
>   File "bin/python/samba/provision.py", line 1172, in provision
>     serverrole=serverrole, ldap_backend=provision_backend)
>   File "bin/python/samba/provision.py", line 995, in setup_samdb
>     domainControllerFunctionality=domainControllerFunctionality)
>   File "bin/python/samba/provision.py", line 787, in setup_self_join
>     "DOMAIN_CONTROLLER_FUNCTIONALITY":
> str(domainControllerFunctionality)})
>   File "bin/python/samba/provision.py", line 262, in setup_add_ldif
>     ldb.add_ldif(data)
>   File "bin/python/samba/__init__.py", line 244, in add_ldif
>     self.add(msg)
> _ldb.LdbError: (20, 'LDAP error 20 LDAP_ATTRIBUTE_OR_VALUE_EXISTS - 
> <servicePrincipalName: value #2 provided more than once> <>')
> --------------------------------------------------------------------------------------------------------------------------
> when I try to run samba4:
> /opt/samba4/sbin/samba -i -M single --debuglevel=1
>
> samba version 4.0.0alpha9-GIT-UNKNOWN started.
> Copyright Andrew Tridgell and the Samba Team 1992-2009
> samba: using 'single' process model
> Attempting to autogenerate TLS self-signed keys for https for hostname
> 'DC1.uok.edu.sy'
> TLS self-signed keys generated OK
> Failed to find our own NTDS Settings objectGUID in the ldb!
> task_server_terminate: [dreplsrv: Failed to connect to local samdb:
> WERR_DS_UNAVAILABLE]
> task_server_terminate: [NT_STATUS_CANT_ACCESS_DOMAIN_INFO]
> Failed to find our own NTDS Settings objectGUID in the ldb!
> task_server_terminate: [kccsrv: Failed to connect to local samdb:
> WERR_DS_UNAVAILABLE]
> --------------------------------------------------------------------------------------------------------------------------
> So where is the wrong and why the errors appear in samba4 compilation
> with make?
>
> Finally, I thank you again...
>
> waiting your reply!
> Best Regards
>
> ---------------------------------------------
> Eng. Motaz Diab
> Kalamoon University
> http://uok.edu.sy/uok
>
>



More information about the samba-technical mailing list