<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bass &#039;s Blog (เขียน Blog แบบ บ่นๆ ตามฉบับ นายเบส) &#187; desktop</title>
	<atom:link href="http://bass.bns.in.th/tag/desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://bass.bns.in.th</link>
	<description>ที่เขียนเรื่องบ้าๆ บ่อๆ กับความรู้ ของนายเบส ($BASS = &#34;Bass&#34;; print &#34;$BASS = 9Bass&#34;;) ปล. สถาที่นี้เป็นที่ส่วนบุคคล โปรดใช้วิจรญาณในการรับชมด้วยครับ</description>
	<lastBuildDate>Thu, 11 Mar 2010 10:02:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 8.04 Hardy LDAP Client เอาไว้ทดลอง</title>
		<link>http://bass.bns.in.th/2009/12/11/ubuntu-8-04-hardy-ldap-client-%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b8%97%e0%b8%94%e0%b8%a5%e0%b8%ad%e0%b8%87/</link>
		<comments>http://bass.bns.in.th/2009/12/11/ubuntu-8-04-hardy-ldap-client-%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b8%97%e0%b8%94%e0%b8%a5%e0%b8%ad%e0%b8%87/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:50:37 +0000</pubDate>
		<dc:creator>bass</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[ldap client]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bass.bns.in.th/?p=410</guid>
		<description><![CDATA[
Ubuntu 7.10 was a nightmare when it came to setting up ldap, but 8.04 improves this process quite a bit.
We are going to set up a Hardy client on a desktop machine, which involves using NFS (for /home) and allowing all desktop users to do desktop tasks.
apt-get install libpam-ldap libnss-ldap nss-updatedb libnss-db nfs-common nscd
Answer the [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Ubuntu 7.10 was a nightmare when it came to setting up ldap, but 8.04 improves this process quite a bit.</p>
<p>We are going to set up a Hardy client on a desktop machine, which involves using NFS (for /home) and allowing all desktop users to do desktop tasks.</p>
<p style="padding-left: 30px">apt-get install libpam-ldap libnss-ldap nss-updatedb libnss-db nfs-common nscd</p>
<p>Answer the questions; unlike Debian they should actually be put in the configuration file.</p>
<p>Make sure to transfer over your certifiate if you use SSL. I like to use /etc/ldap/ssl</p>
<p>Edit /etc/ldap.conf (which both libnss and libpam use).</p>
<p style="padding-left: 30px">host 192.168.1.1<br />
base dc=example,dc=com</p>
<p style="padding-left: 30px">#This is important! Don’t use ldap:///192.168.1.1<br />
uri ldap://example.com/<br />
ldap_version 3<br />
rootbinddn cn=admin,dc=example,dc=com<br />
port 389<br />
<strong>bind_policy soft</strong><br />
pam_password crypt<br />
<strong>ssl start_tls<br />
tls_checkpeer no<br />
</strong>tls_cacertfile /etc/ldap/ssl/cert.pem<br />
nss_initgroups_ignoreusers avahi,avahi-autoipd,backup,bin,daemon,dhcp,games,gdm,gnats,haldaemon,hplip,irc,klog,libuuid,list,lp,mail,man,messagebus,news,polkituser,proxy,pulse,root,sync,sys,syslog,uucp,www-data</p>
<p>Now edit /etc/ldap/ldap.conf</p>
<p style="padding-left: 30px">BASE    dc=example,dc=com<br />
URI    ldap://example.com<br />
TLS_CACERT /etc/ldap/ssl/cert.pem<br />
TLS_REQCERT never</p>
<p>/etc/pam.d/common-account</p>
<p style="padding-left: 30px">account    sufficient   pam_ldap.so<br />
account    required     pam_unix.so</p>
<p>/etc/pam.d/common-auth</p>
<p style="padding-left: 30px">auth       sufficient   pam_ldap.so<br />
auth       required     pam_unix.so nullok_secure use_first_pass</p>
<p>/etc/pam.d/common-password</p>
<p style="padding-left: 30px">password   sufficient   pam_ldap.so<br />
password   required     pam_unix.so nullok obscure min=4 max=8 md5</p>
<p>/etc/pam.d/common-session</p>
<p style="padding-left: 30px">session    required     pam_unix.so<br />
session    required     pam_mkhomedir.so skel=/etc/skel/<br />
session    optional     pam_ldap.so</p>
<p>/etc/nsswitch.conf</p>
<p style="padding-left: 30px">passwd: files ldap</p>
<p style="padding-left: 30px">group: files ldap</p>
<p style="padding-left: 30px">shadow: files ldap</p>
<p style="padding-left: 30px">hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4<br />
networks:       files</p>
<p>protocols:      db files<br />
services:       db files<br />
ethers:         db files<br />
rpc:            db files</p>
<p>Now we want to make sure users are assigned to the correct groups when they log in, so add the following to <strong>/etc/security/groups.conf</strong></p>
<p style="padding-left: 30px">gdm;*;*;Al0000-9000;floppy,audio,cdrom,video,plugdev,scanner</p>
<p>Hal does not recognize this, however, so <strong>delete</strong> the following entries from <strong>/etc/dbus-1/system.d/hal.conf<br />
</strong></p>
<p style="padding-left: 30px">&lt;deny send_interface=”org.freedesktop.Hal.Device.Volume”/&gt;<br />
&lt;deny send_interface=”org.freedesktop.Hal.Device.Volume.Crypto”/&gt;</p>
<p>We need to edit <strong>/etc/pam.d/gdm</strong> for the groups.conf file to take effect, so add the following</p>
<p style="padding-left: 30px">auth optional pam_group.so</p>
<p>As root, run</p>
<p style="padding-left: 30px">nss_updatedb ldap</p>
<p>To mount /home over NFS, add the following to /etc/fstab</p>
<p style="padding-left: 30px">192.168.1.1:/home       /home   nfs defaults 0 0</p>
<p><strong>Refer : </strong><a href="http://linuxadministration.us/2008/05/17/ubuntu-804-hardy-ldap-client/">http://linuxadministration.us/2008/05/17/ubuntu-804-hardy-ldap-client/</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://bass.bns.in.th/2009/12/11/ubuntu-8-04-hardy-ldap-client-%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b8%97%e0%b8%94%e0%b8%a5%e0%b8%ad%e0%b8%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
