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 05-01-2021, 11:03 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post A question about Samba and Active Directory.


Hello,
According to the https://wiki.samba.org/index.php/Set...ain_Controller tutorial, I want to launch a Samba DC.
I want to create a domain with the name "MYDOMAIN" and in below example, why "--realm" has a "SAMDOM" prefix?
Code:
# samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=SAMDOM.EXAMPLE.COM --domain=SAMDOM --adminpass=Passw0rd
Is "SAMDOM" the name of the DC server?

Thank you.

Last edited by n00b_noob; 05-02-2021 at 04:01 AM.
 
Old 05-02-2021, 09:00 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by n00b_noob View Post
Hello,
According to the https://wiki.samba.org/index.php/Set...ain_Controller tutorial, I want to launch a Samba DC.
I want to create a domain with the name "MYDOMAIN" and in below example, why "--realm" has a "SAMDOM" prefix?
Code:
# samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=SAMDOM.EXAMPLE.COM --domain=SAMDOM --adminpass=Passw0rd
Is "SAMDOM" the name of the DC server?

Thank you.
No, at least not as I understand it. If I am correct: in the example SAMDOM is the name of the domain, and SAMDOM.EXAMPLE.COM the name of the kerberos realm therein.
 
1 members found this post helpful.
Old 05-02-2021, 09:13 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,862

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
the name of the DC server would be something like: DC1.SAMDOM.EXAMPLE.COM.
As it was explained on that page:
Quote:
Domain: NetBIOS domain name (Workgroup). This can be anything, but it must be one word, not longer than 15 characters and not containing a dot. It is recommended to use the first part of the AD DNS domain. For example: samdom. Do not use the computers short hostname.
 
Old 05-06-2021, 12:04 PM   #4
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
No, at least not as I understand it. If I am correct: in the example SAMDOM is the name of the domain, and SAMDOM.EXAMPLE.COM the name of the kerberos realm therein.
Thanks.
Why "--realm" has a prefix?
What happened if I use "--realm=EXAMPLE.COM --domain=SAMDOM"?
 
Old 05-06-2021, 01:21 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by n00b_noob View Post
Thanks.
Why "--realm" has a prefix?
What happened if I use "--realm=EXAMPLE.COM --domain=SAMDOM"?
I cannot answer that. I know that KERBEROS was an FOSS project, and that Microsoft adopted parts of it, rewrote them (very slightly), and integrated them into the domain system. While there are little differences between the MS protocol and the more advanced FOSS KERBEROS they will always continue to communicate unless MS breaks the current domain system. The version MS pulled from is now OLD, and the communication between the two is a little odd. I have NOT researched at the SAMBA site or discussed the communication with the developers.

One thing to keep in mind is that the RHELM is NOT the DOMAIN. The two interact,and that interaction is critical. But they started out way back when (and somewhat continue on the SAMBA side) as different things that COULD be used together. It is important to set each up just right to make sure that they DO work together, because they are integrated on the Microsoft side and breaking one breaks both.

I think that many of the HOW-TO documents and tutorials do not make the difference, and interaction, clear enough. It would be easier to make everything work if the user understood them better individually first, then learned how to make them agree.

If you decide to run tests of that I recommend you do so on a test machine where you do not care greatly if your break the membership and authentication totally.
 
Old 05-14-2021, 09:50 AM   #6
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I cannot answer that. I know that KERBEROS was an FOSS project, and that Microsoft adopted parts of it, rewrote them (very slightly), and integrated them into the domain system. While there are little differences between the MS protocol and the more advanced FOSS KERBEROS they will always continue to communicate unless MS breaks the current domain system. The version MS pulled from is now OLD, and the communication between the two is a little odd. I have NOT researched at the SAMBA site or discussed the communication with the developers.

One thing to keep in mind is that the RHELM is NOT the DOMAIN. The two interact,and that interaction is critical. But they started out way back when (and somewhat continue on the SAMBA side) as different things that COULD be used together. It is important to set each up just right to make sure that they DO work together, because they are integrated on the Microsoft side and breaking one breaks both.

I think that many of the HOW-TO documents and tutorials do not make the difference, and interaction, clear enough. It would be easier to make everything work if the user understood them better individually first, then learned how to make them agree.

If you decide to run tests of that I recommend you do so on a test machine where you do not care greatly if your break the membership and authentication totally.
Thank you.
How can I find the correct answer?
 
Old 05-14-2021, 10:13 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by n00b_noob View Post
Thank you.
How can I find the correct answer?
I would start with the SAMBA group web sites, documentation, WIKI, and forums. Those are the developer domains where you can run into the people who know ALL of it.

Start with https://wiki.samba.org
and https://www.samba.org

Last edited by wpeckham; 05-14-2021 at 10:15 AM.
 
1 members found this post helpful.
Old 05-20-2021, 12:11 AM   #8
turbocloudhosting
LQ Newbie
 
Registered: May 2021
Location: Usa
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
No, at least not as I understand it. If I am correct: in the example SAMDOM is the name of the domain, and SAMDOM.EXAMPLE.COM the name of the kerberos realm therein.
Thanks but not working. any another solution.
 
  


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
LXer: How to build an active-active-active cluster with RHEL 8 and Percona MySQL LXer Syndicated Linux News 0 04-22-2021 11:54 AM
how to join ubnutu system with active directory also login into active directory user mani25288 Linux - Server 2 07-10-2017 09:56 AM
Samba and Active Directory question(s) custangro Linux - Enterprise 2 02-23-2007 09:59 AM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM

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

All times are GMT -5. The time now is 08:39 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