Re: Ldap-Problems

Hanns Mattes <[email protected]> Fri, 04 Nov 2011 18:05:50 +0100
Newsgroups gmane.comp.horde.sork
Organization Journalist
Message-ID <[email protected]>
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
-- 
Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]