[Samba] Error connecting WinXP client to Samba PDC: DNS name does not exist / RCODE_NAME_ERROR

Gaiseric Vandal gaiseric.vandal at gmail.com
Thu Nov 5 08:51:04 MST 2009


Do you have NBT (netbios over tcp) disabled in XP?   That would prevent 
it joining an "NT4" type domain.
Is nmbd running on your samba server?

SRV DNS records shd only be relevant for Active Domain DC's.    It 
wouldn't hurt to add it to your DNS server.







On 11/05/09 10:24, Christian Geiger wrote:
> Hi!
>
> I so far succeeded in setting up a Samba NT4 DC with OpenLDAP backend. 
> Unfortunately I get the following error message connecting a Windows 
> XP client to the domain (translated from german):
>
> [...]
> The error was: "DNS name does not exist."
> (error code 0x0000232B RCODE_NAME_ERROR)
>
> The query was for the SRV record for _ldap._tcp.dc._msdcs.lohrmann.de
> [...]
>
> This is surely due to a problem in the name resolution. I therefore 
> configured the Samba server as a WINS server and checked that it is 
> the only one on the net. The WinXP client has been told to use this as 
> its WINS server and has additionaly been supplied with entries in the 
> hosts and lmhosts configuration files (step by step, always testing in 
> between). Unfortunately, this changed nothing. :(
>
> Unsucessfully seeking for a solution on the web for quite a time now I 
> would be very grateful if someone could help me!
>
> Find below my smb.conf, the hosts and lmhosts file from the WinXP 
> client as well as the console ouput showing some NetBIOS information 
> of client (emco-test) and server (domain-controller).
>
> Thank you very much in advance! :)
>
> Chris
>
> --------
>
> smb.conf:
>
> [global]
>
>    log level = 2
>    wins support = yes
>    netbios name = domain-controller
>
>    workgroup = LOHRMANN.DE
>    domain logons = yes
>    domain master = yes
>    local master = yes
>    preferred master = yes
>    os level = 65
>
>    passdb backend = ldapsam
>    ldap admin dn = cn=samba,dc=lohrmann,dc=de
>    ldap suffix = dc=lohrmann,dc=de
>    ldap passwd sync = yes
>    ldap machine suffix = ou=machines
>    ldap user suffix = ou=users
>    ldap group suffix = ou=groups
>    ldap idmap suffix = ou=idmaps
>    ldap ssl = no
>    idmap backend = ldap
>    idmap alloc backend = ldap
>    idmap alloc config:ldap_base_dn = ou=idmaps,dc=lohrmann,dc=de
>    idmap alloc config:ldap_user_dn = cn=samba,dc=lohrmann,dc=de
>    idmap alloc config:ldap_url = ldap://ldap.lohrmann.de
>    idmap uid = 10000-20000
>    idmap gid = 10000-20000
>
>    ldapsam:trusted = yes
>    ldapsam:editposix = yes
>
>    logon drive = H:
>
> [homes]
>    comment = Users Home Directories
>    valid users = %S
>    writeable = yes
>
> [netlogon]
>    comment = Network Logon Service
>    path = /var/lib/samba/netlogon
>
> [printers]
>    comment = All Printers
>    browseable = no
>    path = /var/spool/samba
>    printable = yes
>    guest ok = no
>    read only = yes
>    create mask = 0700
>
> [print$]
>    comment = Printer Drivers
>    path = /var/lib/samba/printers
>    browseable = yes
>    read only = yes
>    guest ok = no
>
>
> hosts:
>
> 127.0.0.1       localhost
> 192.168.182.3    lohrmann.de
> 192.168.182.3    domain-controller.lohrmann.de
>
>
> lmhosts:
>
> 192.168.182.3 domain-controller #PRE
>
>
> console output client:
>
> C:\Dokumente und Einstellungen\Administrator>nbtstat -c
>
> LAN-Verbindung:
> Knoten-IP-Adresse: [192.168.182.187] Bereichskennung: []
>
>                   NetBIOS-Remotecache-Namentabelle
>
>         Name              Typ        Hostadresse     Dauer [Sek.]
>     -------------------------------------------------------------
>     LOHRMANN.DE <1C>  GRUPPE          192.168.182.3       510
>     DOMAIN-CONTROLL<03>  EINDEUTIG       192.168.182.3       -1
>     DOMAIN-CONTROLL<00>  EINDEUTIG       192.168.182.3       -1
>     DOMAIN-CONTROLL<20>  EINDEUTIG       192.168.182.3       -1
>
> C:\Dokumente und Einstellungen\Administrator>nbtstat -n
>
> LAN-Verbindung:
> Knoten-IP-Adresse: [192.168.182.187] Bereichskennung: []
>
>                 Lokale NetBIOS-Namentabelle
>
>        Name               Typ          Status
>     ---------------------------------------------
>     EMCO-TEST <00>  EINDEUTIG   Registriert
>     LOHRMANN <00>  GRUPPE      Registriert
>     EMCO-TEST <20>  EINDEUTIG   Registriert
>     LOHRMANN <1E>  GRUPPE      Registriert
>
>
> console output server:
>
> root at domain-controller:/var/log# nmblookup -R -U 192.168.182.3 
> lohrmann.de
> added interface eth0 ip=fe80::4049:31ff:fe69:67a%eth0 
> bcast=fe80::ffff:ffff:ffff
> :ffff%eth0 netmask=ffff:ffff:ffff:ffff::
> added interface eth0 ip=192.168.182.3 bcast=192.168.182.255 
> netmask=255.255.255.0
> querying lohrmann.de on 192.168.182.3
> Got a positive name query response from 192.168.182.3 ( 0.0.0.0 )
> 0.0.0.0 lohrmann.de<00>
>
> root at domain-controller:/var/log# nmblookup -R -U 192.168.182.3 
> domain-controller
> added interface eth0 ip=fe80::4049:31ff:fe69:67a%eth0 
> bcast=fe80::ffff:ffff:ffff
> :ffff%eth0 netmask=ffff:ffff:ffff:ffff::
> added interface eth0 ip=192.168.182.3 bcast=192.168.182.255 
> netmask=255.255.255.0
> querying domain-controller on 192.168.182.3
> Got a positive name query response from 192.168.182.3 ( 192.168.182.3 )
> 192.168.182.3 domain-controller<00>
>
> root at domain-controller:/var/log# nmblookup -R -U 192.168.182.3 emco-test
> added interface eth0 ip=fe80::4049:31ff:fe69:67a%eth0 
> bcast=fe80::ffff:ffff:ffff
> :ffff%eth0 netmask=ffff:ffff:ffff:ffff::
> added interface eth0 ip=192.168.182.3 bcast=192.168.182.255 
> netmask=255.255.255.0
> querying emco-test on 192.168.182.3
> Got a positive name query response from 192.168.182.3 ( 192.168.182.187 )
> 192.168.182.187 emco-test<00>



More information about the samba mailing list