<?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>Tuts4Tech &#187; password</title>
	<atom:link href="http://tuts4tech.net/tag/password/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Tue, 04 May 2010 20:35:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Resetting your mysql root password</title>
		<link>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/</link>
		<comments>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 22:33:40 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[forgot]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[premissions]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=554</guid>
		<description><![CDATA[First of all we need to stop mysql Create a mysql table dump to reset the password Now we need to start mysql in safe mode and import the mysql table dump Finally we need to kill mysql and start it in normal mode Your password should now be reset to the one you specified [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>First of all we need to stop mysql
<pre class="brush: plain; title: ; notranslate">/etc/init.d/mysql stop</pre>
</li>
<p></p>
<li>Create a mysql table dump to reset the password
<pre class="brush: plain; title: ; notranslate">UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root';
FLUSH PRIVILEGES;</pre>
</li>
<p></p>
<li>Now we need to start mysql in safe mode and import the mysql table dump
<pre class="brush: plain; title: ; notranslate">mysqld_safe --init-file=/path/to/mysql/table/dump &amp;</pre>
</li>
<p></p>
<li>Finally we need to kill mysql and start it in normal mode
<pre class="brush: plain; title: ; notranslate">killall mysqld
/etc/init.d/mysql start</pre>
</li>
<p></p>
<li>Your password should now be reset to the one you specified in the mysql table dump</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup a LDAP Server</title>
		<link>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/</link>
		<comments>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:50:29 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=403</guid>
		<description><![CDATA[Installation We need to install the ldap packages Answer the questions and then use dpkg to reconfigure slapd for more options Check that the ldap server is now running If you get this error Its likely the daemon isn't running so start it Populating the Database We can use migration tools to export all of [...]]]></description>
			<content:encoded><![CDATA[<h3>Installation</h3>
<ol>
<li>We need to install the ldap packages
<pre class="brush: bash; title: ; notranslate">apt-get install slapd ldap-utils migrationtools</pre>
</li>
<li>Answer the questions and then use dpkg to reconfigure slapd for more options
<pre class="brush: bash; title: ; notranslate">dpkg-reconfigure slapd</pre>
<p>
<pre class="brush: plain; title: ; notranslate">Omit OpenLDAP server configuration? ... No
DNS domain name: ... home.local
Name of your organization: ... home
Admin Password: some-really-strong-password
Confirm Password: some-really-strong-password
OK
BDB
Do you want your database to be removed when slapd is purged? ... No
Move old database? ... Yes
Allow LDAPv2 Protocol? ... No </pre>
</li>
<li>Check that the ldap server is now running
<pre class="brush: bash; title: ; notranslate">ldapsearch -x -b dc=home,dc=local</pre>
<p>If you get this error 
<pre class="brush: plain; title: ; notranslate">ldap_bind: Can't contact LDAP server (-1)</pre>
<p>Its likely the daemon isn't running so start it
<pre class="brush: plain; title: ; notranslate">/etc/init.d/slapd start</pre>
</li>
</ol>
<p><span id="more-403"></span></p>
<h3>Populating the Database</h3>
<li>We can use migration tools to export all of our users and groups into the LDAP db switch into the migrations tools directory
<pre class="brush: bash; title: ; notranslate">cd /usr/share/migrationtools/</pre>
</li>
<li>Edit the migrations tools config file
<pre class="brush: bash; title: ; notranslate">nano migrate_common.ph</pre>
<p>and replace the following
<pre class="brush: plain; title: ; notranslate">DEFAULT_MAIL_DOMAIN = &quot;home.local&quot;;
DEFAULT_BASE = &quot;dc=home,dc=local&quot;;</pre>
</li>
<li>Export the users and groups
<pre class="brush: bash; title: ; notranslate">./migrate_group.pl /etc/group /tmp/group.ldif
./migrate_passwd.pl /etc/passwd /tmp/passwd.ldif </pre>
</li>
<li>Migrate tools doesn't create the group and people nodes therefore we need to create them open /tmp/nodes.ldif
<pre class="brush: bash; title: ; notranslate">nano /tmp/nodes.ldif</pre>
<p>and paste in the following
<pre class="brush: plain; title: ; notranslate">dn: ou=People, dc=home, dc=local
ou: People
objectclass: organizationalUnit

dn: ou=Group, dc=home, dc=local
ou: Group
objectclass: organizationalUnit</pre>
</li>
<li>Finally we need to import the entries into our LDAP database
<pre class="brush: plain; title: ; notranslate">ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/nodes.ldif
ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/group.ldif
ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/passwd.ldif </pre>
</li>
<p>That is your LDAP server setup In <a href="http://tuts4tech.net/2009/07/02/configuring-ldap-clients/">this tutorial</a> it will show you how to configure your LDAP Clients</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to sync 1Password</title>
		<link>http://tuts4tech.net/2009/06/30/how-to-sync-1password/</link>
		<comments>http://tuts4tech.net/2009/06/30/how-to-sync-1password/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:18:24 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=396</guid>
		<description><![CDATA[Well this is more simple. Just download and install dropbox and use this url (yes its a referral but it gives you 0.25 gb extra) First go to 1Password in the menu then preferences then keychain then click move. Use something like this After that on your other computer do to First go to 1Password [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://grabs.davek.ca/cce5e633d3aba07fc8a614d47d409534.png" alt="" width="584" height="452" /></p>
<p>Well this is more simple. Just download and install dropbox and use <a href="https://www.getdropbox.com/referrals/NTUzMTk4MDk">this url</a> (yes its a referral but it gives you 0.25 gb extra)</p>
<p>First go to 1Password in the menu then preferences then keychain then click move. Use something like this <img class="alignnone" src="http://grabs.davek.ca/e212c6c033fb62fce07e83daac765859.png" alt="" width="319" height="16" /></p>
<p>After that on your other computer do to First go to 1Password in the menu then prefs then keychain then move (Again). Go to your dropbox and pick the same file.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/30/how-to-sync-1password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

