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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-25-2014, 05:51 AM
|
#1
|
Member
Registered: Jan 2010
Posts: 82
Rep:
|
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
|
|
|
08-25-2014, 10:12 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728
|
Quote:
Originally Posted by yogesh_attarde
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???
|
|
|
09-04-2014, 11:41 PM
|
#3
|
Member
Registered: Jan 2010
Posts: 82
Original Poster
Rep:
|
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
|
|
|
09-05-2014, 09:01 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728
|
Quote:
Originally Posted by yogesh_attarde
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 08:44 PM.
|
|
|
All times are GMT -5. The time now is 10:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|