LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba 3.0.33 - problems accessing windows domain, and shares not visible (https://www.linuxquestions.org/questions/linux-networking-3/samba-3-0-33-problems-accessing-windows-domain-and-shares-not-visible-717366/)

vyruz18 04-07-2009 03:34 AM

Samba 3.0.33 - problems accessing windows domain, and shares not visible
 
Hi, I'm new here :)

I just got my Gentoo installation running, which was also the first time ever I compiled a kernel myself :D
It's running kernel 2.6.27-r8
I'm setting this virtual box (runs on VMware server 2.0) up to be used as a webserver (apache/php/mysql).

I've got samba 3.0.33 installed, but i'm having some difficulties getting everything running as I want it:
There are 2 main problems:
- I cannot get the box onto our windows domain (not active directory)
- I've got a share setup in the box, but this share is not visible to windows boxes

This is my smb.conf (changed domain for obvious reasons, but notice there are 2 dots in there...):

Code:

[global]
workgroup              = BLABLA.COMPANY.COM
netbios name            = GENTOO
security                = domain
encrypt passwords      = yes
password server        = *
unix password sync      = yes
log file                = /var/log/samba/log.%m
max log size            = 50

[data]
comment                = public share
path                    = /pub
guest ok                = yes
public                  = yes
browsable              = yes

First of all, when I try to join the domain with:
Code:

net join -w BLABLA.COMPANY.COM -U user1
I get:
Code:

Unable to find a suitable server
Unable to find a suitable server

When I do a wireshark trace on that box, I see that the Gentoo box
tries to reach the DC on hostname "BLABLA.COMPANY" (it's droppping the .COM!!) which obviously doesn't work.

So I use:
Code:

net join -w BLABLA.COMPANY.COM -S <our DC's IP> -U user1
Now the communication with the DC is working but I get:
Code:

[2009/04/07 09:40:44, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(367)
  Error in domain join verification (credential setup failed): NT_STATUS_INVALID_COMPUTER_NAME

This seems like a strange error since our domain is set up to auto-create computers if they try to connect, provided that the giver user has the appropriate rights (user1 does).

I read somewhere that you should emerge samba with the +kerberos option, however when I do:
Code:

emerve -pv samba
I get:
Code:

[ebuild  R  ] net-fs/samba-3.0.33  USE="acl cups ldap pam python readline winbind -ads -async -automount -caps -debug -doc -examples -fam -ipv6 -oav -quotas (-selinux) -swat -syslog" 0 kB
So apparently in my setup there is no kerberos option.
Even manually putting in the /etc/portage/package.use file like so:
Code:

net-fs/samba acl winbind kerberos -ipv6
Doesn't install the kerberos option...

Any Ideas??
It's probably something I'm looking over the head as this is my first Gentoo install (only experience with graphical installations so far...)

Edit : Removed question about not being able to access the share on my linux box from a windows box.
Changing security = from domain to share fixed this problem, so I probably need to get security = domain working first...

mostlyharmless 04-08-2009 02:08 PM

I presume you've looked at www.samba.org; I particularly recommend the By-Example user guide:
http://us6.samba.org/samba/docs/man/Samba-Guide/ (assuming you're in the us)
Welcome to LQ!


All times are GMT -5. The time now is 05:31 PM.