<?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>Alex's Adventures in CodeSpace &#187; ldap</title>
	<atom:link href="http://www.blogalex.com/archives/tag/ldap/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogalex.com</link>
	<description>Alejandro Guerrieri's Blog</description>
	<lastBuildDate>Wed, 10 Feb 2010 23:16:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PAM Authentication for Kannel</title>
		<link>http://www.blogalex.com/archives/206</link>
		<comments>http://www.blogalex.com/archives/206#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:56:48 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=206</guid>
		<description><![CDATA[Though kannel already has some pam functionality included, it&#8217;s far from optimal imho. As it is now, to use pam authentication you have to: 1. Configure with &#8211;enable-pam and compile. 2. Create an smsbox-user called &#8220;pam&#8221; with a dummy password. 3. Create a pam configuration file called &#8220;kannel&#8221; on /etc/pam.d/, with your pam settings. 4. [...]]]></description>
			<content:encoded><![CDATA[<p>Though <strong>kannel</strong> already has some <em>pam</em> functionality included, it&#8217;s far from optimal imho.</p>
<p>As it is now, to use <em>pam</em> authentication you have to:</p>
<p>1. Configure with <em>&#8211;enable-pam</em> and compile.<br />
2. Create an smsbox-user called &#8220;pam&#8221; with a dummy password.<br />
3. Create a <em>pam</em> configuration file called &#8220;kannel&#8221; on <em>/etc/pam.d/</em>, with your <em>pam</em> settings.<br />
4. <strong>Kannel</strong> will then use only <em>pam</em> for authentication, so you could use <em>LDAP</em>, <em>Radius</em> or whatever supported authentication modules you have configured on the box.</p>
<p>However:</p>
<p>* Other s<em>msbox-user</em>&#8216;s are disabled, only the &#8220;pam&#8221; user is allowed to authenticate.<br />
* All users would get logged as &#8220;pam&#8221;, so you cannot make settings per users of any kind.<br />
* Only one <em>pam</em> group is allowed.</p>
<p>After applying the patch, pam authentication gets managed with a special group <em>sendsms-pam-user</em>, which shares most of s<em>endsms-user</em> parameters, except for <em>username</em> and <em>password</em>, and adds the <em>acl</em> parameter instead.</p>
<blockquote><p>group         = sendsms-pam-user<br />
acl           = kannel<br />
&lt;other sendsms-user parameters&gt;</p></blockquote>
<p>* You can define as many groups as needed, pointing to different <em>pam</em> configuration files.<br />
* The <em>acl</em> parameter points to the pam module on <em>/etc/pam.d/</em> (&#8220;kannel&#8221; in this case, but could be anything you want).<br />
* Pam authentication is only attempted after trying the regular <em>sendsms-user</em> way, so you can have local users and <em>pam</em> users at the same time (local taking precedence).<br />
* Each <em>sendsms-pam-user</em> group will be logged separately, and you&#8217;ll also get info about the <em>pam</em> user making the call.</p>
<p>To use the patch:</p>
<p>1. Download the patch <a href="http://www.blogalex.com/wp-content/uploads/2009/06/kannel-pam.patch">here</a> and apply it.<br />
2. Run ./bootstrap.sh<br />
3. Run ./configure &#8211;enable-pam<br />
4. make and make install as usual.</p>
<p>As usual, please try it and let me know what you think.</p>
<p>-Alex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
