<?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"
	>

<channel>
	<title>Cool Breeze</title>
	<atom:link href="http://www.kilbride.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kilbride.com</link>
	<description>Technology, Music, and Life from Venice Beach</description>
	<pubDate>Tue, 15 Apr 2008 04:04:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Quick NIS passwd to LDAP script</title>
		<link>http://www.kilbride.com/technology/quick-nis-passwd-to-ldap-script.html</link>
		<comments>http://www.kilbride.com/technology/quick-nis-passwd-to-ldap-script.html#comments</comments>
		<pubDate>Mon, 14 Apr 2008 19:22:26 +0000</pubDate>
		<dc:creator>cool breeze</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.kilbride.com/?p=3</guid>
		<description><![CDATA[I found this awk script while browsing around on the web. I was looking for a simple way to migrate an NIS+ passwd file to LDAP config and this is what I found. Unfortunately, when I went to cut and paste it into a script on my server, I realized it had a bunch of [...]]]></description>
			<content:encoded><![CDATA[<p>I found this awk script while browsing around on the web. I was looking for a simple way to migrate an NIS+ passwd file to LDAP config and <a href="http://m0j0.wordpress.com/2007/03/05/migrate-a-nis-password-map-to-ldap-fast">this is what I found</a>. Unfortunately, when I went to cut and paste it into a script on my server, I realized it had a bunch of smart quotes in it. So, here is a cleaned up version:</p>
<pre>#!/bin/bash

awk -F: '{
            print "dn: cn="$1",ou=People,dc=mydomain,dc=com"
            print "objectClass: top"
            print "objectClass: person"
            print "objectClass: organizationalPerson"
            print "objectClass: inetOrgPerson"
            print "objectClass: posixAccount"
            print "objectClass: inetLocalMailRecipient"
            print "objectClass: shadowAccount"
            print "uid: "$1
            gfields = split($5,gecos,",")
            namefield = split(gecos[1], fullname, " ")
            print "sn: " fullname[namefield]
            print "givenName: "fullname[1]
            print "cn: " $1
            print "userPassword: {crypt}"$2
            print "loginShell: "$7
            print "uidNumber: "$3
            print "gidNumber: "$4
            print "homeDirectory: "$6
            print "gecos: "$5
            print "mail: "$1"@mydomain.com"
            print "displayName: " gecos[1]
            print ""
        }'
</pre>
<p>Follow m0j0&#8217;s instructions for using it from the link above &#8212; and don&#8217;t forget to change the <code>mydomain</code> string, if necessary. I also found it helpful to capture my NIS passwd info into a file before running this script. It gave me a chance to remove old stuff I didn&#8217;t need anymore. To do that, just <code>ypcat passwd > nis_passwd</code>, make your edits, and then <code>cat nis_passwd | nis2ldap > users.ldif</code>.</p>
<p>Thanks, m0j0!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kilbride.com/technology/quick-nis-passwd-to-ldap-script.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>New Blog</title>
		<link>http://www.kilbride.com/life/hello-world.html</link>
		<comments>http://www.kilbride.com/life/hello-world.html#comments</comments>
		<pubDate>Mon, 14 Apr 2008 17:15:24 +0000</pubDate>
		<dc:creator>cool breeze</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.kilbride.com/?p=1</guid>
		<description><![CDATA[I&#8217;ve been wanting a place to put my ramblings for a while and, since I&#8217;m a programmer, I finally berated myself enough to install Wordpress. I guess it&#8217;s about time, since I&#8217;ve had this domain sitting here dormant for over ten years. (!!)
So, welcome&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wanting a place to put my ramblings for a while and, since I&#8217;m a programmer, I finally berated myself enough to install Wordpress. I guess it&#8217;s about time, since I&#8217;ve had this domain sitting here dormant for over ten years. (!!)</p>
<p>So, welcome&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kilbride.com/life/hello-world.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
