Samba4
Manu
manu.b2007 at gmail.com
Tue May 13 21:36:55 GMT 2008
Hi,
This looks like DSN configuration troubles, you need to setup and configure
Bind9 and test with nslookup, then you should be able to join your domain
Without errors :
I found these links that helped me :
http://www.linux16.net/node/316
see "Setting up DNS Server for samba 4 in Ubuntu 7.04"
On the other hand, there is no reverse DNS configuration, try also this link
: http://ubuntuforums.org/showthread.php?t=236093
Here are my config files in /etc/bind, my domain is "bureau.local",
My Samba server is "srvinfra" and I have 2 XP clients xpprosp2 and xpsp2fr.
named.conf.local
8<-------------------------------------------------------------------
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
// Forward zone
zone "bureau.local" {
type master;
file "/etc/bind/bureau.local.zone";
};
// Reverse zone
zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192.168.0";
};
8<-------------------------------------------------------------------
bureau.local.zone (generated by Samba, copied and manually edited)
8<-------------------------------------------------------------------
; -*- zone -*-
; generated by provision.pl
$ORIGIN bureau.local.
$TTL 1W
@ IN SOA @ hostmaster (
2008050714 ; serial
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
IN NS srvinfra
IN A 192.168.0.50
;
srvinfra IN A 192.168.0.50
b1c20c8b-fd3b-4a13-842e-0589bba869e6._msdcs IN CNAME srvinfra
xpprosp2 IN A 192.168.0.100
xpsp2fr IN A 192.168.0.101
;
; global catalog servers
_gc._tcp IN SRV 0 100 3268 srvinfra
_ldap._tcp.gc._msdcs IN SRV 0 100 389 srvinfra
_ldap._tcp.Default-First-Site-Name._sites.gc._msdcs IN SRV 0 100 389
srvinfra
;
; ldap servers
_ldap._tcp IN SRV 0 100 389 srvinfra
_ldap._tcp.dc._msdcs IN SRV 0 100 389 srvinfra
_ldap._tcp.pdc._msdcs IN SRV 0 100 389 srvinfra
_ldap._tcp.ce48573f-4b52-4d77-a8b8-54701e4e3c6a.domains._msdcs IN
SRV 0 100 389 srvinfra
_ldap._tcp.Default-First-Site-Name._sites.dc._msdcs IN SRV 0 100 389
srvinfra
;
; krb5 servers
_kerberos._tcp IN SRV 0 100 88 srvinfra
_kerberos._tcp.dc._msdcs IN SRV 0 100 88 srvinfra
_kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs IN SRV 0 100 88
srvinfra
_kerberos._udp IN SRV 0 100 88 srvinfra
; MIT kpasswd likes to lookup this name on password change
_kerberos-master._tcp IN SRV 0 100 88 srvinfra
_kerberos-master._udp IN SRV 0 100 88 srvinfra
;
; kpasswd
_kpasswd._tcp IN SRV 0 100 464 srvinfra
_kpasswd._udp IN SRV 0 100 464 srvinfra
;
; heimdal 'find realm for host' hack
_kerberos IN TXT BUREAU.LOCAL
8<-------------------------------------------------------------------
db.192.168.0 finally, the reverse DNS
8<-------------------------------------------------------------------
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA bureau.local. hostmaster.bureau.local. (
2008050917 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS srvinfra.
50 IN PTR srvinfra.bureau.local.
100 IN PTR xpprosp2.bureau.local.
101 IN PTR xpsp2fr.bureau.local.
8<-------------------------------------------------------------------
You need also to edit /etc/resolv.conf
This works under Ubuntu Server, you'll have to adapt to your system,
Good luck ;)
Bye,
Manu.
-----Message d'origine-----
De : samba-technical-bounces+manu.b2007=gmail.com at lists.samba.org
[mailto:samba-technical-bounces+manu.b2007=gmail.com at lists.samba.org] De la
part de zaphod at fsklaw.com
Envoyé : mardi 13 mai 2008 21:58
À : samba-technical at lists.samba.org
Objet : Samba4
My test server is:
FreeBSD testbox.fsklaw.com 7.0-RELEASE FreeBSD 7.0-RELEASE #1:
smb.conf:
[globals]
netbios name = testbox
workgroup = FSKLAW
realm = FSKLAW.COM
server role = domain controller
ntvfs handler = posix
[netlogon]
path = /home
read only = no
[open]
path = /home/test
read only = no
I can ping by host name. I can map a share.
However, WinXP gets an error saying can't find domain. Specifically:
T h e f o l l o w i n g e r r o r o c c u r r e d w h e n D N S
w a s q u e r i e d f o r t h e s e r v i c e l o c a t i o n
( S R V ) r e s o u r c e r e c o r d u s e d t o l o c a t e
a d o m a i n c o n t r o l l e r f o r d o m a i n f s k l a w
. c o m :
T h e e r r o r w a s : " D N S n a m e d o e s n o t e x i
s t . "
( e r r o r c o d e 0 x 0 0 0 0 2 3 2 B R C O D E _ N A M E _ E R R
O R )
T h e q u e r y w a s f o r t h e S R V r e c o r d f o r
_ l d a p . _ t c p . d c . _ m s d c s . f s k l a w . c o m
C o m m o n c a u s e s o f t h i s e r r o r i n c l u d e t
h e f o l l o w i n g :
- T h e D N S S R V r e c o r d i s n o t r e g i s t e r e
d i n D N S .
- O n e o r m o r e o f t h e f o l l o w i n g z o n e s
d o n o t i n c l u d e d e l e g a t i o n t o i t s c h i l
d z o n e :
f s k l a w . c o m
c o m
. ( t h e r o o t z o n e )
F o r i n f o r m a t i o n a b o u t c o r r e c t i n g t h i s
p r o b l e m , c l i c k H e l p .
I'm also curious, what's running the name service. I see nothing in
netstat listening on port 53.
Any pointers would be appreciated.
Cheers,
More information about the samba-technical
mailing list