Hi Julien, Even after setting the LDB_MODULES_PATH samba cannot be join or created as a AD DC.
# export LDB_MODULES_PATH="/usr/lib64/samba/ldb" # echo $LDB_MODULES_PATH /usr/lib64/samba/ldb # ldconfig /usr/lib64/samba: /usr/lib64/samba/ldb: I know this used to work in Samba-4.1.11 without any issues. Regards From: [email protected] [mailto:[email protected]] On Behalf Of Julien Kerihuel Sent: 03 June 2015 02:40 PM To: [email protected] Subject: Re: [SOGo] openchange_provision error Hi Eben, You need to set the LDB_MODULES_PATH environment variable: LDB_MODULES_PATH="/usr/lib64/samba/ldb" Cheers, Julien. On 03/06/15 08:24, [email protected]<mailto:[email protected]> wrote: Hi, I decided to do a rebuild and use samba 4.1.18 with openchange 2.2 and sogo 2.3 (All from SOGo repo) with RHEL 6.5 When using openchange_provision it works, but now I keep on receive the following error. ** Trying to setup a new ADDC ** samba-tool domain provision --use-rfc2307 --interactive Realm [SAMBA.TEST]: Domain [SAMBA]: Server Role (dc, member, standalone) [dc]: DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: DNS forwarder IP address (write 'none' to disable forwarding) [10.132.33.2]: Administrator password: Retype password: Sorry, passwords do not match. Administrator password: Retype password: Looking up IPv4 addresses Looking up IPv6 addresses No IPv6 address will be assigned ldb: module version mismatch in ../source4/dsdb/samdb/ldb_modules/acl.c : ldb_version=1.1.17 module_version=1.1.20 ldb: failed to initialise module /usr/lib64/samba/ldb/acl.so : Unavailable Setting up secrets.ldb WARNING: Module [samba_secrets] not found - do you need to set LDB_MODULES_PATH? Unable to load modules for /var/lib/samba/private/secrets.ldb: (null) ERROR(ldb): uncaught exception - None File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/samba/netcmd/domain.py", line 401, in run use_rfc2307=use_rfc2307, skip_sysvolacl=False) File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 2109, in provision backend_credentials=provision_backend.secrets_credentials, lp=lp) File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 946, in setup_secretsdb secrets_ldb = Ldb(path, session_info=session_info, lp=lp) File "/usr/lib64/python2.6/site-packages/samba/__init__.py", line 114, in __init__ self.connect(url, flags, options) ** Trying to join to domain ** samba-tool domain join samba.test DC -Uadministrator --realm=samba.test Finding a writeable DC for domain 'samba.test' Found DC hostname.samba.test ldb: module version mismatch in ../source4/dsdb/samdb/ldb_modules/acl.c : ldb_version=1.1.17 module_version=1.1.20 ldb: failed to initialise module /usr/lib64/samba/ldb/acl.so : Unavailable ERROR(<class 'samba.join.DCJoinException'>): uncaught exception - Can't join, error: 00002020: Operation unavailable without authentication File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/samba/netcmd/domain.py", line 555, in run machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) File "/usr/lib64/python2.6/site-packages/samba/join.py", line 1150, in join_DC machinepass, use_ntvfs, dns_backend, promote_existing) File "/usr/lib64/python2.6/site-packages/samba/join.py", line 86, in __init__ raise DCJoinException(estr) Please assist, what I'm I doing wrong? I installed all the required packages including samba/openchange from yum repo packages. Regards -- Julien Kerihuel [email protected]<mailto:[email protected]> OpenChange Project Founder Twitter: http://twitter.com/jkerihuel GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79 This e-mail is classified C2 - Vodacom Restricted - Information to be used inside Vodacom but it may be shared with authorised partners. “This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link https://webmail.vodacom.co.za/tc/default.html " -- [email protected] https://inverse.ca/sogo/lists
