LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2014, 06:51 AM   #1
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Rep: Reputation: 1
idmap_ldap Samba as ldap Backend configuration


Hi All,

I have setup ldap server and is working fine. My home directories resides on different machines and I have setup auto-mounter so if I want to see my colleges home directory it can be mounted on my machine.

Now I wanted to configure it so that windows user can see his home directory once they gets authenticated from their local machines.

For example: I will login to my windows machines using local credentials then after this if I browse for \\yogesh or \\machinename\yogesh it will go to my home directory.

For this I found one article on
PHP Code:
http://www.samba.org/samba/docs/man/manpages/idmap_ldap.8.html 
I configured my smb.conf as below

Code:
[global]
#   workgroup = WINBANG
#       workgroup = WORKGROUP
        idmap config * : backend = tdb
        idmap config * : range = 1000-1999999

        idmap config * : backend = ldap
        idmap config * : range = 2000000-2999999
        idmap config * : read only = yes
        idmap config * : ldap_url = ldap://ldap.xx.xx.com
        idmap config * : ldap_base_dn = ou=idmap,dc=xx,dc=xx,dc=com
        idmap config * : ldap_user_dn = cn=idmap_admin,dc=xx,dc=xx,dc=com
But still I am not able to browse my home directory.

Could you please let me know do I need to do more configuration?


Regards,
Yogesh
 
Old 08-25-2014, 11:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,084

Rep: Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889
Quote:
Originally Posted by yogesh_attarde View Post
Hi All,
I have setup ldap server and is working fine. My home directories resides on different machines and I have setup auto-mounter so if I want to see my colleges home directory it can be mounted on my machine. Now I wanted to configure it so that windows user can see his home directory once they gets authenticated from their local machines. For example: I will login to my windows machines using local credentials then after this if I browse for \\yogesh or \\machinename\yogesh it will go to my home directory.

For this I found one article on
PHP Code:
http://www.samba.org/samba/docs/man/manpages/idmap_ldap.8.html 
I configured my smb.conf as below
Code:
[global]
#   workgroup = WINBANG
#       workgroup = WORKGROUP
        idmap config * : backend = tdb
        idmap config * : range = 1000-1999999

        idmap config * : backend = ldap
        idmap config * : range = 2000000-2999999
        idmap config * : read only = yes
        idmap config * : ldap_url = ldap://ldap.xx.xx.com
        idmap config * : ldap_base_dn = ou=idmap,dc=xx,dc=xx,dc=com
        idmap config * : ldap_user_dn = cn=idmap_admin,dc=xx,dc=xx,dc=com
But still I am not able to browse my home directory. Could you please let me know do I need to do more configuration?
Aside from double-posting this question, you don't provide ANY of the details we'd need to be able to help you. You don't tell us what version/distro of Linux, version of Samba, or what you mean by "not able to browse". Without any information from any of the log files, details about what you're running, or what error(s)/message(s) you're seeing, there's no way for us to even GUESS as to what could be wrong.

You seem to have only copied/pasted the examples from the Samba page...did you read and understand them??? Read about what the different variables do? See anything in your LDAP logs when someone tries to log in? Getting ANY results at all???
 
Old 09-05-2014, 12:41 AM   #3
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Hey TB0ne thanks for the reply.

I am using samba-3.6 on CentOS 6.3 OS. I am not getting any log messages.


Regards,
Yogesh
 
Old 09-05-2014, 10:01 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,084

Rep: Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889Reputation: 5889
Quote:
Originally Posted by yogesh_attarde View Post
Hey TB0ne thanks for the reply.

I am using samba-3.6 on CentOS 6.3 OS. I am not getting any log messages.
And you're still not answering the other questions, and unless you have ANY log messages, there's nothing anyone can help you with. Again:
  • What you mean by "not able to browse".
  • Information from the log files regarding Samba, LDAP, or authentication logs. Without any information about what error(s)/message(s) you're seeing, there's no way for us to even GUESS as to what could be wrong.
  • You seem to have only copied/pasted the examples from the Samba page...did you read and understand them???
  • Read about what the different variables do?
  • See anything in your LDAP logs when someone tries to log in?
  • Getting ANY results at all???
You double-posted the question, and with zero information, there's nothing anyone, anywhere, can help you with.

Last edited by TB0ne; 09-05-2014 at 09:44 PM.
 
  


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
[SOLVED] How can we connect the samba Domain server w/ LDAP backend from Ubuntu client? rjdbarsal Linux - Networking 5 08-07-2013 10:47 AM
LXer: Setup Samba Domain Controller with LDAP backend in Ubuntu 13.04 LXer Syndicated Linux News 0 05-27-2013 11:11 AM
Problem in Centos 5.X SAMBA PDC w/ LDAP backend Linux_Loozer Linux - Server 1 06-09-2011 04:07 AM
LXer: CentOS 5.x Samba Domain Controller With LDAP Backend LXer Syndicated Linux News 0 11-09-2009 11:30 AM
Samba failing with LDAP backend wslyhbb Linux - Networking 0 02-04-2006 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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