Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-24-2005, 03:39 PM   #1
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Rep: Reputation: 30
Windows XP joining Samba 3 domain looks for LDAP in DNS


I am trying to setup a WIndows Domain controller using Samba. When I try to add a Windows XP Machine to the domain it says that it cannot find the SRV entry for the domain name.

The message from windows suggests that it is looking for an LDAP Server. BUt I have no ldap server. Only my samba server and my precious DNS and DHCP servers.

What have I done wrong? Obviously I missed something.

I followed "Domain Controller" at

If someone could help me out that would be great.



Everything from smb.conf except for shares:

workgroup =
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
#Samba Domain Controller
netbios name = pdc
passdb backend = tdbsam
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using pdbedit
logon script = scripts\logon.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path = \\%L\Profiles\%U
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-20000
idmap gid = 15000-20000
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
Old 02-24-2005, 03:40 PM   #2
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Original Poster
Rep: Reputation: 30
The message windows XP gives:

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate a domain controller for domain MYDOMAIN.NET:

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.MYDOMAIN.NET

Common causes of this error include the following:

- The DNS SRV record is not registered in DNS.

- One or more of the following zones do not include delegation to its child zone:

. (the root zone)

For information about correcting this problem, click Help.

Last edited by dlublink; 02-24-2005 at 03:52 PM.
Old 02-24-2005, 03:51 PM   #3
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Original Poster
Rep: Reputation: 30
Looks like I should be using WINS for this not DNS. I setup a WINS server

wins support = yes

and added an entry to dhcpd.conf

option netbios-name-servers;

restarted dhcpd, smb and nmb
and now it finds the domain.

I have an issue with username/password. But that can be easily fixed looking at the /var/log/samba/whateverthelogfileis

It worked after I removed the mappings file in /var/log/samba. It was causing some error:
[2005/02/24 16:06:56, 1] rpc_server/srv_netlog_nt.c:_net_sam_logon(756)
_net_sam_logon: user LUBLINK\dave has user sid S-1-5-21-4128833642-285588081-677358102-3002
but group sid S-1-5-21-3527597266-2057180883-4094728581-513.


(Note: I often reply to my own messages, I figure if I had this problem someone else will have it to. Just trying to help out )

Last edited by dlublink; 02-24-2005 at 04:13 PM.
Old 08-10-2005, 06:52 PM   #4
LQ Newbie
Registered: Mar 2004
Location: Milwaukee, Wi. USA
Distribution: Redhat 9
Posts: 12

Rep: Reputation: 0

I'm using an LDAP server and I have problems with joing a W2K3 machine into my samba domain. It fails due to the SRV record(s) not showing up in DNS. I thought about setting up a WINS server, but this would kill/conflict with the rest of the companies network WINS server. Any thoughts on why samba would not be getting the SRV records into the DNS automatically. Our various Linux and Windows machines auto register themselves in DNS and I'm just stuck on how/why the SRV records are not gotten in there for my samba domain. I have to be careful as the overall network infrastructure is in the company and is MS Centric and I just cannot break anything on the rest of the net or I'll have hell to pay if you know what I mean.

Thoughts appreciated... I'm trying to get a piolet samba domain working with some vmware Windows machines that I want to join my samba domain and the samba domain is using ldap for single signon auth. I started this config based on recent linux magazine article. It was a learing experience to setup, but now I'm up to the point of wanting to add a Win machine to the domain. It seems to be working okay otherwise and the samba logs look like its acting as a domain - it's just the darn SRV records not in DNS and I don;t have direct access to our DNS as IT would be hard to cooprerate...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Joining Samba 3.0 Linux machine to a Windows AD Domain markham82 Linux - Networking 1 10-08-2004 03:21 AM
Joining a Windows 2000 domain w/ Samba linux_pioneer Linux - Networking 4 11-24-2003 02:31 PM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM
samba and xp re-joining the domain manwe Linux - Networking 1 08-04-2003 08:44 PM
Samba - Joining Domain on Windows 2000/XP Vishi Linux - General 3 05-12-2003 02:13 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:10 AM.

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