<?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>stick&#039;s corner &#187; kerberos</title>
	<atom:link href="http://stick.gk2.sk/blog/tag/kerberos/feed/" rel="self" type="application/rss+xml" />
	<link>http://stick.gk2.sk</link>
	<description>Look at you, hacker. A pathetic creature of meat and bone. How can you challenge a perfect, immortal machine?</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:31:32 +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>useradd and passwd vs. Kerberos</title>
		<link>http://stick.gk2.sk/blog/2009/11/useradd-passwd-vs-kerberos/</link>
		<comments>http://stick.gk2.sk/blog/2009/11/useradd-passwd-vs-kerberos/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 00:20:25 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/?p=884</guid>
		<description><![CDATA[At work we use LDAP and Kerberos authentication for users. During the testing of openSUSE 11.2, me and my other two colleagues (mmarek and mseben) have encountered problem that one cannot change the local password of user added with useradd. Running passwd user jumps directly to setting krb5 password. This was reported as bnc#545724. It turned [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignleft size-full wp-image-885" style="margin-right: 8px;" title="Kerberos" src="http://stick.gk2.sk/blog/wp-content/uploads/2009/11/kerberos.png" alt="Kerberos" width="128" height="128" /><br />
At work we use <a href="http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol">LDAP</a> and <a href="http://en.wikipedia.org/wiki/Kerberos_(protocol)">Kerberos</a> authentication for users. During the testing of <a href="http://en.opensuse.org/OpenSUSE_11.2">openSUSE 11.2</a>, me and my other two colleagues (<a href="http://en.opensuse.org/User:Michal-m">mmarek</a> and mseben) have encountered problem that one cannot change the local password of user added with <code>useradd</code>. Running <code>passwd user</code> jumps directly to setting krb5 password. This was reported as <a href="https://bugzilla.novell.com/show_bug.cgi?id=545724">bnc#545724</a>.</p>
<p style="text-align: justify;">It turned out that this is caused by the line:</p>
<pre>password  [default=ignore success=1]  pam_succeed_if.so  uid &gt; 999  quiet</pre>
<p style="text-align: justify;">which is added to <code>/etc/pam.d/common-password-pc</code> by <code>pam-config</code> during the installation, when Kerberos is enabled.</p>
<p style="text-align: justify;">So the question is: How to add local users with local password (e.g. for testing purposes)? You can add so-called system-users by using <code>useradd -r username</code> (these will be given UID &lt; 1000 and thus will not be handled by Kerberos). There is a catch, though. You cannot login as this user, because it&#8217;s shell is set to <code>/bin/false</code> by default. You can change it in <code>/etc/passwd</code> or, more cleanly, specify the shell immediately when creating the user:</p>
<pre>useradd -r username -s /bin/bash</pre>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2009/11/useradd-passwd-vs-kerberos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
