Category Archives: LDAP Operations

Ubuntu on a Thinkpad T61

Just installed Hard Heron (Ubuntu 8.04 LTS) on my work Thinkpad T61. Pretty much everything worked out of the box. Since I chose to install the x86_64 version I also had to install and configure 32-bit Firefox, and do the usual tap dance with VMware Server, but it’s all working now. There was literally no [...]

Point Restore of LDAP Entries

So, you do snap an LDIF backup of your LDAP directory every night, right?
If you don’t, start. Tonight. If you do, this bit of code may come in handy. It lets you do a point restore of a specific LDAP entry from that big LDIF.

#!/usr/bin/perl
use strict;
use Net::LDAP;
use Net::LDAP::Entry;
use Net::LDAP::LDIF;
#
my $HOME = $ENV{’HOME’};
my $DSHOME = “/opt/sun/directory5.1″;
my [...]