LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2004, 08:51 AM   #1
mozgun
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Unhappy Join NT Domain and Samba Netbios Name problem


Hi,

I'm using Mandrake 10 CE, Samba 3.02a, Winbind. I have got a strange problem.
My linux machines can not join to our NT 4.0 domain when I define a netbios name which includes "I" or "i".


How can I solve this problem.
Any answers ....

Thanks a lot.


Domain Name = DOMAIN1
Netbios Name = LINUX1
-------------------------------------------------------------------------------------------
When the netbios name is "LINUX" the rpc join returns error messages


# net rpc join -U admin%password
[2004/04/28 16:36:11, 2] lib/interface.c:add_interface(79)
added interface ip=10.13.0.200 bcast=10.13.255.255 nmask=255.255.0.0
[2004/04/28 16:36:11, 2] lib/util_sock.cpen_socket_out(746)
error connecting to 10.201.0.204:445 (Connection refused)
[2004/04/28 16:36:11, 1] utils/net_rpc.c:run_rpc_command(138)
rpc command function failed! (NT_STATUS_ACCESS_DENIED)
[2004/04/28 16:36:11, 2] lib/util_sock.cpen_socket_out(746)
error connecting to 10.201.0.204:445 (Connection refused)
[2004/04/28 16:36:11, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(326)
Error domain join verification (reused connection): NT_STATUS_ACCESS_DENIED

Unable to join domain DOMAIN1.
[2004/04/28 16:36:11, 2] utils/net.c:main(767)
return code = 1
-------------------------------------------------------------------------------------------
Domain Name = DOMAIN1
Netbios Name = LNUX1
-------------------------------------------------------------------------------------------
It can be join to NT domain when the netbios name is "LNUX". And the result of the rpc

# net rpc -d 2 join -U admin%password
[2004/04/28 16:41:00, 2] lib/interface.c:add_interface(79)
added interface ip=10.13.0.200 bcast=10.13.255.255 nmask=255.255.0.0
[2004/04/28 16:41:00, 2] lib/util_sock.cpen_socket_out(746)
error connecting to 10.201.0.204:445 (Connection refused)
[2004/04/28 16:41:00, 1] utils/net_rpc.c:run_rpc_command(138)
rpc command function failed! (NT_STATUS_ACCESS_DENIED)
[2004/04/28 16:41:00, 2] lib/util_sock.cpen_socket_out(746)
error connecting to 10.201.0.204:445 (Connection refused)
[2004/04/28 16:41:00, 2] lib/util_sock.cpen_socket_out(746)
error connecting to 10.201.0.204:445 (Connection refused)
Joined domain DOMAIN1.
[2004/04/28 16:41:00, 2] utils/net.c:main(767)
return code = 0


--------------------------------------------------------------------------------------------




Here is my smb.conf file

[global]
workgroup = DOMAIN1
netbios name = LINUX1
server string = File Server - %v
log file = /var/log/samba/log.%m
max log size = 50
security = domain
password server = *
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
winbind enable local accounts = yes
template homedir = /home/%D/%U
obey pam restrictions = yes
template shell = /bin/bash
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
idmap uid = 10000-20000
idmap gid = 10000-20000
wins server = 10.201.0.201
dns proxy = no

#============================ Share Definitions ==============================
[homes]
comment = User Homes
browseable = no
writable = yes

[public]
comment = Public Stuff
path = /home/samba/public
public = yes
writable = yes
write list = @"Domain Admins"
vfs object = /usr/lib/samba/vfs/audit.so

#---------------------------------------------------------------------------------
 
Old 05-26-2004, 08:56 AM   #2
pauljtester
LQ Newbie
 
Registered: Apr 2004
Posts: 28

Rep: Reputation: 15
Maybe you got this figured out already, but here's a excerpt from the docs...

<snip>
Join the Samba Server to the PDC Domain
Enter the following command to make the Samba server join the PDC domain, where DOMAIN is the name of your Windows domain and Administrator is a domain user who has administrative privileges in the domain.

root# /usr/local/samba/bin/net rpc join -S PDC -U Administrator
</snip>

Are you forgetting to add the PDC name in the net join command?

HTH,
p
 
Old 05-26-2004, 10:50 AM   #3
mfdoom
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
pauljtester,

That did the trick on my end! (I was using an outdated command)

Thanks again!
 
Old 06-24-2004, 11:57 PM   #4
linux_pioneer
Member
 
Registered: May 2003
Distribution: Solaris 10, Solaris 8.0, Fedora Core 3
Posts: 203

Rep: Reputation: 30
I'm also having trouble joining a nt domain from my fedora box running samba. When I use the command: net rpc join domainserver -U user
I get the following error

param/params.c:OpenConfFile(532)
params.c:OpenConfFile() - Unable to open configuration file "domainserver":
No such file or directory

Unable to find a suitable server

Unable to find a suitable server

i can ping my pdc. what does this mean?
 
Old 07-29-2004, 11:25 AM   #5
pauljtester
LQ Newbie
 
Registered: Apr 2004
Posts: 28

Rep: Reputation: 15
What does your smb.conf look like? What security setting are you using server, domain, user, etc? Is winbind playing nice? Check out this doc.

http://us2.samba.org/samba/docs/man/...html#id2573248

cheers,
paul
 
  


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
Samba - Cannot join domain m4rk Linux - Software 6 06-27-2007 08:40 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Cannot join Samba domain. codedv Linux - Networking 0 10-12-2004 05:33 PM
Can't join my Samba Domain subaruwrx Linux - Networking 53 09-30-2004 10:29 AM
join samba domain! egyptian Linux - Networking 1 07-29-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:35 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