Archive for October, 2005

Dollymount

October 24th, 2005

Got back from Dublin last night. I was over to do some work for a customer, and managed to combine it with a special meal with the family for Ma’s 75th birthday. On saturday myself, Da, Emer and Anne-Marie went down to Dollymount beach. It’s just 3 miles from our house – about 15 minutes drive.

dollymount_small.jpg

Here’s a phonecam picture of the Pigeon House towers. Yes, I did get my feet wet, but it was worth it to get a good picture of where I was brought up – this is the beach I learned to drive a car. In fact it’s where I learned to hang on to a car bonnet. Da would drive down the beach with me, Emer, Yvonne Miller and various others (Conor Buckley?) hanging on to the bonnet of the car. So fucking dangerous, but so cool to do. My Da is a bit like me – he does things that he thinks are fun, then thinks about it later. I hope I don’t lose that as I get older and more sensible – sometimes you have to do stupid things to show that you’re alive.

While I was away, the spammers hit me. 1700 emails in the various inboxen, with over 200 of them being comment spam in the blog. Bastards. As they say in Ireland, I hope they die roaring

Fame at last!

October 15th, 2005

I’ve made Wikipedia! Not that I’ve been mentioned by name or anything, but a link is a link.

Jeff Merkey’s entry on Wikipedia

And people wonder why security is ignored?

October 11th, 2005

This sort of slipshod rubbish is why security on the internet is so hosed these days. If Dell can’t be trusted to get an SSL certificate that has the right name of the server, who can? Schoolboy error, as Ron Manager would say.

dell_cert.jpg

The danger here is that people start to see this kind of crap, and blindly click on ‘OK’. If it’s Dell, it must be safe, right? The next time they see this kind of popup, it’s less scary, so just click on the OK button and you’ll be fine, don’t worry about the implications, just a minor mistake.

No wonder people still fall for phishing tricks and 419 chain emails. The example from ‘The Experts’ is pretty piss poor.

“Bring me sunshine…”

October 6th, 2005

Back working in London today – had to go into The City to sort out a problem that was of my making. Working on the principle of ‘you break it, you fix it’, I bit the bullet and traipsed up again to get things working.

The Circle line was severely delayed for a change. Normally it’s just delayed, especially if I hit Paddington just after 9:00am which is when most Circle line trains vanish like snuff at a wake, but today was a ‘severe delay’ day. The upshot was a very, very full train when it did turn up – one of those situations where you need white-gloved pushers to get the bodies into the impossibly small space. All was as well as could be until we hit Gloucester Road, where the doors opened and an oriental looking gentleman bumped against another passenger, knocking him out of the tube onto the platform.


“Why did you fucking push me, you fucker?”

Came the immediate enquiry.


“Sorry, I didn’t mean to, it’s just too crowded”

was the truthful response. This was obviously no excuse, since pushee insisted on pressing the issue, and indeed pressing the alleged pusher back into the over full carriage. All was merely scuffles for about 10 seconds until pushee decided to bring out the big guns…


“Howwwwarch…..SPIT!”

A large spray hit the pusher squarely in the face. The collateral damage was about 4 people who couldn’t move away who just got the spray of delivery. A lovely spitting match then continued until both mouths were dry and only capable of toddler style ejaculations. The whole sorry affair came to an end when the ‘beep beep beep’ signaled the closing of the doors and the pushee was finally given one last push out of the carriage, left to bang angrily on the doors to be let back in.

Yeah, right.

I caught the eye of a prematurely greying thirtysomething media type and we both smiled and shrugged. “London, eh?”. Then I started whistling, quite quietly, Eric and Ernie’s “Bring me Sunshine”, for no good reason except to cheer myself up after that little exhibition. And maybe be a bit ironic or something.

I managed to get a few smiles, then stopped when I realised it was a bit too loud. Luckily, everyone who heard me got off soon after, and I didn’t add myself to the list of weirdos on that particular train.

Working from home tomorrow. I feel I deserve it.

Creating an Alias via LDAP in eDirectory

October 1st, 2005

I had to do some coding this week, the first time in a long while. The PHP script I was writing was a straightforward “lookup the MySQL table” type jobbie which then created an eDirectory account if the details supplied by the user matched what the database held. All well and good.

Then I had to create an alias to point to a user object. Straightforward enough, mormally, but how to do it via LDAP? There wasn’t much help available, but I got there in the end. Here’s the code that does the name and alias creation.

// prepare data for adding user account.
$password = randompassword();
$info["firstname"]=$firstname;
$info["sn"]=$surname;
$info["fullname"] = $firstname . ” ” . $surname;
$info["mail"]=$emailname . “@itnet.ie”;
$info["objectclass"]=”User”;
$info["userPassword"]=$password;
$info["description"]=”Banner ID: ” . $id;

// Build up the full user DN that we’re about to try to create.

$object_dn = “cn=” . $emailname . “, ou= ” . $year . “,ou=” . $context . $base;
if ($debug) {
echo “In createLDAPAccount: User data is ” . $object_dn . “
“;
}

// prepare data for adding alias to user account (NDS alias object)
$alias["objectclass"] = “aliasObject”;
$alias["aliasedObjectName"] = $object_dn;
$alias["cn"] = $id;
$alias_dn = “cn=” . $id . “,ou= ” . $year . “,ou=” . $context . $base;

// Check to see if this user exists already.

$filter=”(cn=$emailname)”;
$search_result=ldap_search($ds, $base_dn, $filter);
$existing_user = ldap_get_entries($ds, $search_result);

//User account exists. Print error message and stop.

if ($existing_user["count"] > 0) {
// if ($debug) { echo “
Duplicate name in directory:”; }
$resultspage->assign(“errortext”,”The requested login name is already taken, please try again”);
$resultspage->display(‘template2.tpl’);
exit;
}
else
{
// add data to directory
if(!(ldap_add($ds, $object_dn, $info))) {
$resultspage->assign(‘errortext’,”An attempt to add your account to the system failed. Please
contact the helpdesk”);
$resultspage->display(‘template2.tpl’);
exit;
}
else {
// Add Alias in the same context….

if(!(ldap_add($ds, $alias_dn, $alias))) {
$resultspage->assign(‘errortext’,”An attempt to add your alias to the system failed. Please contact the helpdesk”);
$resultspage->display(‘template2.tpl’);
exit;

As an aside, I’m working too much and need some time off.

Bad Behavior has blocked 106 access attempts in the last 7 days.

peteconnolly.co.uk is Digg proof thanks to caching by WP Super Cache