[Samba] Fwd: Active Directory Installation error

Biku Argus biku at argusqatar.com
Sat Dec 19 11:06:48 UTC 2015


*Hi! When I tried to install active directory in Debian Jessie I had
following errors in the end. I followed the samba instructions to install
it. Can you please help me? And plus I'm new in linux. :)*

root at server-linux:~# nano /etc/hosts
root at server-linux:~# export
PATH=/usr/local/samba/bin/:/usr/local/samba/sbin/:$PATH
root at server-linux:~# samba-tool domain provision .....
--option="interfaces=lo eth0" --option="bind interfaces only=yes"
Usage: samba-tool domain provision [options]

root at server-linux:~# samba-tool domain provision --use-rfc2307 --interactive
Realm [TESTARGUS123.COM]: TESTARGUS123.COM
 Domain [TESTARGUS123]: TESTARGUS123
 Server Role (dc, member, standalone) [dc]: dc
 DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE)
[SAMBA_INTERNAL]: SAMBA_INTERNAL
 DNS forwarder IP address (write 'none' to disable forwarding)
[192.168.200.1]: 8.8.8.8
Administrator password:
Retype password:
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -
ProvisioningError: guess_names: 'realm =' was not specified in supplied
/etc/samba/smb.conf.  Please remove the smb.conf file and let provision
generate it
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 401,
in run
    use_rfc2307=use_rfc2307, skip_sysvolacl=False)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
2019, in provision
    sitename=sitename, rootdn=rootdn, domain_names_forced=(samdb_fill ==
FILL_DRS))
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
595, in guess_names
    raise ProvisioningError("guess_names: 'realm =' was not specified in
supplied %s.  Please remove the smb.conf file and let provision generate
it" % lp.configfile)

root at server-linux:~# mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
root at server-linux:~# samba-tool domain provision --use-rfc2307 --interactive
Realm [TESTARGUS123.COM]: TESTARGUS123.COM
 Domain [TESTARGUS123]: TESTARGUS
 Server Role (dc, member, standalone) [dc]: dc
 DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE)
[SAMBA_INTERNAL]: SAMBA_INTERNAL
 DNS forwarder IP address (write 'none' to disable forwarding)
[192.168.200.1]: 8.8.8.8
Administrator password:
Retype password:
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
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
Adding DomainDN: DC=testargus123,DC=com
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Creating CN=MicrosoftDNS,CN=System,DC=testargus123,DC=com
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at
/var/lib/samba/private/krb5.conf
Setting up fake yp server settings
Once the above files are installed, your Samba4 server will be ready to use
Server Role:           active directory domain controller
Hostname:              server-linux
NetBIOS Domain:        TESTARGUS
DNS Domain:            testargus123.com
DOMAIN SID:            S-1-5-21-3659101674-2677919897-2034844652

root at server-linux:~# samba
root at server-linux:~# smbclient
-bash: smbclient: command not found
root at server-linux:~# exit
logout
biku at server-linux:~$ smbclient -L linux-server -U%
bash: smbclient: command not found
biku at server-linux:~$ smbclient -L localhost -U%
bash: smbclient: command not found



-- 
Regards,
Biku Balami
Technical Support-Hardware
+974-55476123


More information about the samba mailing list