[Samba] WARNING: Module [samba_secrets] not found (samba 4.0.8, classicupgrade)

Luca Olivetti luca at wetron.es
Fri Aug 16 04:26:48 MDT 2013


Samba 4.0.8, from the tarball, compiled with

./configure
make
sudo make install

# /usr/local/samba/sbin/samba -b
Samba version: 4.0.8
Build environment:
   Build host:  Linux template.wetron.local 3.8.13.4-server-1.mga3 #1
SMP Thu Jul 4 14:04:54 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Paths:
   BINDIR: /usr/local/samba/bin
   SBINDIR: /usr/local/samba/sbin
   CONFIGFILE: /usr/local/samba/etc/smb.conf
   NCALRPCDIR: /usr/local/samba/var/run/ncalrpc
   LOGFILEBASE: /usr/local/samba/var
   LMHOSTSFILE: /usr/local/samba/etc/lmhosts
   DATADIR: /usr/local/samba/share
   MODULESDIR: /usr/local/samba/lib
   LOCKDIR: /usr/local/samba/var/lock
   STATEDIR: /usr/local/samba/var/locks
   CACHEDIR: /usr/local/samba/var/cache
   PIDDIR: /usr/local/samba/var/run
   PRIVATE_DIR: /usr/local/samba/private
   SWATDIR: /usr/local/samba/share/swat
   CODEPAGEDIR: /usr/local/samba/share/codepages
   SETUPDIR: /usr/local/samba/share/setup
   WINBINDD_SOCKET_DIR: /usr/local/samba/var/run/winbindd
   WINBINDD_PRIVILEGED_SOCKET_DIR:
/usr/local/samba/var/lib/winbindd_privileged
   NTP_SIGND_SOCKET_DIR: /usr/local/samba/var/lib/ntp_signd

-----------------------------------------------------------------------
------ classicupgrade fails with the message in subject:

# /usr/local/samba/bin/samba-tool domain classicupgrade
--dbdir=/root/samba3/samba --use-xattrs=yes --realm=wetron.es
/root/samba3/smb.conf
Reading smb.conf
Provisioning
Exporting account policy
Exporting groups
Ignoring 'well known' group 'Administrators' (should already be in AD,
and have no members)
Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found:
Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_SUCH_ALIAS)
Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not
found: Unable to enumerate members for alias,
(-1073741487,NT_STATUS_NO_SUCH_ALIAS)
Ignoring 'well known' group 'Replicators' (should already be in AD, and
have no members)
Exporting users
Next rid = 3903
ldb: module version mismatch in ../source4/dsdb/samdb/ldb_modules/acl.c
: ldb_version=1.1.14 module_version=1.1.16
ldb: failed to initialise module /usr/local/samba/lib/ldb/acl.so :
Unavailable
Exporting posix attributes
Reading WINS database
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
WARNING: Module [samba_secrets] not found - do you need to set
LDB_MODULES_PATH?
Unable to load modules for /usr/local/samba/private/secrets.ldb: (null)
ERROR(ldb): uncaught exception - None
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
    return self.run(*args, **kwargs)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/domain.py",
line 1318, in run
    useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/upgrade.py", line
853, in upgrade_from_samba3
    use_ntvfs=use_ntvfs, skip_sysvolacl=True)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py",
line 2094, in provision
    backend_credentials=provision_backend.secrets_credentials, lp=lp)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py",
line 945, in setup_secretsdb
    secrets_ldb = Ldb(path, session_info=session_info, lp=lp)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/__init__.py", line
114, in __init__
    self.connect(url, flags, options)



-----------------------------------------------------------------------
------ WHAT I TRIED (based on what google told me):

setting PYTHONPATH to /usr/local/samba/lib64/python2.7/site-packages
(no change)

creating a file /etc/ld.so.conf.d/samba4.conf with
"/usr/local/samba/lib" (no change)

setting LDB_MODULES_PATH=/usr/local/samba/lib:

# rm -f /usr/local/samba/etc/smb.conf
# LDB_MODULES_PATH=/usr/local/samba/lib /usr/local/samba/bin/samba-tool
domain classicupgrade --dbdir=/root/samba3/samba --use-xattrs=yes
--realm=wetron.es /root/samba3/smb.conf
Reading smb.conf
Provisioning
Exporting account policy
Exporting groups
Ignoring 'well known' group 'Administrators' (should already be in AD,
and have no members)
Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found:
Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_SUCH_ALIAS)
Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not
found: Unable to enumerate members for alias,
(-1073741487,NT_STATUS_NO_SUCH_ALIAS)
Ignoring 'well known' group 'Replicators' (should already be in AD, and
have no members)
Exporting users
Next rid = 3903
ldb: unable to dlopen /usr/local/samba/lib/idmap/autorid.so :
/usr/local/samba/lib/private/libidmap.so: undefined symbol:
find_domain_from_name
ldb: unable to dlopen /usr/local/samba/lib/idmap/hash.so :
/usr/local/samba/lib/private/libidmap.so: undefined symbol:
find_domain_from_name
ldb: unable to dlopen /usr/local/samba/lib/idmap/rid.so :
/usr/local/samba/lib/private/libidmap.so: undefined symbol:
find_domain_from_name
ldb: unable to dlopen /usr/local/samba/lib/idmap/tdb2.so :
/usr/local/samba/lib/private/libidmap.so: undefined symbol:
find_domain_from_name
ldb: module version mismatch in ../source4/dsdb/samdb/ldb_modules/acl.c
: ldb_version=1.1.14 module_version=1.1.16
ldb: failed to initialise module /usr/local/samba/lib/ldb/acl.so :
Unavailable
ldb: failed to initialise module /usr/local/samba/lib/ldb : Unavailable
ERROR(<type 'exceptions.MemoryError'>): uncaught exception -
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
    return self.run(*args, **kwargs)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/domain.py",
line 1318, in run
    useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
  File
"/usr/local/samba/lib64/python2.7/site-packages/samba/upgrade.py", line
792, in upgrade_from_samba3
    ldb_object = Ldb(url, credentials=creds)


-----------------------------------------------------------------------
------ What should I try next?

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007


More information about the samba mailing list