[horde] Horde 4 and custom passwd driver

Ralf Lang lang at b1-systems.de
Mon Mar 19 13:39:22 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>> To me this seems to be a clumsy and I wondered how custom
>>> drivers should be implemented correctly in Horde 4, without
>>> having to touch passwd core code?
>>> 
>> 
>> Are you talking about a custom passwd backend or a custom auth
>> driver? How would you indicate to the factory that your 3rd party
>> driver needs an sql instance?
> 
> I guess this is exactly his question. And the answer is: you can't.
> You have to pull in the dependencies manually, e.g. $db = 
> $GLOBALS['injector']->getInstance('Horde_Db_Adapter'), inside the
> custom driver.
> 
> Jan.
> 
Yes I understand you cannot currently but I wonder IF the factory
should be redesigned for H5 to support custom ldap and mysql scenarios
or if this is overconfiguration.

Like "if it has a db-params array, it must create a db" or something.



- -- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9nNwoACgkQCs1dsHJ/X7DncwCgoYOJUBG3KWJuFa6Rw2ilTmTH
21IAn0giFe95sUDRX+E9nPFiotrpnb7U
=xSlV
-----END PGP SIGNATURE-----


More information about the horde mailing list