Wednesday, February 24, 2010

Novell eDirectory Group Membership with PHP

You can use the following PHP functions to manage group membership for eDirectory:

function AddUserToGroup($ldap,$userdn,$groupdn) {   
    $userInfo["groupMembership"]=$groupdn;
    $userInfo["securityEquals"]=$groupdn;
    if(ldap_mod_add($ldap,$userdn,$userInfo)===TRUE) {   
        $groupInfo["member"]=$userdn;
        $groupInfo["equivalentToMe"]=$userdn;
        return ldap_mod_add($ldap,$groupdn,$groupInfo);
    }
    return FALSE;
}

function RemoveUserFromGroup($ldap,$userdn,$groupdn) {   
    $groupInfo["member"]=$userdn;
    $groupInfo["equivalentToMe"]=$userdn;
    if(ldap_mod_del($ldap,$groupdn,$groupInfo)===TRUE) {   
        $userInfo["groupMembership"]=$groupdn;
        return ldap_mod_del($ldap,$userdn,$userInfo);
    }
    return FALSE;
}

Tuesday, February 16, 2010

Friday, February 12, 2010

Thanks Google for Blocking Emails like this

I really need to wonder what type of people fall for emails like this:

 

I guess people would not be doing this if they did not find people falling for these scam emails.

Wednesday, February 10, 2010

Firebug 1.5 and Ubuntu 64 bit

Note to self, don't install Firebug from Firefox, rather do:

sudo apt-get install firebug

Ref: https://bugs.launchpad.net/ubuntu/+source/firefox-3.5/+bug/449744

Tuesday, February 2, 2010

VirtualBox Slow Performance with Shared Folder

Wow, was really give frustruted with the slow reponse using shared folders in VirutalBox. VirutalBox is awesome, but this was really making me to start to long for VMware. Lucky there was a fix :-)

http://www.virtualbox.org/ticket/1728

Basically you just need to disable NetBios in your guest, and tada the shared folders work much better :-)

Some very old poetry of mine

Tears

waves with foam frothing tips of crispy dew wash the ocean floor,
with rainbow colour shells sparkling in the dwindling light of a gray moon.
the sky has a darkness that seems to swallow the light,
only a shimmering line of the moon can be seen, no joy
in this sky, it drips tears of blackness upon the land
spreading like disease it covers all.
pray that this darkness never comes because the coldness it brings has never been felt,
it will cut ever living being down one by one until there is no more,
    for tears of darkness are never wiped dry.


Green

if grass is green what can be greener?

the flowers in my garden speak of grass that is greener,
        but I say I know better…
the pine trees on the hill tops speak of grass that is greener,
        but I say I know better…
the sparkling streams filled with sunlight speak of grass that is greener,
        but I say I know better…
the grass on the road side says it’s greener,
        but is grass really green?

Followers