poor man's php ldap class