Download your favorite Linux distribution at LQ ISO.
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 06-05-2006, 12:19 PM   #1
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Rep: Reputation: 15
Samba config on CentOS 4.3


First, sorry if this is a bit long. I've been working on this for a few days and it is not working. I think that I am pretty close to a solution but I don't know what to do next. I posted this on the Samba list a few days ago but got not answers so I'm trying here.

What I want to do: I want to join my Linux box in my Windows domain so that the share on the Linux box will be accessible from our windows machines using our Windows logons. Simple, no?

But I'm having problems finding what is wrong with my setup. Running Samba 3.0.10-1.4E.6 on CentOS 4.3. PDC is AD on Windows 2003.

Samba and winbind services are running.

My smb.conf file:

# Samba config file created using SWAT
# from (
# Date: 2006/05/30 10:52:16

# Global parameters
workgroup = MONTREAL
interfaces = eth0
security = ADS
password server = castor-srvr1
wins server =

comment = Test
path = /
guest ok = yes
writeable = yes

I was able to join the domain with net ads join. I see the Linux box in AD. I also see it in my Network Places on Windows and the share called Main but it asks for a user/password when I try to access it and it doesn't work.

If I run net ads testjoin:
Join is OK

If I run net ads info:
LDAP server:
LDAP server name: castor-srvr1
Bind Path: dc=CASTORTECH,dc=COM
LDAP port: 389
Server time: Fri, 02 Jun 2006 14:04:26 GMT KDC server: Server time offset: -947

If I run net ads lookup:
Information for Domain Controller: castor-srvr1

Response Type: SAMLOGON
GUID: e7508a6a-4561-4440-b45c-9fd246d4c93c
Is a PDC: yes
Is a GC of the forest: yes
Is an LDAP server: yes
Supports DS: yes
Is running a KDC: yes
Is running time services: yes
Is the closest DC: yes
Is writable: yes
Has a hardware clock: no
Is a non-domain NC serviced by LDAP server: no
Domain Controller:
Pre-Win2k Domain: MONTREAL
Pre-Win2k Hostname: CASTOR-SRVR1
Site Name: Default-First-Site-Name
Site Name (2): Default-First-Site-Name
NT Version: 5
LMNT Token: ffff
LM20 Token: ffff

Net ads user also return a list of the domain's users.

Wbinfo -u and -g return a list of the domain's users and groups.

But if I run wbinfo -a simon%bvhdohgo I get:
plaintext password authentication failed error code was NT_STATUS_NO_SUCH_USER (0xc0000064) error messsage was: No such user Could not authenticate user simon%bvhdohgo with plaintext password challenge/response password authentication succeeded

I also tried with administrator but I got the same result.

But I ran wbinfo --set-auth-user=administrator%pass and get MONTREAL\administrator%pass if I run wbinfo --get-auth-user. So it is able to get the domain info. I don't get it.

And of course, getent passwd returns the local users, not the one from the domain.

Passwd, shadow and group are set as files winbind in /etc/nsswitch.conf.

Any idea what is wrong and what should I check next?

I'm getting desperate...

Old 06-06-2006, 07:19 AM   #2
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
I have written a small tutorial over at the arch wiki. I believe that the problem lies in the users (you don't have any "approved" users defined) and possibly that you don't have passwords encrypted (or so it would seem to me). Check out my walkthrough here:

Should you need some more help I will do my best

!EDIT! Although it is probably painfully obvious - ignore the first part about installing Samba through pacman
Old 06-06-2006, 10:32 AM   #3
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks for the reply and the link.

Unfortunaley, your walkthrough is not what I want to do. I want to use AD to authenticate, not the local Samba users.

I forgot to put encrypt passwords! Thanks for reminding me. Still didn't work tho.
Old 06-06-2006, 12:00 PM   #4
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
Sorry about that - admittedly I didn't read the complete thing. Not sure I can help with getting AD to do the authentication though - never much needed it...


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
CentOS - Samba Share Mithrilhall Linux - Newbie 1 05-18-2006 07:02 AM
Whats the differnce between Centos and CentOS? duffmckagan cAos 1 06-12-2005 12:23 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM

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