<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.skytech.dk/index.php?action=history&amp;feed=atom&amp;title=LDAP_client_-_Ubuntu</id>
	<title>LDAP client - Ubuntu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.skytech.dk/index.php?action=history&amp;feed=atom&amp;title=LDAP_client_-_Ubuntu"/>
	<link rel="alternate" type="text/html" href="https://wiki.skytech.dk/index.php?title=LDAP_client_-_Ubuntu&amp;action=history"/>
	<updated>2026-06-30T10:41:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://wiki.skytech.dk/index.php?title=LDAP_client_-_Ubuntu&amp;diff=1849&amp;oldid=prev</id>
		<title>Martin: Created page with &quot;Category:Linux  = Setting up a LDAP client on Ubuntu 12.04+ =  Shamelessly stolen and copied from http://askubuntu.com/questions/127389/how-to-configure-ubuntu-as-an-ldap-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.skytech.dk/index.php?title=LDAP_client_-_Ubuntu&amp;diff=1849&amp;oldid=prev"/>
		<updated>2012-09-27T08:25:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Linux&quot; title=&quot;Category:Linux&quot;&gt;Category:Linux&lt;/a&gt;  = Setting up a LDAP client on Ubuntu 12.04+ =  Shamelessly stolen and copied from http://askubuntu.com/questions/127389/how-to-configure-ubuntu-as-an-ldap-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Linux]]&lt;br /&gt;
&lt;br /&gt;
= Setting up a LDAP client on Ubuntu 12.04+ =&lt;br /&gt;
&lt;br /&gt;
Shamelessly stolen and copied from http://askubuntu.com/questions/127389/how-to-configure-ubuntu-as-an-ldap-client&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The contents of this post are based on this guide. It should work fine in 12.04.&lt;br /&gt;
&lt;br /&gt;
1) Issue the following command:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install ldap-utils libpam-ldap libnss-ldap nslcd&lt;br /&gt;
NOTE: During the installation of the above packages a dialog will pop up and ask about some LDAP configuration. Be sure to enter the correct values for your LDAP configuration.&lt;br /&gt;
&lt;br /&gt;
2) Edit /etc/nsswitch.conf (via sudo). Append &amp;quot;ldap&amp;quot; to these lines:&lt;br /&gt;
&lt;br /&gt;
#Original file looks like this &lt;br /&gt;
passwd: compat &lt;br /&gt;
group : compat  &lt;br /&gt;
shadow: compat &lt;br /&gt;
&lt;br /&gt;
#After appending &amp;quot;ldap&amp;quot; lines look like these&lt;br /&gt;
passwd: compat ldap&lt;br /&gt;
group : compat ldap  &lt;br /&gt;
shadow: compat ldap &lt;br /&gt;
3) Comment out the line rootbinddn, I&amp;#039;m not sure why we need to do that.&lt;br /&gt;
&lt;br /&gt;
4) Edit /etc/pam.d/login (via sudo) and paste:&lt;br /&gt;
&lt;br /&gt;
session required pam_mkhomedir.so skel=/etc/skel umask=0022 &lt;br /&gt;
5) Edit /etc/pam.d/lightdm (via sudo) and paste:&lt;br /&gt;
&lt;br /&gt;
session required pam_mkhomedir.so skel=/etc/skel umask=0022 &lt;br /&gt;
6) Issue this command:&lt;br /&gt;
&lt;br /&gt;
sudo update-rc.d nslcd enable&lt;br /&gt;
You should be able to log in as an LDAP user after a reboot.&lt;br /&gt;
&lt;br /&gt;
Likely problems and solutions:&lt;br /&gt;
&lt;br /&gt;
Logging in as an LDAP user takes a very long time (minutes): It&amp;#039;s very likely that nss-lap is having problems finding the user&amp;#039;s group. Make sure that the user is in a group recognized locally, or that the user is in a group defined in LDAP. Make sure that, if the group is defined in LDAP, that it&amp;#039;s a real POSIX group.&lt;br /&gt;
Always check the /var/log/auth.log log file. If you see &amp;quot;unable to contact ldap server&amp;quot;, check whether the LDAP server is reachable and the port is open.&lt;br /&gt;
Try to ping the LDAP server by name&lt;br /&gt;
Try to check whether the LDAP port is open:&lt;br /&gt;
LDAP can listen on different ports, but can usually be found on 389 and 636&lt;br /&gt;
You can check that a port is open by using telnet:&lt;br /&gt;
telnet 389 or telnet 636&lt;br /&gt;
If you see any characters on the console then the port is open and the LDAP server should be running.&lt;br /&gt;
If you see nothing or get an error message, either the LDAP server is not running or something (such as a firewall) is preventing the connection.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>