LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-03-2012, 11:35 AM   #1
r_ramp
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
samba: after joining the domain the server loose the domain controller


Hello,
I've a rhel6 server on a vmware structure.
samba rpm are;
samba-common-3.5.10-115.el6_2.x86_64
samba-3.5.10-115.el6_2.x86_64
samba-winbind-clients-3.5.10-115.el6_2.x86_64

smb.conf
[global]
workgroup = AAAA
server string = TSTArchive
security = DOMAIN
passdb backend = tdbsam
log level = 3
local master = No
ldap ssl = no
cups options = raw
short preserve case = No
dos filetimes = Yes
dos filetime resolution = Yes
unix extensions = no
wide links = yes

# disable printing
load printers = no
cups options = raw
printcap name = /etc/printcap
show add printer wizard = no
disable spoolss = yes

Network:
IP=10.13.16.22 NETMASK="255.255.254.0"
GATEWAY="10.13.16.1" (it is on a different vlan in rspect to the dc)

I successfully join the domain:
> net join -w AAAA -S domaincontroller -U networkadmin

domaincontroller network:
IP= 10.13.0.49 NETMASK="255.255.252.0"
GATEWAY=10.13.0.3

and all is running fine for a while. After some time I'm not able to have the authentication to the DC:
> net rpc testjoin
Unable to find a suitable server for domain AAAA
Join to domain 'AAAA' is not valid: NT_STATUS_UNSUCCESSFUL

Some one can help me to fix it?
thank you in advance
romano
 
Old 05-09-2012, 07:12 AM   #2
r_ramp
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
hello I found an answer,
since the samba server is located in a different subnet in respect to the domain controller the broadcat messages are blocked and the samba server could not authenticate any request for its resources.
The workaround consist to use the WINS service or lmhosts file, both to configure in smb.conf, I enabled lmhosts eg.
smb.conf:
workgroup = AAAA
server string = TESTArchive
security = DOMAIN
passdb backend = tdbsam
log level = 1
local master = No
ldap ssl = no
cups options = raw
case sensitive = yes
short preserve case = No
dos filetimes = Yes
dos filetime resolution = Yes
unix extensions = no
wide links = yes
name resolve order = lmhosts bcast wins hosts
encrypt passwords = yes

/etc/samba/lmhosts:
127.0.0.1 localhost
10.13.0.49 DomainController#20
10.13.0.49 AAAA#1b
10.13.0.49 AAAA#1c

bye
Romano
 
  


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
Joining Windows Server 2008 R2 to a Samba domain ... sankeny Linux - Server 0 10-21-2011 08:30 PM
Stop one profile from roaming in domain with samba domain controller aiurm Linux - Server 4 10-16-2008 06:12 AM
2003 .NET Server joining Samba Domain kofi Linux - Software 1 03-04-2004 02:20 PM
Joining Domain to SAMBA Server radixiz *BSD 2 12-07-2003 10:09 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration