Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-24-2007, 01:39 AM   #1
Registered: Jan 2004
Location: Almost Canada :-p
Posts: 34

Rep: Reputation: 15
Angry LDAP-Samba problem

Hi Folks,

I've worked for over three months to try and nail down this problem to no avail. Right now we have a server that will hopefully be used as a primary server for authentication and storage among other things. I'm having a problem with getting Samba to properly authenticate via LDAP. Logging in normally via SSH or FTP works like a breeze, however Samba just refuses to work at all.

First off, what are the benefits of allowing Samba to communicate directly with LDAP (if any)? Could an expandable setup be obtained by going through something like PAM for authentication in Samba? There are hundreds of articles out there on how to do it a hundred different ways, but none of them seem to work.

I would post the server config/logs but they are large enough that it'd make reading this post a chore.

Thanks in advance,
Old 05-25-2007, 05:15 PM   #2
Registered: Nov 2005
Location: Brisbane AU
Distribution: FC16
Posts: 51

Rep: Reputation: 17
I have an LDAP directory for the SAMBA account information only because I am running a MS Domain with a PDC and BDC located in different cities, connected by a VPN (openvpn).

For me that is the main advantage. I have not migrated to an ADS setup (waiting for SAMBA 4) and needed to have reasonable logon speeds at the second location. I also have the ldap replicated between both locations.

The SAMBA How guide that comes with samba list a few of the different requirements but the main one for a PDC and BDC was the use of an LDAP directory since the smbpasswd file or tdbsam was not replicated in samba between the two. Now it may be possible to use NFS to share the information but I don't think that there would be any db locking implemented and you may have problems.

Checkout for an example of the config files that I use.

Yes the bug is fixed. It turned out to be on the LDAP upgrade side.

Also the guide I use as the reference is "The Official SAMBA 3 HOWTO and reference guide available at The guide also has a good basic samba faultfinding section that should point you in the right direction. Also are you using XP or Vista on the clients? Or just using samba for *inx as well?

I am not sure about using PAM for samba and have not tried. When I found the part in the SAMBA how to about needing to use LDAP for the PDC and BDC I stopped looking at the rest.



ldap, samba

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-ldap problem activeq Linux - Software 1 04-14-2007 11:02 PM
ldap+samba problem plz help venki Linux - Newbie 2 02-17-2007 10:01 AM
Samba and LDAP problem MarioT Linux - Networking 3 01-31-2005 07:14 AM
Samba & LDAP problem barkers Linux - Networking 8 10-06-2004 04:18 AM
Samba PDC Problem or LDAP saavik Linux - Networking 2 05-05-2003 03:58 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:38 PM.

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