LinuxQuestions.org
Help answer threads with 0 replies.
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 01-11-2011, 12:27 AM   #1
pawa
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 1
Post How to authenticate Samba server with another LDAP Server.


How to authenticate Samba server with another LDAP Server.
- I would like to set up samba server(CentOS5 samba version 3.0.33)for sharing directory. WindowXP client will can access to samba if username and password match with username and password of another existing LDAP server.

- I only know URL and DN of LDAP server and can not modify anything on LDAP Server.

- Can I config at samba server for requirment above.

thanks,
Pawa
 
Old 01-11-2011, 11:43 PM   #2
okovalchuk
LQ Newbie
 
Registered: Jan 2011
Distribution: Gentoo, CentOS/RHEL, W7, WinXP
Posts: 6

Rep: Reputation: 0
Assuming OpenLDAP and Samba3, you will need a user in your LDAP to bind with.
smb.conf:

security = user
passdb backend = ldapsam:ldap://ldap.foo.bar
ldap ssl = start tls
ldap suffix = dc=foo,dc=bar
ldap user suffix = ou=people
ldap group suffix = ou=group
ldap admin dn = uid=binduser,ou=people,dc=foo,dc=bar

password for binduser is stored in /etc/samba/secrets.tdb by running
# sudo 'smbpasswd -w passwd'

restart samba

Note: avoid spaces between comas sometimes they can cause trouble.

Cheers,
OK
 
Old 01-12-2011, 09:33 PM   #3
pawa
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by okovalchuk View Post
Assuming OpenLDAP and Samba3, you will need a user in your LDAP to bind with.
smb.conf:

security = user
passdb backend = ldapsam:ldap://ldap.foo.bar
ldap ssl = start tls
ldap suffix = dc=foo,dc=bar
ldap user suffix = ou=people
ldap group suffix = ou=group
ldap admin dn = uid=binduser,ou=people,dc=foo,dc=bar

password for binduser is stored in /etc/samba/secrets.tdb by running
# sudo 'smbpasswd -w passwd'

restart samba

Note: avoid spaces between comas sometimes they can cause trouble.

Cheers,
OK
Thanks for your reply. I try to following your suggestion. The result is when I login to samba server with window client via Windows Explorer--\\localhost\sharedirectory-- and use username and password in existing LDAP server. It can not access to samba but ask me for username and password again.

- I have modifiled smb.conf file only.
- How can I assign a permision in each user in ldap server to access to samba? Note that,it already have existing user in ldap server and I cannot modify any thing in ldap server. I would like to use only username and password in ldap server to authenticate samba server.

Thanks,
 
1 members found this post helpful.
  


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
user in remote LDAP server to be used to authenticate Local Linux server saravananp Linux - Newbie 5 01-11-2011 09:02 PM
creating a sychronized suse server with windows server with ldap samba chars098 Linux - Server 0 06-17-2008 08:22 PM
can LDAP server on linux authenticate win xp clients tataiermail Linux - Server 4 06-27-2007 09:49 PM
Install LDAP on SLES to authenticate with Novell Netware 6 and Windows 2003 server BigBugs Linux - Enterprise 0 10-26-2006 09:50 AM
PopTop (pptpd) server: authenticate against LDAP or User DB? aa_tango Linux - Networking 0 05-26-2004 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:18 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
Open Source Consulting | Domain Registration