2010/04/20, 12:13
At work, we’re running a 2008R2 AD forest containing 5 sub-domains. now to query the LDAP can be a pity if you don’t know in which one of the overall 6 domains the queried object is located.
After months of helplessness and various (unsuccessful) experiments with meta-directories, ldap-proxies etc. we discovered that the problem is already solved. the solution is to use a different port, ActiveDirectory provides the so-called “global catalog” (containing all the information from the whole forest) on port 3268.
Assume, your username is “un321” and your account is located in the “it” subdomain of the “ads.forest.private” domain. To query for a user called “ab123” use the following ldapsearch-command:
ldapsearch -x -b "dc=ads,dc=forest,dc=private" -D 'un321@it.ads.forest.private' \\
-h ads.forest.private -p 3268 -W "(userPrincipalName=ab123*)" |
2010/04/09, 13:54
to restore a dump from a MySQL database created on a debianish Linux system, just feed the dumped SQL to the command-line mysql client like this:
mysql -u root -p < mysql-all-2010-03-28-0515.sql |
since the whole content of all MySQL databases are overwritten with that stored in the dump, credentials are affected as well. that’s the reason why debian’s system tools won’t work any more after restoring the old dump, since debian creates a maintenance-user called “debian-sys-maint” during the installation and stores the randomly generated credentials in “/etc/mysql/debian.cnf” so it’s sufficient to just copy the “password” values from the old file into the new one and restart mysql. otherwise, you will run into an error like this:
/etc/mysql/debian-start[3181]: Running 'mysqlcheck'...
/etc/mysql/debian-start[3181]: /usr/bin/mysqlcheck: Got error: 1045: Access denied for user 'debian-sys-maint'@'localhost' (using password: YES) when trying to connect
/etc/mysql/debian-start[3181]: FATAL ERROR: Upgrade failed |
2010/04/08, 12:26
examine the superblock of a device:
mdadm --examine /dev/sdd1 |
re-assemble an array when autodetection fails:
mdadm /dev/md0 --assemble --force /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/dm-6 |
2010/04/07, 16:09
That’s just a few records on my personal experience regarding the hot-swapping/hot-plugging capabilities of SATA… Continue reading ‘hotplugging SATA harddisks in Linux’ »
2010/04/05, 01:08
“gpsturbo“ seems to be a potential open-source rival for GSAK that a friend of us suggested (he knows the author in person), so I decided to give it a try. Currently, no Linux-binaries are available, so here are my notes what is required to build it on Ubuntu from scratch:
sudo aptitude install subversion libasound2-dev libcups2-dev libfreetype6-dev |
Compilation has been done in a clean karmic chroot, which already contained my default package selection for compilation-chroots:
apt-get install wget devscripts gnupg aptitude sudo vim bash-completion libxext-dev |
2010/02/24, 19:44
Today (2010-02-24) I gave the current opensync a try and experimented a bit with my Nokia E65. Being rather disappointed by funambol since syncing with it drops all the numbers that are marked as “default” in any contact, I really wanted to know if this is a bug in the Symbian SyncML implementation or in Funambol. Continue reading ‘toying around with OpenSync, Symbian (Nokia E65) and Funambol’ »
2010/02/23, 17:13
here’s a nifty list of commands to start the relevant control-panel / mmc-plugins in wondiws (in german): MSC/CPL-Referenz
to e.g. run the printer control-panel, use this command:
2010/02/18, 21:10
“schroot” is a secure chroot tool that allows a non-privileged user on a system to switch to a chroot in a secure manner. This can be used to set up automated builds etc. that don’t have to run as root.
Unfortunately, RedHat Enterprise doesn’t ship with schroot-packages, so here’s a way to build them:
Continue reading ‘building “schroot” on RHEL-5.4’ »
2010/02/15, 17:14
NOTE: this is just a copy of a blog-posting originally written by Amit Upadhyay. Since I found it really useful, I was rather disappointed to notice it has gone one day. Thankfully it still was in google’s cache, so I decided to make a copy. The rest of the article is a full-quote:
Continue reading ‘cached: git-SVN: Whys And Hows (by amitu)’ »