Operating Systems
4 months ago
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 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.
I will miss you – Take care where ever you are,
Sascha Müllner
ISPConfig3: Mail aliases for login to Dovecot
0If 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 – sounds cool – it is!
But what about migration from ispconfig 2 to ispconfig 3 – you do not want to drive around and setup every user account again – or send emails and then the user fails to set it up.
To prevent that you can just add an alias column to the mail user table
ALTER TABLE `mail_user` MODIFY COLUMN `alias` varchar(255) NOT NULL DEFAULT '' AFTER `email`;
Then just fill it with the old logins like webXpX using phpMyAdmin, Sequel Pro or even the console.
If you are done with that, just login to your server and change the dovecot sql config file:
nano /etc/dovecot/dovecot-sql.conf
by changing the user and password queries:
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'
I will update this post when I figure out the postfix stuff…
You are done – hope that this saved your weekend
Mac OS X: Ever wanted to integrate your Macs in a Active Directory environment with Two-factor authentication (Part 1)?
0Simple 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 that the Directory Utility has been moved from the Utility folder to Core Services. /System/Library/CoreServices/
Then you might want to enable the smart card login feature of Mac OS X using Apple’s nice walk-trough
http://support.apple.com/kb/TA24244
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:
http://www.centrify.com/directcontrol/mac_os_x.asp
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
http://www.peachpit.com/articles/article.aspx?p=725691
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:
http://discussions.apple.com/thread.jspa?threadID=2131654&start=30&tstart=15
Terminal: Search and Replace text in all files in a folder and its subfolders
0I just stumbled across a neat idea using perl to replace the content in files
To replace all occurances of a string:
find ./ -name “*.txt” | xargs perl -pi -e ‘s/stringtoreplace/replacementstring/g’
for every of these examples you can also use sed
find ./ -name “*.txt” | xargs sed -i ‘s/stringtoreplace/replacementstring/’
or rpl
rpl stringtoreplace “replacementstring” ./
or numeros other solutions …
To replace the first occurance:
find /your/home/dir -name “*.txt” | xargs perl -pi -e ‘s/stringtoreplace/replacementstring/’
To replace all files in a folder:
for arg in `ls -C1`; do perl -pi -e ‘s/stringtoreplace/replacementstring/g’; done;
you can do more cool tricks using the for shell command as demonstrated above. you can add more specific searches. However, you might be better off just writing a shell script. Here is an example of the first find:
for arg in `find /your/home/dir -name “*.txt”` ; do perl -pi -e ‘s/string/replacement/g’ $arg; done;
Fix Unknown User ACL
0Log in as an administrator.
Open Terminal (in /Applications/Utilities).
Type the following commands, each on a single line and followed by Return (enter an admin password when prompted):
sudo dscl . create /Groups/username GroupMembership username
sudo dscl . change /Groups/username RecordName username _username
Replace the italicized “username” with your account username (which is also the name of the user’s Home folder, in the Users folder). Remember to include the underscore “_” before your user name in the second command.
If you have more than one account on the computer affected by this issue, you should run these two commands again for each account, substituting with the appropriate user name each time.
This document will be updated as more information becomes available.
Cyrus database problem
0After several DB problems after a cyrus update, I pput this information together:
https://bugs.launchpad.net/ubuntu/+source/cyrus-imapd-2.2/+bug/53496
https://launchpad.net/ubuntu/+source/cyrus-imapd-2.2/+bug/67111
http://wiki.bsd-crew.de/index.php/Wiederherstellung_von_Cyrus-IMAPD_nach_Upgrade
https://docs.astro.columbia.edu/ticket/544
http://gradstein.info/HowToRecoverFromCyrus
