<?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>IT Connection</title>
	<atom:link href="http://www.eduardodelima.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eduardodelima.com</link>
	<description>Powered by Eduardo de Lima</description>
	<lastBuildDate>Sat, 21 May 2011 23:40:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>LDAP and Samba Server Configuration</title>
		<link>http://www.eduardodelima.com/2011/05/21/ldap-server-configuration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ldap-server-configuration</link>
		<comments>http://www.eduardodelima.com/2011/05/21/ldap-server-configuration/#comments</comments>
		<pubDate>Sat, 21 May 2011 23:40:58 +0000</pubDate>
		<dc:creator>Eduardo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[LDAP Server]]></category>
		<category><![CDATA[Lightweight Directory Access Protocol]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SAMBA]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://eduardodelima.wordpress.com/?p=35</guid>
		<description><![CDATA[<p style="text-align:justify;">This tutorial shows how to setup a LDAP server so you can work with LDAP and <a class="zem_slink" title="Samba (software)" href="http://www.samba-tng.org/" rel="homepage">SAMBA</a> accounts. I assume you have an up-to-date <a class="zem_slink" title="Debian" href="http://www.debian.org/" rel="homepage">Debian</a> based system running.</p> Before starting: Backup your configuration files first!!! There are people using db4.8 instead 4.2, try it at [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This tutorial shows how to setup a LDAP server so you can work with LDAP and <a class="zem_slink" title="Samba (software)" href="http://www.samba-tng.org/" rel="homepage">SAMBA</a> accounts. I assume you have an up-to-date <a class="zem_slink" title="Debian" href="http://www.debian.org/" rel="homepage">Debian</a> based system running.</p>
<h4 style="text-align:justify;">Before starting:</h4>
<ul style="text-align:justify;">
<li><span style="color:#ff0000;"><strong>Backup your configuration files first!!!</strong></span></li>
<li>There are people using db4.8 instead 4.2, try it at your own risk.</li>
<li>I don&#8217;t work with ldap-utils, but you may want to, that&#8217;s why I put it as last software to be installed.</li>
<li>You can work with phpldapadmin or lam (<a href="http://www.ldap-account-manager.org/" target="_blank">LDAP Account Manager</a>). I rather work with LAM, but I&#8217;m giving you another good choice.</li>
<li><span style="color:#ff0000;">This tutorial aims Debian 5.0 (Lenny). On Debian 6 (Squeeze), which I like very much, there are several differences.</span></li>
</ul>
<h4 id="step1">Step 1: Install the needed packages (You&#8217;ll need root privileges):</h4>
<ul>
<li>aptitude install nss-updatedb libpam-ldap libnss-ldap lam phpldapadmin db4.2-util libdb4.2 libdb4.2-dev samba samba-doc ldap-utils smbldap-tools<span id="more-35"></span></li>
</ul>
<h4>Step 2: Answer the questions to get your server properly configured</h4>
<ul>
<li>LDAP Server (IP address or Server address): ldap://ldap.mydomain.com/</li>
<li>LDAP Domain Name: cn=mydomain,cn=com</li>
<li>LDAP Version: 3</li>
<li>Does your database requires login? Yes or No (it&#8217;s up to you. I would tell you to answer no <img src='http://www.eduardodelima.com/wp2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
<li>Do you want root to be the database admin? no</li>
<li>For any problems or changes, reconfigure your ldap: dpkg-reconfigure ldap-auth-config</li>
</ul>
<h4>Step 3: Now let&#8217;s go to work! LDAP comes first!</h4>
<ul>
<li>Open your /etc/ldap/slapd.conf. Check your configuration file, it&#8217;s to be like that:</li>
</ul>
<pre class="brush: bash; title: ; notranslate">
# Schema and &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;LDAP&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/LDAP&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;objectClass&amp;lt;/a&amp;gt; definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include        /etc/ldap/schema/samba.schema
pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args
#I like to log in this level
loglevel        256
modulepath    /usr/lib/ldap
moduleload    back_hdb
sizelimit 500
tool-threads 1
backend        hdb
database        hdb
suffix          &amp;quot;dc=mydomain,dc=com&amp;quot;
rootdn          &amp;quot;cn=admin,dc=mydomain,dc=com&amp;quot;
#This can be get by slappasswd -s mypassword-h {SSHA}
rootpw          {SSHA}9BDgFTNasdC+43tgw+(mdfçlsdko
directory       &amp;quot;/var/lib/ldap&amp;quot;
dbconfig set_cachesize 0 2097152 0
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
index sambaSID eq
index sambaPrimaryGroupSID eq
index objectClass,uid,uidnumber,gidnumber eq
index cn,mail,surname,givenname eq,sub
lastmod         on
checkpoint      512 30
access to attrs=userPassword,shadowLastChange
by dn=&amp;quot;cn=admin,dc=mydomain,dc=com&amp;quot; write
by anonymous auth
by self write
by * none

access to dn.base=&amp;quot;&amp;quot; by * read

access to *
by dn=&amp;quot;cn=admin,dc=mydomain,dc=com&amp;quot; write
by * read
</pre>
<ul>
<li>Ops!!! Don&#8217;t forget to put samba.schema on its proper directory.</li>
</ul>
<pre class="brush: bash; title: ; notranslate">
cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema
gunzip /etc/ldap/schema/samba.schema.gz
</pre>
<ul>
<li>Now take a look  into /etc/ldap/ldap.conf:</li>
</ul>
<pre class="brush: bash; title: ; notranslate">
#host ip or dns record. Ex:. ldap.mydomain.com
HOST 10.10.25.8
BASE    dc=mydomain,dc=com
#URI    ldap://10.10.25.8/ ldap://10.10.250.8:666/
SERVER 10.10.25.8
ROOTBINDDN cn=admin,dc=mydomain,dc=com
BINDDN cn=admin,dc=mydomain,dc=com
BINDPW {SSHA}9TbskdjuT+PYIAzSs09f+NgkJV9Rr/
SIZELIMIT    10000
#TIMELIMIT    15
#DEREF        never
</pre>
<ul>
<li>Go to /etc/pam.d/ and edit every file mentioned here:</li>
<ul>
<li>common-account:</li>
</ul>
</ul>
<pre class="brush: bash; title: ; notranslate">
account required pam_unix.so
account sufficient pam_ldap.so
</pre>
<ul>
<ul>
<li>common-auth:</li>
</ul>
</ul>
<pre class="brush: bash; title: ; notranslate">
auth sufficient pam_ldap.so
auth required pam_unix.so try_first_pass nullok_secure
</pre>
<ul>
<ul>
<li>common-password:</li>
</ul>
</ul>
<pre class="brush: bash; title: ; notranslate">
password sufficient pam_unix.so nullok use_authtok md5 shadow
password required pam_unix.so try_first_pass
</pre>
<ul>
<ul>
<li>common-session:</li>
</ul>
</ul>
<pre class="brush: bash; title: ; notranslate">
session    required    pam_unix.so
session optional pam_mkhomedir.so umask=0077
</pre>
<ul>
<li>Type invoke-rc.d slapd restart</li>
</ul>
<div class="al2fb_like_button"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like href="http://www.eduardodelima.com/2011/05/21/ldap-server-configuration/" send="true" layout="standard" show_faces="false" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div><div class="al2fb_comments_plugin"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:comments num_posts="2" width="500" colorscheme="light" href="http://www.eduardodelima.com/2011/05/21/ldap-server-configuration/"></fb:comments></div>]]></content:encoded>
			<wfw:commentRss>http://www.eduardodelima.com/2011/05/21/ldap-server-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dynamic Virtual Terminal Manager (DVTM)</title>
		<link>http://www.eduardodelima.com/2011/05/20/dvtm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dvtm</link>
		<comments>http://www.eduardodelima.com/2011/05/20/dvtm/#comments</comments>
		<pubDate>Sat, 21 May 2011 02:55:32 +0000</pubDate>
		<dc:creator>Eduardo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dvtm]]></category>
		<category><![CDATA[dynamic virtual terminal manager]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[window manager]]></category>

		<guid isPermaLink="false">http://eduardodelima.wordpress.com/?p=80</guid>
		<description><![CDATA[<p>DVTM is a very useful window manager for shell. It allows you to work with several layouts and have a whole view of several tasks running at same time without the need of changing terminal using ALT+F# (where # is your TTY&#8217;s number).</p> <p>This short tips were written expecting you to see it as a [...]]]></description>
			<content:encoded><![CDATA[<p>DVTM is a very useful window manager for shell. It allows you to work with several layouts and have a whole view of several tasks running at same time without the need of changing terminal using ALT+F# (where # is your TTY&#8217;s number).</p>
<p>This short tips were written expecting you to see it as a quick reference, not a tutorial.</p>
<p>To start DVTM type in shell:</p>
<pre class="brush: bash; title: ; notranslate">
dvtm
</pre>
<p><span id="more-80"></span></p>
<p>(Don&#8217;t you have DVTM ? On <a class="zem_slink" title="Debian" href="http://www.debian.org/" rel="homepage">Debian</a> based distributions, including <a class="zem_slink" title="Ubuntu (operating system)" href="http://www.ubuntu.com/" rel="homepage">Ubuntu</a>: aptitude install dvtm)</p>
<p>All commands are based on Mod keys, set to Ctrl-G</p>
<p>Commands:<br />
Mod-c &#8211; new window<br />
Mod-j or Mod-k &#8211; change between windows, go to next or previous window.<br />
Mod-# (where # is the window number) &#8211; go to window number #<br />
Mod-Enter &#8211; throw main windows to the main area<br />
Mod-t &#8211; vertical layout<br />
Mod-b &#8211; horizontal layout<br />
Mod-l or Mod-h &#8211; resize windows for vertical and horizontal layouts<br />
Mod-g &#8211; grid layout<br />
Mod-m &#8211; maximize window<br />
Mod-. minimize window</p>
<div class="al2fb_like_button"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like href="http://www.eduardodelima.com/2011/05/20/dvtm/" send="true" layout="standard" show_faces="false" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div><div class="al2fb_comments_plugin"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:comments num_posts="2" width="500" colorscheme="light" href="http://www.eduardodelima.com/2011/05/20/dvtm/"></fb:comments></div>]]></content:encoded>
			<wfw:commentRss>http://www.eduardodelima.com/2011/05/20/dvtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export/import Zune settings</title>
		<link>http://www.eduardodelima.com/2011/05/10/how-to-exportimport-zune-settings/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-exportimport-zune-settings</link>
		<comments>http://www.eduardodelima.com/2011/05/10/how-to-exportimport-zune-settings/#comments</comments>
		<pubDate>Tue, 10 May 2011 18:32:01 +0000</pubDate>
		<dc:creator>Eduardo</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://eduardodelima.wordpress.com/?p=68</guid>
		<description><![CDATA[<p>This is a short tutorial to the ones who need to backup zune configuration. After figuring out how to do it I decided to share my solution with you.</p> <p>I&#8217;m not sure if it works 100%, including information about your shopping etc, but it &#8216;ll be stored in your account anyway. I work mainly with [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short tutorial to the ones who need to backup zune configuration. After figuring out how to do it I decided to share my solution with you.</p>
<p>I&#8217;m not sure if it works 100%, including information about your shopping etc, but it &#8216;ll be stored in your account anyway. I work mainly with podcasts.</p>
<p>I did it from my old notebook to my new one, worked 100%!<br />
___________________</p>
<p>Enable &#8216;view hidden files&#8217; on your computer. You can do that going to organize-&gt;folder and search options on Windows Explorer.</p>
<p>Go to a folder called Zune: C:Users&lt;yourusername&gt;AppDataLocalMicrosoftZu ne</p>
<p>Copy ZuneStore.sdf to your backup folder.</p>
<p>When you need, copy it back to your brand new computer (but before rename the existing one to ZuneStore.sdf.old).</p>
<p>Good luck!</p>
<div class="al2fb_like_button"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like href="http://www.eduardodelima.com/2011/05/10/how-to-exportimport-zune-settings/" send="true" layout="standard" show_faces="false" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div><div class="al2fb_comments_plugin"><div id="fb-root"></div><script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311051255600599";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:comments num_posts="2" width="500" colorscheme="light" href="http://www.eduardodelima.com/2011/05/10/how-to-exportimport-zune-settings/"></fb:comments></div>]]></content:encoded>
			<wfw:commentRss>http://www.eduardodelima.com/2011/05/10/how-to-exportimport-zune-settings/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

