LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2013, 09:38 AM   #1
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Rep: Reputation: Disabled
Unhappy How can we connect the samba Domain server w/ LDAP backend from Ubuntu client?


I already Setup Samba Domain Controller with LDAP Backend in Ubuntu 12.04 / 13:04
See more at: http://www.unixmen.com/setup-samba-d....P6UnTNp7.dpuf

In that tutorial shows how to join a windows client to samba domain and it works but how we can join the ubuntu client to samba domain like windows did?

From login system using the user accounts that created from the domain server?

Last edited by rjdbarsal; 08-02-2013 at 09:41 AM.
 
Old 08-03-2013, 07:47 AM   #2
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
The easiest way that I have found to do this is to set up the clients with libpam_ldapd. The Debian wiki has good instructions on this. It worked for me with Linux Mint 12 clients (authenticating against an Opensuse ldap/samba server) so it should be good for Ubuntu clients.

https://wiki.debian.org/LDAP/PAM

You might need to do a bit of research about pam in order to manage such details as home directory creation and/or mounting.
 
1 members found this post helpful.
Old 08-04-2013, 08:15 PM   #3
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks Sir.
I'll work this out...
Till then.
 
Old 08-05-2013, 03:37 AM   #4
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hello Sir Greenfuse,
May I know what are the steps on how to setting-up or configured this one successfully?
Because we want it to be successfully connected in less of time. When I edit on pam files if it is not successful correct, the unit after reboot will not go through but to hang up(just black screen with underscore on upper left).

Follow-up Q.
What did you use to join with the ldap/samba server? Is it likewise, net, net rpc?

Last edited by rjdbarsal; 08-05-2013 at 04:13 AM.
 
Old 08-06-2013, 04:12 AM   #5
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
It is not a matter of 'joining' the samba server with a linux client. It is a question of authenticating against the server. Pam is a set of modules that are used for authentication. When you have the correct module installed for pam - in this case it is libpam-ldapd - you then need to configure the settings in the files located in /etc/pam.d for authentication to occur. The usual way this works is when a user logs in to the linux client, the desktop manager (such as GDM) will check the name and password with pam, which checks with the samba/ldap server.

The home page of libpam-ldapd (formerly named nss-pam-ldapd) http://arthurdejong.org/nss-pam-ldapd/setup explains how to configure the necessary files. The main ones are
/etc/nslcd.conf which specifies the details of the ldap server.
/etc/nsswitch.conf which specifies the name service switches.
files in /etc/pam.d - common-session, common-account, common-auth, common-password (Everywhere that pam_unix is called you should also call pam_ldap.)

Note - I had problems when trying to use samba shares as home directories. I eventually used NFS shares for this but if you have a mixed Windows and Linux environment you might need to design your own solution.
 
1 members found this post helpful.
Old 08-07-2013, 09:47 AM   #6
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hello sir,
Thank you so much. It works! wew.
 
  


Reply



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
LXer: Setup Samba Domain Controller with LDAP backend in Ubuntu 13.04 LXer Syndicated Linux News 0 05-27-2013 10:11 AM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 08:17 AM
Configuring Ubuntu 9.10 as client to use Samba/LDAP server for user authentication Xyan Ubuntu 1 01-24-2010 01:22 AM
LXer: CentOS 5.x Samba Domain Controller With LDAP Backend LXer Syndicated Linux News 0 11-09-2009 10:30 AM
Joining an Ubuntu client to Samba LDAP domain kashifazizawan Linux - Server 1 11-15-2008 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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