LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-08-2009, 12:41 PM   #1
boazs
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Question samba join to active directory


i am try to join ma box which is debian kernel 2.6.30-1-amd64
my smb.conf global section is
[global]
workgroup = SHATZ
realm = SHATZ.ORG.EDU
server string = %h server
security = ADS
obey pam restrictions = Yes
password server = shatzdc.shatz.org.edu
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d

when i use net ADS join i got
Failed to join domain: failed to find DC for domain SHATZ.ORG.EDU
any help would be appriciate
 
Old 08-08-2009, 02:45 PM   #2
mcolangelo
LQ Newbie
 
Registered: Jun 2009
Location: USA, WI
Distribution: Gentoo
Posts: 25

Rep: Reputation: 17
Could be a DNS issue and the SRV record for your server not getting resolved properly. Stupid question, but are you sure you're using the right realm name?

You could try specifying the AD server with:
Code:
net ads join -S SERVER -U <username>%<password>
 
Old 08-08-2009, 05:01 PM   #3
boazs
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
samba join to ad

trying
net ads join -S server -U user%password gave

failed to connect to AD: Cannot resolve network address for KDC in requested realm
but pinging the kdc work well
 
Old 08-09-2009, 06:06 PM   #4
mcolangelo
LQ Newbie
 
Registered: Jun 2009
Location: USA, WI
Distribution: Gentoo
Posts: 25

Rep: Reputation: 17
You could still be able to ping the server and have a DNS issue.

What did you use for SERVER in the command
net ads join -S SERVER -U <username>%<password>

To rule out any DNS issues you can check your srv records with
dig _ldap._tcp.DOMAIN.COM SRV
_kerberos._tcp.DOMAIN.COM. SRV
_ldap._tcp.dc._msdcs.DOMAIN.COM. SRV
_kerberos._tcp.dc._msdcs.DOMAIN.COM. SRV


Valid output would look something like
Code:
# dig @localhost _ldap._tcp.mydomain.dom SRV
;; QUESTION SECTION:
;_ldap._tcp.socnet.dom.		IN	SRV

;; ANSWER SECTION:
_ldap._tcp.mydomain.dom.	259200	IN	SRV	0 0 389 hostname.mydomain.dom.
Have you tried taking a look at something like http://wiki.samba.org/index.php/Samb...tive_Directory double checking that all your other requirements have been met?
 
Old 08-09-2009, 09:53 PM   #5
boazs
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
samba and ad

thanks it is nowwork was aspelling mistake
 
  


Reply


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
join samba server with windows active directory suchit007 Linux - Newbie 1 05-27-2009 10:57 AM
samba: Join user of Active Directory to local group Felipe Linux - Software 2 02-23-2009 02:57 AM
Join XP to Active Directory shahgols Linux - Networking 7 10-04-2008 01:13 AM
Join Samba to Active Directory Domain xudonw1 Debian 0 05-04-2007 08:17 AM
Samba Client ---join---> Active Directory stakhous Linux - Networking 1 11-06-2006 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration