Re: userdn with Passwd H5 beta
Ingo Herz <[email protected]> Wed, 15 May 2013 15:38:29 +0200
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------010700070000040705040900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Am 08.05.2013 15:01, schrieb Jan Schneider: > > Zitat von Hanns Mattes <[email protected]>: > >> Hi, >> >> with the Git-version of passwd I've used a hook to construct the userdn: >> >> <?php >> class Passwd_Hooks >> { >> public function userdn($authid) >> { >> $zwischenschritt = explode("@", $authid); >> $hmldapdomain = $zwischenschritt[1]; >> return 'uid=' . $authid . ',ou=' . $hmldapdomain . >> ',ou=virtualmail' . ',dc=my' . ',dc=domain'; >> } >> } >> >> This was necessary with my setup, because the userDN contains a kind >> of domain component: >> >> [email protected],ou=example.com,ou=virtualmail,dc=my,dc=domain >> [email protected],ou=otherexample.com,ou=virtualmail,dc=my,dc=domain >> >> [email protected],ou=thirdexample.com,ou=virtualmail,dc=my,dc=domain >> >> >> In "docs/UPGRADING" is mentioned, that the hook is removed an the >> userdn now is set in the ldap-driver-configuration. >> >> So I can set something like >> 'userdn' => 'uid=%u,ou=example.com,ou=virtualmail,dc=my,dc=domain' >> >> But how do I manage, that the "domain component" is set depending on >> the uid (or a matching entry in the user's record in the DIT)? >> >> 'userdn' => 'uid=%u,ou=$domain,ou=virtualmail,dc=my,dc=domain' >> >> Regards Hanns > > This is not possible at the moment. I'm not sure why the hook has been > removed at all, Michael has to chime in here. Hi, it would be nice if this hook could be reimplemented. We have implemented some "special" actions there. Regards, Ingo --------------010700070000040705040900 Content-Type: text/x-vcard; charset=utf-8; name="herz.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="herz.vcf" begin:vcard fn:Ingo Herz n:Herz;Ingo email;internet:[email protected] tel;work:04921 807-1928 tel;fax:04921 807-1938 x-mozilla-html:TRUE version:2.1 end:vcard --------------010700070000040705040900 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- sork mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected] --------------010700070000040705040900--