<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://falz.net/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_auth_to_LDAP</id>
	<title>FreeBSD auth to LDAP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://falz.net/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_auth_to_LDAP"/>
	<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=FreeBSD_auth_to_LDAP&amp;action=history"/>
	<updated>2026-05-24T17:47:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://falz.net/index.php?title=FreeBSD_auth_to_LDAP&amp;diff=130&amp;oldid=prev</id>
		<title>Falz at 19:12, 9 July 2014</title>
		<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=FreeBSD_auth_to_LDAP&amp;diff=130&amp;oldid=prev"/>
		<updated>2014-07-09T19:12:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:12, 9 July 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Unix]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How to have a FreeBSD Server auth to an OpenLDAP server. This was originally documented [http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html here] but is long gone. The LDAP Server being used is administered with [http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page PhpLDAPAdmin].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How to have a FreeBSD Server auth to an OpenLDAP server. This was originally documented [http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html here] but is long gone. The LDAP Server being used is administered with [http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page PhpLDAPAdmin].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Falz</name></author>
	</entry>
	<entry>
		<id>http://falz.net/index.php?title=FreeBSD_auth_to_LDAP&amp;diff=17&amp;oldid=prev</id>
		<title>Falz: Created page with &quot;How to have a FreeBSD Server auth to an OpenLDAP server. This was originally documented [http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_min...&quot;</title>
		<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=FreeBSD_auth_to_LDAP&amp;diff=17&amp;oldid=prev"/>
		<updated>2014-07-09T15:05:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;How to have a FreeBSD Server auth to an OpenLDAP server. This was originally documented [http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_min...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;How to have a FreeBSD Server auth to an OpenLDAP server. This was originally documented [http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html here] but is long gone. The LDAP Server being used is administered with [http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page PhpLDAPAdmin].&lt;br /&gt;
&lt;br /&gt;
* Install &amp;#039;&amp;#039;&amp;#039;pam_ldap&amp;#039;&amp;#039;&amp;#039;, which will get &amp;#039;&amp;#039;&amp;#039;openldap-client&amp;#039;&amp;#039;&amp;#039; as a dependency. This should be fairly quick, on a 850mhz machine it was done in under 10 minutes: &lt;br /&gt;
 cd /usr/ports/security/pam_ldap/&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install &amp;#039;&amp;#039;&amp;#039;nss_ldap&amp;#039;&amp;#039;&amp;#039;, which should take about a minute: &lt;br /&gt;
 cd /usr/ports/net/nss_ldap/&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Create /usr/local/etc/ldap.conf: &lt;br /&gt;
 # LDAP client config&lt;br /&gt;
 host			ldap.something.net&lt;br /&gt;
 uri			ldap://ldap.something.net/&lt;br /&gt;
 base			dc=something,dc=net&lt;br /&gt;
 port			389&lt;br /&gt;
 binddn			uid=ldapclient$,ou=machines,ou=staff,dc=something,dc=net&lt;br /&gt;
 bindpw			&amp;#039;&amp;#039;&amp;lt;somepassword&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
 #timeout stuff&lt;br /&gt;
 timelimit		10&lt;br /&gt;
 bind_timelimit		5&lt;br /&gt;
 bind_policy		soft&lt;br /&gt;
 #nss/pam stuff&lt;br /&gt;
 nss_base_passwd		ou=staff,dc=something,dc=net&lt;br /&gt;
 nss_base_group		cn=tech,ou=groups,ou=staff,dc=something,dc=net&lt;br /&gt;
 pam_password		SSHA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Symlink this new conf to &amp;#039;&amp;#039;&amp;#039;nss_ldap.conf&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
 ln -s /usr/local/etc/ldap.conf /usr/local/etc/nss_ldap.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Edit &amp;#039;&amp;#039;&amp;#039;/etc/nsswitch.conf&amp;#039;&amp;#039;&amp;#039; (comment two lines, add two lines):&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039;group: compat&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;group: files ldap&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 group_compat: nis&lt;br /&gt;
 hosts: files dns&lt;br /&gt;
 networks: files&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039;passwd: compat&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;passwd: files ldap&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 passwd_compat: nis&lt;br /&gt;
 shells: files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Add a line to these files. Be sure to place it &amp;#039;&amp;#039;&amp;#039;above&amp;#039;&amp;#039;&amp;#039; all other uncommented lines!&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;/etc/pam.d/sshd&amp;#039;&amp;#039;&amp;#039; (ssh login)&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;/etc/pam.d/system&amp;#039;&amp;#039;&amp;#039; (local console login) &lt;br /&gt;
 auth		sufficient	/usr/local/lib/pam_ldap.so	no_warn try_first_pass&lt;/div&gt;</summary>
		<author><name>Falz</name></author>
	</entry>
</feed>