Re: passwd backend choosing based on userid
Jan Schneider <[email protected]> Mon, 20 Dec 2010 11:11:27 +0100
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Vladimir Kozlov <[email protected]>: > Are there any chance to have passwd backend based on userid? > In order to do this, I use the following in passwd/main.php > if (strpos($userid,"@")) { > $backend_key="sql"; > } else { > $backend_key="smbldap"; > } > but I wonder if this could be done "in a right way", i.e not > modifying main.php? You can do the same in config/backends.php. Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Sork mailing list - Join the hunt: http://horde.org/bounties/#sork Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]