Konstantin Boyandin
2018-Aug-24 07:56 UTC
[Samba] "ERROR(runtime): uncaught exception - Unable to load file smb.conf" when doing classicupgrade
Hello, OS: Ubuntu 18.04.1 Samba: 4.7.6 I use the guide https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade)#Preparations When trying to execute command # samba-tool domain classicupgrade --dbdir=/usr/local/samba.LAN/ --realm=ad-lan.com --dns-backend=BIND9_DLZ \ --option="interfaces=lo ens3" --option="bind interfaces only=yes" /usr/local/samba.LAN/smb.conf I get this: Reading smb.conf WARNING: The "syslog" option is deprecated handle_name_resolve_order: WARNING: Ignoring invalid list value 'hosts' for parameter 'name resolve order' ERROR(runtime): uncaught exception - Unable to load file /usr/local/samba.LAN/smb.conf File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 1584, in run s3conf.load(smbconf) Could someone suggest how to overcome this? The contents of /usr/local/samba.LAN/smb.conf: ----------- /usr/local/samba.LAN/smb.conf below [global] unix charset = UTF8 workgroup = LAN netbios name = DC server max protocol = NT1 server string = AD-LAN.COM domain controller passdb backend =ldapsam:"ldap://192.168.17.10" username map = /etc/samba/smbusers interfaces = ens3 lo bind interfaces only = yes enable privileges = yes log level = 1 syslog = 0 log file = /var/log/samba/%m max log size = 0 name resolve order = wins bcast hosts time server = Yes printcap name = CUPS add user script = /usr/sbin/smbldap-useradd -m '%u' delete user script = /usr/sbin/smbldap-userdel '%u' add group script = /usr/sbin/smbldap-groupadd -p '%g' delete group script = /usr/sbin/smbldap-groupdel '%g' add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u' delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u' set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' add machine script = /usr/sbin/smbldap-useradd -W '%u' shutdown script = /var/lib/samba/scripts/shutdown.sh abort shutdown script = /sbin/shutdown -c logon script = %u.bat logon drive = W: logon home = \\%L\%u logon path = \\%L\profiles\%u domain logons = Yes domain master = Yes wins support = Yes ldapsam:trusted = no ldap ssl = off ldap suffix = dc=company,dc=lan ldap machine suffix = ou=Computers ldap user suffix = ou=Users ldap group suffix = ou=Groups ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=company,dc=lan idmap backend = ldap://192.168.17.10 idmap uid = 500-20000 idmap gid = 500-20000 printer admin = root printing = cups #========================Share Definitions======================== [homes] comment = Home Directories valid users = %S browseable = yes writable = yes create mask = 0664 directory mask = 0775 [netlogon] comment = Network Logon Service path = /opt/samba/netlogon writeable = yes browseable = yes read only = no [profiles] path = /opt/samba/profiles writeable = yes browseable = yes create mode = 0644 directory mode = 0755 [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [maildir] comment = Mail directory path = /var/mail valid users = sentinel public = no writable = no printable = no ----------- /usr/local/samba.LAN/smb.conf above Sincerely, Konstantin
Rowland Penny
2018-Aug-24 08:27 UTC
[Samba] "ERROR(runtime): uncaught exception - Unable to load file smb.conf" when doing classicupgrade
On Fri, 24 Aug 2018 14:56:01 +0700 Konstantin Boyandin via samba <samba at lists.samba.org> wrote:> Hello, > > OS: Ubuntu 18.04.1 > Samba: 4.7.6 > > I use the guide > > https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade)#Preparations > > When trying to execute command > > # samba-tool domain classicupgrade --dbdir=/usr/local/samba.LAN/ > --realm=ad-lan.com --dns-backend=BIND9_DLZ \ > --option="interfaces=lo ens3" --option="bind interfaces only=yes" > /usr/local/samba.LAN/smb.conf > > I get this: > > Reading smb.conf > WARNING: The "syslog" option is deprecated > handle_name_resolve_order: WARNING: Ignoring invalid list value > 'hosts' for parameter 'name resolve order' > > Could someone suggest how to overcome this? > > The contents of /usr/local/samba.LAN/smb.conf: > ----------- /usr/local/samba.LAN/smb.conf below > [global]> name resolve order = wins bcast hostsI wish they were all as easy to fix ;-) Edit the 'name resolve order' line and remove the 's' from the end of 'hosts', it is just 'host' Rowland
Apparently Analagous Threads
- samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
- Ubuntu 18.04 classicupgrade help
- uncaught exception - Unable to get id for sid in classicupgrade
- Ubuntu 18.04 classicupgrade help
- Ubuntu 18.04 classicupgrade help