[sork] Ldap-Problems

Hanns Mattes hanns at hannsmattes.de
Fri Nov 4 17:05:50 UTC 2011


Hi,

me again,

Am 04.11.2011 15:45, schrieb Hanns Mattes:

> [php, userdn, hooks and me]

okay, got it:

> <?php
> class Passwd_Hooks
> {
>    public function userdn($authid)
>    {
>        // Example: Provide LDAP server with a userdn so that you do not have
>        // to perform anonymous binds.
>        $zwischenschritt = explode("@", $authid);
>        $hmldapdomain = $zwischenschritt[1];
>        return 'uid=' . $authid . ',ou=' . $hmldapdomain . ',ou=virtualmail' . ',dc=hanns' . ',dc=de';
>    }
> }

Looks a bit "hackish", but it's working.

Still got the same issue, Felipe Scarel reported some weeks ago, but
this is no main problem for me in the moment.

Thanks for the help.

Regards Hanns


More information about the sork mailing list