[sork] passwd backend choosing based on userid
Jan Schneider
jan at horde.org
Mon Dec 20 10:11:27 UTC 2010
Zitat von Vladimir Kozlov <vladimir.kozlov at gmail.com>:
> 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/
More information about the sork
mailing list