tms3 at tms3.com
2010-May-18 14:12 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
> > > I do not understand, I will have a hostname and NetBIOS name > different?Yes.> > > > So > > -- Domain = SAMBA > > it'll be my name NETBIOS, and > > -- Realm = TPI.DOMAINE.CH-SERVER > > will my machine name + my domain? > > Thank you > ________________________________ > De : tms3 at tms3.com [tms3 at tms3.com] > Date d'envoi : mardi 18 mai 2010 15:50 > ? : Viatte Fr?d?ric > Cc : Laurent BARRAILLE; samba at lists.samba.org > Objet : Re: RE : [Samba] Example of command ". / Setup / provision" > > > > SNIP > > How to know the NetBIOS name in Linux? > Linux does not care. Only Windows cares. > > > The name of my domain is: DOMAINE.CH > The name of my server: SERVEUR-TPI > The posix name of the server does not matter. Nor does the DNS name > as it can have more than one DNS name. You need to work with Samba as > a somewhat separate entity. It is simply easier to match names up for > us humans. So.... > > > If I put "-- realm = SERVEUR-TPI.DOMAINE.CH -- domain = DOMAINE.CH " > > Nope. See, the important thing is the "domain" name should be a > single simple short word. So the easiest bit would be: > > realm = SERVEUR-TPI.DOMAINE.CH -- domain =SERVEUR-TPI > > BUT!!!!!! your kerberos realm does NOT have to match the machine name > either! So we could forget the *nix name completely and just for > simplicity: > > --realm=SAMBA.DOMAINE.CH --domain=SAMBA > > > His able to walk? > > Thank you > > > ________________________________________ > De : samba-bounces at lists.samba.org [samba-bounces at lists.samba.org] de > la part de tms3 at tms3.com [tms3 at tms3.com] > Date d'envoi : mardi 18 mai 2010 15:11 > ? : Laurent BARRAILLE > Cc : samba at lists.samba.org > Objet : Re: [Samba] Example of command ". / Setup / provision" > > SNIP > > > > Because in the "HOWTO" is set "- realm = samdom.example.com - domain > SAMDOM" > > but what corresponds "SAMDOM" Because the domain is "example.com" no ? > > SAMDOM is the Windows domain. > This is a sub domain of the "example.com" domain > > Well, not really. SAMDOM is the NETBIOS name of the domain, which we > have to use the "way back" machine to Winblows NT4 to come to grips > with it. So, yes the domain IS example.com, and, if you want, you can > do this: > > realm = EXAMPLE.COM and have domain = EXAMPLE. > > It is also possible to have the domain = EX or TEST and the realm be > EXAMPLE.COM, though I'd not recommend it. > > For the most part it is a design issue. > > > > > Thanks > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Viatte Frédéric
2010-May-19 12:26 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
Because the realm of the HOWTO shows that it is necessary to use the complete name of the server it is false? I have put: - Realm=serveur-tpi.domaine.ch And - Domain=domaine.ch (I am to oblige to put it otherwise I cannot join any more the domain with a client) And afterward, I changed the name of NetBIOS in the file " smb.conf " and I put "Samba". Here is the named.conf which comes from the directory " / etc. / " Thank you ________________________________________ De : Michael Wood [esiotrot at gmail.com] Date d'envoi : mercredi 19 mai 2010 14:07 ? : Viatte Fr?d?ric Cc : samba at lists.samba.org Objet : Re: RE : [Samba] RE : RE : Example of command ". / Setup / provision" Hi 2010/5/19 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>:> -----Message d'origine----- > De : Viatte Fr?d?ric > Envoy? : mercredi, 19. mai 2010 11:58 > ? : 'Michael Wood' > Cc : tms3 at tms3.com; samba at lists.samba.org > Objet : RE: RE : [Samba] RE : RE : Example of command ". / Setup / provision" > > I solved this error, but I have another one now, here it is: > > Error occurred while starting named service. > Error: / usr / local / samba / private / named.conf: 6: unknown option 'zone' > > I tried to send you my file "named.conf" file "private" I do not know if you've received?It seems you are still using "SERVEUR-TPI.DOMAINE.CH" as your realm and DNS domain. Why not just "DOMAIN.CH"? Otherwise there seems to be nothing wrong with the named.conf you attached. What does your /etc/named.conf file look like? (On Ubuntu it's /etc/bind/named.conf instead of /etc/named.conf.) -- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-May-20 07:08 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
2010/5/19 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>:> I can not test now, I'll try tomorrow. you're sure if we put -- > domain=DOMAINE (without ".CH") his walk? because I try and it seems toThe --domain option refers to a Windows NT-style domain name and not a DNS domain. So it must not have a "." in it.> me that I could not join a domain.There must have been some other reason that you could not join the domain with "--domain=DOMAINE". for # include, I put in the> "option" just below "include.... / forwarders"! for the area in domaine.ch > ?". / private" I confirm you tomorrow! thank youThe #include of the .../private/named.conf must not be inside option {...}. That is why it was complaining about "zone". But if you have both the "zone domain.ch ..." and "#include .../private/named.conf" in the /etc/named.conf then they will probably conflict with each other. -- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-May-20 07:15 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
Hi 2010/5/20 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>:> Hello > > For my zone DOMAINE.CH, yes I have one in "/usr/local/samba/private/dns" ! It is called "domaine.ch.zone" > > And for # include "/usr/local/samba /private/named.conf" I put in "/usr/named.conf" in the "options" below "notify no"As mentioned in my previous e-mail, it won't work if you put the #include into "options". Put it at the bottom of the file where it says: # You can insert further zone records for your own domains below or create # single files in /etc/named.d/ and add the file names to # NAMED_CONF_INCLUDE_FILES. # See /usr/share/doc/packages/bind/README.SUSE for more details. Or you could follow the instructions in the above comment, but just including the #include here should work (as long as the contents of the file do not conflict with the other zones already defined in /etc/named.conf.)> -----Message d'origine----- > De?: Michael Wood [mailto:esiotrot at gmail.com] > Envoy??: mercredi, 19. mai 2010 17:49 > ??: Viatte Fr?d?ric > Cc?: samba at lists.samba.org > Objet?: Re: RE : RE : [Samba] Example of command ". / Setup / provision" > > 2010/5/19 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>: >> Because the realm of the HOWTO shows that it is necessary to use the complete name of the server it is false? > > No, the HOWTO does not have the server name in the realm. ?"samdom" is > not the server name. > >> I have put: >> >> - Realm=serveur-tpi.domaine.ch >> >> And >> >> - Domain=domaine.ch (I am to oblige to put it otherwise I cannot join any more the domain with a client) > > No. ?"--domain" must not have a "." in it. ?Use "--realm=domaine.ch > --domain=DOMAINE". > >> And afterward, I changed the name of NetBIOS in the file " smb.conf " and I put "Samba". > > I did not have to do that when I tested Samba4. ?I just used > "--realm=something.org.za --domain=SOMETHING" and the server's name > was kudu.something.org.za. > >> Here is the named.conf which comes from the directory " / etc. / " > > Do you have a DOMAIN.CH zone in addition to the one created by > provision in /usr/local/samba/private? ?Where did you put the #include > statement?-- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-May-20 07:38 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
2010/5/20 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>:> Ok, I solved the problem by changing my DNS zone because there was a conflict! Now I tried to do the tests, but without success! I read the file "message.log" and here is what I found when I restart my DNS: > > the working directory is not writable ( what folder ? ) > > zone domaine.ch/IN: loading from master file /usr/local/samba/private/dns/domaine.ch.zone failed: file not found > > But my file exists and is in the right place!Try this: * Move /usr/local/samba/private/named.conf to /etc/named.conf.samba4. * Move /usr/local/samba/private/dns/domaine.ch.zone to /var/lib/named/master (I think.) * Edit named.conf.samba4 and change the path to domaine.ch.zone to where you moved it. * Make sure /etc/named.conf points to the new location of named.conf.samba4. See if that works.> -----Message d'origine----- > De?: Michael Wood [mailto:esiotrot at gmail.com] > Envoy??: jeudi, 20. mai 2010 09:15 > ??: Viatte Fr?d?ric > Cc?: Samba > Objet?: Re: RE : RE : [Samba] Example of command ". / Setup / provision" > > Hi > > 2010/5/20 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>: >> Hello >> >> For my zone DOMAINE.CH, yes I have one in "/usr/local/samba/private/dns" ! It is called "domaine.ch.zone" >> >> And for # include "/usr/local/samba /private/named.conf" I put in "/usr/named.conf" in the "options" below "notify no" > > As mentioned in my previous e-mail, it won't work if you put the > #include into "options". ?Put it at the bottom of the file where it > says: > > # You can insert further zone records for your own domains below or create > # single files in /etc/named.d/ and add the file names to > # NAMED_CONF_INCLUDE_FILES. > # See /usr/share/doc/packages/bind/README.SUSE for more details. > > Or you could follow the instructions in the above comment, but just > including the #include here should work (as long as the contents of > the file do not conflict with the other zones already defined in > /etc/named.conf.) > >> -----Message d'origine----- >> De?: Michael Wood [mailto:esiotrot at gmail.com] >> Envoy??: mercredi, 19. mai 2010 17:49 >> ??: Viatte Fr?d?ric >> Cc?: samba at lists.samba.org >> Objet?: Re: RE : RE : [Samba] Example of command ". / Setup / provision" >> >> 2010/5/19 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>: >>> Because the realm of the HOWTO shows that it is necessary to use the complete name of the server it is false? >> >> No, the HOWTO does not have the server name in the realm. ?"samdom" is >> not the server name. >> >>> I have put: >>> >>> - Realm=serveur-tpi.domaine.ch >>> >>> And >>> >>> - Domain=domaine.ch (I am to oblige to put it otherwise I cannot join any more the domain with a client) >> >> No. ?"--domain" must not have a "." in it. ?Use "--realm=domaine.ch >> --domain=DOMAINE". >> >>> And afterward, I changed the name of NetBIOS in the file " smb.conf " and I put "Samba". >> >> I did not have to do that when I tested Samba4. ?I just used >> "--realm=something.org.za --domain=SOMETHING" and the server's name >> was kudu.something.org.za. >> >>> Here is the named.conf which comes from the directory " / etc. / " >> >> Do you have a DOMAIN.CH zone in addition to the one created by >> provision in /usr/local/samba/private? ?Where did you put the #include >> statement?-- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-May-20 07:41 UTC
[Samba] RE : RE : Example of command ". / Setup / provision"
2010/5/20 Viatte Fr?d?ric <Frederic.Viatte at rpn.ch>:> I forgot, when I execute: > > $ host -t SRV _ldap._tcp.DOMAINE.CH > > This is the error: > > Host _ldap._tcp.DOMAINE.CH.DOMAINE.CH not found: 2(SERVFAIL) > > In my resolv.conf I like this line: search DOMAINE.CHThat probably means it can't find DOMAINE.CH and so it looks for DOMAINE.CH.DOMAINE.CH. Make bind9 happy first and then try this again. Also try putting a "." at the end, like this: "host _ldap._tcp.domaine.ch." -- Michael Wood <esiotrot at gmail.com>