<?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>MacManitou&#039;s Blog</title>
	<atom:link href="http://www2.macmanitou.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www2.macmanitou.de</link>
	<description>23, 42, RDF and more</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:13:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VirtualBox: VMDK and VDI conversion and resize</title>
		<link>http://www2.macmanitou.de/computer/operating-systems/virtualbox-vmdk-and-vdi-conversion-and-resize/</link>
		<comments>http://www2.macmanitou.de/computer/operating-systems/virtualbox-vmdk-and-vdi-conversion-and-resize/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 21:39:11 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://www2.macmanitou.de/uncategorized/virtualbox-vmdk-and-vdi-conversion-and-resize/</guid>
		<description><![CDATA[Since VirtualBox 4.0 it is possible to resize vdi disk images, that is quit simple using the following command:
VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB
SIZE_IN_MB reflects the new disk size so if you want to increase your image to 25GB, just use:
VBoxManage modifyhd darwin.vdi  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: left;">Since VirtualBox 4.0 it is possible to resize vdi disk images, that is quit simple using the following command:</p>
<pre class="brush:bash">VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB</pre>
<p>SIZE_IN_MB reflects the new disk size so if you want to increase your image to 25GB, just use:</p>
<pre class="brush:bash">VBoxManage modifyhd darwin.vdi --resize 25000</pre>
<p style="text-align: left;">Sometimes it happens that you do not use a vdi with VirutalBox, but a VMWare Image (VMDK). That is also no problem, to convert from VMDK to VDI you can use:</p>
<p style="text-align: left;">VBoxManage clonehd &#8211;format vdi /path/to/original.vmdk /path/to/converted.vdi</p>
<div class="shr-publisher-239"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/operating-systems/virtualbox-vmdk-and-vdi-conversion-and-resize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steve I will miss you, There will be no more: But there is one more thing&#8230;</title>
		<link>http://www2.macmanitou.de/computer/steve-i-will-miss-you-there-will-be-now-no-more-but-there-is-one-more-thing/</link>
		<comments>http://www2.macmanitou.de/computer/steve-i-will-miss-you-there-will-be-now-no-more-but-there-is-one-more-thing/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 21:42:24 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[iOS, UIKit]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/?p=181</guid>
		<description><![CDATA[
I was completely shocked when I read this morning on my iPhone that Steve passed away. All my thoughts and sympathy goes out to his family and friends. Please be strong and accept the condolences of me and my family.
This day in my life is dedicated to Steve Jobs, I will think of him as of the  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www2.macmanitou.de/wp-content/569eb46d2f4e680ec292dcb64d593430.jpg"><img class="alignnone size-full wp-image-228" title="Steve Jobs 1955-2011" src="http://www2.macmanitou.de/wp-content/569eb46d2f4e680ec292dcb64d593430.jpg" alt="Steve Jobs 1955-2011" width="596" height="399" /></a></p>
<p>I was completely shocked when I read this morning on my iPhone that Steve passed away. All my thoughts and sympathy goes out to his family and friends. Please be strong and accept the condolences of me and my family.</p>
<p>This day in my life is dedicated to Steve Jobs, I will think of him as of the great man he was and the one person who changed and influenced my life the most. Every single piece of software I write, every graphical user interface I create has a touch of his visions and so he will live on in me, till my time comes to meet him in another place.</p>
<p>I will miss you &#8211; Take care where ever you are,<br />
Sascha Müllner</p>
]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/steve-i-will-miss-you-there-will-be-now-no-more-but-there-is-one-more-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database: Migration from SQLite to MySQL</title>
		<link>http://www2.macmanitou.de/computer/development/databases/database-migration-from-sqlite-to-mysql/</link>
		<comments>http://www2.macmanitou.de/computer/development/databases/database-migration-from-sqlite-to-mysql/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 12:45:38 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/database-migration-from-sqlite-to-mysql/</guid>
		<description><![CDATA[After working with some sqlite databases for one of my iOS projects lately, I have now decided to also add an online service for the project. But how can I migrate from sqlite to MySQL?
Here are the basic three steps, I figured out that are needed to extract and modify the DDL to be ready for an  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>After working with some sqlite databases for one of my iOS projects lately, I have now decided to also add an online service for the project. But how can I migrate from sqlite to MySQL?</p>
<p>Here are the basic three steps, I figured out that are needed to extract and modify the DDL to be ready for an import to MySQL: </p>
<ol style="list-style-type: decimal">
<li>1. Export the SQLite database with sqlite and command parameter “.dump” &#8211; as an example : <em>sqlite3 mySQLiteDataBase .dump .quit &gt;&gt; myDumpSQLite</em></li>
<li>2. Adapt the dump to get it compatible for MySQL   &#8211; Replace “ (double-quotes) with ` (grave accent)   &#8211; Remove “<em>BEGIN TRANSACTION;</em>” “<em>COMMIT;</em>”, and lines related to “<em>sqlite_sequence</em>”   &#8211; Replace “<em>auto increment</em>” with “<em>auto_increment</em>”</li>
<li>3. The dump is ready to get imported in a MySQL server</li>
</ol>
<p>Luckily the modifications can be done with a simple python script Axel Steiner wrote. You can find it on his website:</p>
<p><a href="http://www.treibsand.com/2008/02/15/sqlite_mysql/">http://www.treibsand.com/2008/02/15/sqlite_mysql/</a></p>
<div class="shr-publisher-223"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/databases/database-migration-from-sqlite-to-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: How to get a formatted string from a date?</title>
		<link>http://www2.macmanitou.de/computer/development/oracle-how-to-get-a-formatted-string-from-a-date/</link>
		<comments>http://www2.macmanitou.de/computer/development/oracle-how-to-get-a-formatted-string-from-a-date/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 09:39:26 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/oracle-how-to-get-a-formatted-string-from-a-date/</guid>
		<description><![CDATA[If you work with SQL on Oracle you sometimes want to extract additional informations from a date field and also limit this result to a distinct set.
So for example to get all distinct years of a date field from a data set, you can use the following statement, which uses a subquery:

SELECT year  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you work with SQL on Oracle you sometimes want to extract additional informations from a date field and also limit this result to a distinct set.<br />
So for example to get all distinct years of a date field from a data set, you can use the following statement, which uses a subquery:</p>
<pre class="brush:sql">
SELECT year FROM
(SELECT distinct TO_CHAR(wtp.delivery_date, 'YYYY') AS year FROM world_transport wtp)
ORDER BY year ASC;
</pre>
<p>We can further optimize the query, removing the subquery:</p>
<pre class="brush:sql">
SELECT distinct TO_CHAR(wtp.delivery_date, 'YYYY') year
FROM world_transport wtp
ORDER BY year ASC;
</pre>
<p>If you now only want to order the result set, but also group it, remember that the alias year is not known when “GROUP BY” is invoked. To work around this simply use the same “TO_CHAR” function, instead of the alias:  </p>
<pre class="brush:sql">
SELECT TO_CHAR(wtp.delivery_date, 'YYYY') year
FROM world_transport wtp
GROUP  BY TO_CHAR(wtp.delivery_date, 'YYYY')
ORDER BY year ASC;
</pre>
<p>If you want to know the year, but want to preserve the data type date, you can do this by using the function”TRUNC” instead of “TO_CHAR” function:</p>
<pre class="brush:sql">
SELECT TRUNC(wtp.delivery_date, 'YEAR') year
FROM world_transport wtp
GROUP  BY TRUNC(wtp.delivery_date, 'YEAR')
ORDER BY year ASC;
</pre>
<p>Any comments or additions are welcome!</p>
<div class="shr-publisher-201"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/oracle-how-to-get-a-formatted-string-from-a-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: Escape ampersand (&amp;) characters in SQL*Plus</title>
		<link>http://www2.macmanitou.de/computer/development/oracle-escape-ampersand-characters-in-sqlplus/</link>
		<comments>http://www2.macmanitou.de/computer/development/oracle-escape-ampersand-characters-in-sqlplus/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 12:38:57 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/oracle-escape-ampersand-characters-in-sqlplus/</guid>
		<description><![CDATA[When importing a backup you might have run into the problem that the ampersands (&#038;) or colon () characters are used as bind variables in PL/SQL. This is actually no real problem, as you can simply change the substitution character using the DEFINE setting in SQL*Plus:
SET DEFINE ~
The usual  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When importing a backup you might have run into the problem that the ampersands (&#038;) or colon () characters are used as bind variables in PL/SQL. This is actually no real problem, as you can simply change the substitution character using the DEFINE setting in SQL*Plus:</p>
<pre class="brush: sql">SET DEFINE ~</pre>
<p>The usual substitution mechanism an ampersands would trigger, is now suppressed.</p>
<p>Other methods:<br />
Define an escape character:</p>
<pre class="brush: sql">
SET ESCAPE '\'
SELECT '\&#038;abc' FROM dual;
</pre>
<p>Don&#8217;t scan for substitution variables:</p>
<pre class="brush: sql">
SET SCAN OFF
SELECT '&#038;ABC' x FROM dual;
</pre>
<p>Another way to escape the &#038; would be to use concatenation, which would not require any SET commands -</p>
<pre class="brush: sql">
SELECT 'Laurel ' || '&#038;' || ' Hardy' FROM dual;
</pre>
<p>Use the 10g Quoting mechanism:</p>
<pre class="brush: sql">
Syntax
 q'[QUOTE_CHAR]Text[QUOTE_CHAR]'
 Make sure that the QUOTE_CHAR followed by an ' doesn't exist in the text.
SELECT q'{This is Orafaq's 'quoted' text field}' FROM DUAL;
</pre>
<p>You can also turn off substitutions by setting define to off:</p>
<pre class="brush: sql">
SET DEFINE OFF
</pre>
<p>When you need it, just turn it on again:</p>
<pre class="brush: sql">
SET DEFINE ON
</pre>
<p>Reference:</p>
<p>http://kwatog.com/blog/oracle/enable-disable-bind-variable-in-sqlplus/</p>
<div class="shr-publisher-197"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/oracle-escape-ampersand-characters-in-sqlplus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: Drop All Trigger and Drop All Database</title>
		<link>http://www2.macmanitou.de/computer/development/oracle-drop-all-trigger-and-drop-all-database/</link>
		<comments>http://www2.macmanitou.de/computer/development/oracle-drop-all-trigger-and-drop-all-database/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 11:49:03 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/oracle-drop-all-trigger-and-drop-all-database/</guid>
		<description><![CDATA[To drop all triggers in a schema, simply execute:
begin
for i in (select trigger_name,owner from dba_triggers where trigger_name like '%') LOOP
execute immediate 'DROP TRIGGER '&#124;&#124;i.owner&#124;&#124;'."'&#124;&#124;i.trigger_name&#124;&#124;'"';
END LOOP;
END;
To get drop queries for all tables in a schema, simply  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>To drop all triggers in a schema, simply execute:</p>
<pre class="brush:sql">begin
for i in (select trigger_name,owner from dba_triggers where trigger_name like '%') LOOP
execute immediate 'DROP TRIGGER '||i.owner||'."'||i.trigger_name||'"';
END LOOP;
END;</pre>
<p>To get drop queries for all tables in a schema, simply execute:</p>
<pre class="brush:sql">select 'drop table '||table_name||' cascade constraints;' from user_tables;</pre>
<p>or you can get drop queries for all user objects in a schema by executing:</p>
<pre class="brush:sql">select 'drop ' || object_type || ' ' || object_name || ';' from user_objects where object_type != 'INDEX'</pre>
<div class="shr-publisher-192"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/oracle-drop-all-trigger-and-drop-all-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: Disable ArchiveLog Mode</title>
		<link>http://www2.macmanitou.de/computer/development/oracle-disable-archivelog-mode/</link>
		<comments>http://www2.macmanitou.de/computer/development/oracle-disable-archivelog-mode/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 07:32:49 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/oracle-disable-archivelog-mode/</guid>
		<description><![CDATA[Sometimes it is unnecessary to use ArchiveLog mode with the Oracle database. If you do not know what ArchiveLog Mode is &#8211; here is a short statement:
“Any Oracle database that contains important data should be running in ARCHIVELOG mode. Running in Archive log mode enables you to take hot backups  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Sometimes it is unnecessary to use ArchiveLog mode with the Oracle database. If you do not know what ArchiveLog Mode is &#8211; here is a short statement:</p>
<p>“Any Oracle database that contains important data should be running in ARCHIVELOG mode. Running in Archive log mode enables you to take hot backups and perform point-in-time recovery.”<br />
So if you do not want this feature you can disable it following these steps:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;- Login to your server as oracle user<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;- start sqlplus as sysdba<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sqlplus &#8220;/ as sysdba&#8221;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;- run the following commands<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;shutdown abort<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;startup mount<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;alter database noarchivelog;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;alter database open;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;- to test if you where successful just run the query:<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;select name, log_mode from v$database;</p>
<p>Remember that once you disable archive log mode you need to take a fresh backup once archive log mode is turned back on.<br />
Be aware that if a disk failure occurs while in NOARCHIVELOG mode, you can only restore the database to the point of the most recent full database backup.<br />
To switch back from archivelog to noarchivelog mode, just repeat the relevant steps above specifying: ALTER DATABASE NOARCHIVELOG;</p>
<p>For RAC environments, read the following link:</p>
<p><a href="http://www.dba-oracle.com/bk_disable_archive_log_mode.htm">http://www.dba-oracle.com/bk_disable_archive_log_mode.htm</a></p>
<div class="shr-publisher-191"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/oracle-disable-archivelog-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to drop multiple tables in MySQL</title>
		<link>http://www2.macmanitou.de/computer/development/databases/how-to-drop-multiple-tables-in-mysql/</link>
		<comments>http://www2.macmanitou.de/computer/development/databases/how-to-drop-multiple-tables-in-mysql/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 17:26:51 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/uncategorized/how-to-drop-multiple-tables-in-mysql/</guid>
		<description><![CDATA[If you want to drop multiple tables in MySQL (current version 5.05 or before) you will find no command for that. But there is a simple way using some console commands, just hit your shell and simply paste this snippet:

mysqldump -u [USER] -p [PASSWORD] --add-drop-table --no-data [DATABASE]  &#124; grep  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you want to drop multiple tables in MySQL (current version 5.05 or before) you will find no command for that. But there is a simple way using some console commands, just hit your shell and simply paste this snippet:</p>
<pre class="brush:bash">
mysqldump -u [USER] -p [PASSWORD] --add-drop-table --no-data [DATABASE]  | grep ^DROP | mysql -u [USER]  -p [PASSWORD]  [DATABASE]
</pre>
<p>Do not forget to replace [USER], [PASSWORD] and [DATABASE] with your settings. As always with remove operations be careful and backup!!!</p>
<div class="shr-publisher-187"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/development/databases/how-to-drop-multiple-tables-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISPConfig3: Mail aliases for login to Dovecot</title>
		<link>http://www2.macmanitou.de/computer/operating-systems/linux/ispconfig3-mail-aliases-for-login-to-dovecot/</link>
		<comments>http://www2.macmanitou.de/computer/operating-systems/linux/ispconfig3-mail-aliases-for-login-to-dovecot/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 13:29:52 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/?p=166</guid>
		<description><![CDATA[If you knew ISPConfig2 you probably remember the user login approach which was done there:

Login: web23p2
Password: OurBrilliant Password

Now with ISPConfig3 this has changed to the better by using the users email address &#8211; sounds cool &#8211; it is!
But what about migration from ispconfig 2 to  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you knew ISPConfig2 you probably remember the user login approach which was done there:</p>
<pre class="brush:bash">
Login: web23p2
Password: OurBrilliant Password
</pre>
<p>Now with ISPConfig3 this has changed to the better by using the users email address &#8211; sounds cool &#8211; it is!<br />
But what about migration from ispconfig 2 to ispconfig 3 &#8211; you do not want to drive around and setup every user account again &#8211; or send emails and then the user fails to set it up.</p>
<p>To prevent that you can just add an alias column to the mail user table</p>
<pre class="brush:sql">ALTER TABLE `mail_user` MODIFY COLUMN `alias` varchar(255) NOT NULL DEFAULT '' AFTER `email`;</pre>
<p>Then just fill it with the old logins like webXpX using phpMyAdmin, Sequel Pro or even the console.</p>
<p>If you are done with that, just login to your server and change the dovecot sql config file:</p>
<pre class="brush:bash">
nano /etc/dovecot/dovecot-sql.conf</pre>
<p>by changing the user and password queries:</p>
<pre class="brush:sql">
password_query = SELECT password FROM mail_user WHERE (email = '%u' OR alias = '%u') AND disable%Ls = 'n'

user_query = SELECT email as user, maildir as home, CONCAT(maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', quota) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (email = '%u' OR alias = '%u') AND disable%Ls = 'n'
</pre>
<p>I will update this post when I figure out the postfix stuff&#8230;</p>
<p>You are done &#8211; hope that this saved your weekend <img src='http://www2.macmanitou.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-166"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/operating-systems/linux/ispconfig3-mail-aliases-for-login-to-dovecot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X: Ever wanted to integrate your Macs in a Active Directory environment with Two-factor authentication (Part 1)?</title>
		<link>http://www2.macmanitou.de/computer/operating-systems/macosx/mac-os-x-ever-wanted-to-integrate-your-macs-in-a-active-directory-environment-with-two-factor-authentication-part-1/</link>
		<comments>http://www2.macmanitou.de/computer/operating-systems/macosx/mac-os-x-ever-wanted-to-integrate-your-macs-in-a-active-directory-environment-with-two-factor-authentication-part-1/#comments</comments>
		<pubDate>Mon, 31 May 2010 10:09:25 +0000</pubDate>
		<dc:creator>simple</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.macmanitou.de/wordpress/?p=163</guid>
		<description><![CDATA[Simple AD Integration using knowledge as authentication key, is for some data to protect not enough. So if you want to raise the bar you add ownership (Smartcard, USB Dongle, e.g.) to the knowledge only authentication system. 
So first stone on your way if you use Snow Leopard, you have to be aware  [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Simple AD Integration using knowledge as authentication key, is for some data to protect not enough. So if you want to raise the bar you add ownership (Smartcard, USB Dongle, e.g.) to the knowledge only authentication system. </p>
<p>So first stone on your way if you use Snow Leopard, you have to be aware that the Directory Utility has been moved from the Utility folder to Core Services. /System/Library/CoreServices/</p>
<p>Then you might want to enable the smart card login feature of Mac OS X using Apple’s nice walk-trough</p>
<p><a href="http://support.apple.com/kb/TA24244">http://support.apple.com/kb/TA24244</a></p>
<p>If can not get you Smart Card based solution running using Apple’s on board tools, you might consider using Centrify’s active directory Implementation:</p>
<p><a href="http://www.centrify.com/directcontrol/mac_os_x.asp">http://www.centrify.com/directcontrol/mac_os_x.asp</a></p>
<p>If you are still unsure what you really need, there is a very good post about alternative authentication methods for Mac OS X from Ryan Faas @peachpit</p>
<p><a href="http://www.peachpit.com/articles/article.aspx?p=725691">http://www.peachpit.com/articles/article.aspx?p=725691</a></p>
<p>Of course you might ran in some problems and traps, to prevent you from going wild, there are some ongoing discussions at the Apple Boards:</p>
<p><a href="http://discussions.apple.com/thread.jspa?threadID=2131654&#038;start=30&#038;tstart=15">http://discussions.apple.com/thread.jspa?threadID=2131654&#038;start=30&#038;tstart=15</a></p>
<div class="shr-publisher-163"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www2.macmanitou.de/computer/operating-systems/macosx/mac-os-x-ever-wanted-to-integrate-your-macs-in-a-active-directory-environment-with-two-factor-authentication-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

