LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-11-2017, 04:51 PM   #1
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Rep: Reputation: 1
Samba 4.5 issues


Hi I am trying to set up a Samba server as a Domain Controller in an active directory forest.

I have set up the relms and can log in to the server as an AD user.

when I try to start Samba it fails

Quote:

Jan 11 17:35:03 dc11 samba[8106]: [2017/01/11 17:35:03.419322, 0] ../source4/smbd/server.c:466(binary_smbd_main)
Jan 11 17:35:03 dc11 samba[8106]: At this time the 'samba' binary should only be used for either:
Jan 11 17:35:03 dc11 samba[8106]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
Jan 11 17:35:03 dc11 samba[8106]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Jan 11 17:35:03 dc11 samba[8106]: [2017/01/11 17:35:03.419463, 0] ../lib/util/become_daemon.c:111(exit_daemon)
Jan 11 17:35:03 dc11 samba[8106]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
It says the server role should be = to active directory server and it is .

here is the conf file
Quote:

[global]
netbios aliases = dc11.ad.intrinsix.com sodium
realm = AD.INTRINSIX.COM
dns forwarder = 24.97.91.134
security = ADS
server role = active directory domain controller
idmap config * : backend = tdb


[netlogon]
path = /usr/local/samba/var/locks/sysvol/ad.intrinsix.com/scripts
read only = No


[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No

also then I do a Testparm I get this that also says Role member
Quote:
[root@dc11 ~]# testparm
Load smb config files from /usr/local/samba/etc/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER


any help would be appreciated.
 
Old 01-13-2017, 07:57 AM   #2
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 1
figured it out , had to first delete the /etc/krb5.conf file , then re-provision the samba server then start samba
 
Old 05-31-2018, 06:52 PM   #3
deejayingo
LQ Newbie
 
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
Help for re-provisioning that worked for me:

Make a backup from the smb.config
Code:
sudo mv /etc/samba/smb.config /etc/samba/smb.config.backup
than remove the file to let the provisioning take over the configuration
Code:
sudo rm -rf /etc/samba/smb.config
Than follow the instructions:
Code:
sudo samba-tool domain provision --use-rfc2307 --interactive
(Google samba reprovision because I am not allowed to post the url to the perfect tutorial)
I hope this safes time for you to solve your problem, too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba issues glennbtn Linux - Newbie 2 07-12-2010 05:10 AM
Samba issues mrkow Ubuntu 2 04-02-2008 11:48 AM
samba issues bloodyscript Linux - Server 10 07-23-2007 06:24 PM
Samba Issues jetfanroy Linux - Newbie 10 07-29-2003 08:25 AM
Samba issues chris Linux - General 4 11-22-2001 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration