[horde] Horde 4 and custom passwd driver
Ralf Lang
lang at b1-systems.de
Mon Mar 19 13:15:21 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 19.03.2012 13:42, schrieb Peter Meier:
> Hi all,
>
> I have a question regarding Horde 4 and passwd:
>
> I have an own driver for an sql based but using bcrypt hashed
> passwords authentication mechanism. So in Horde 3 I created an own
> driver inheriting from the sql driver and overriding the
> encryptPassword and comparePasswords methods and selected that
> driver in the backends configuration.
>
> I tried the same thing (adjusting class name as well as method
> names to _encryptPassword and _comparePasswords) in Horde 4, but I
> wasn't able to use the driver until I adjusted the case statement @
>
> https://github.com/horde/horde/blob/master/passwd/lib/Factory/Driver.php#L90
>
>
>
to treat my driver the same way as the Sql driver.
>
> 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?
- - --
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/
iEYEARECAAYFAk9nMTkACgkQCs1dsHJ/X7B51wCfYz4nkdYzQVai+ORtIYOH/Br6
8SoAoMXfxz5dky68i84E12ecf2mTfl3d
=HBNY
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9nMWkACgkQCs1dsHJ/X7B9XACgv0OAq6AhHNpJE8+AHe4uCxZg
shEAnArWc2iyUN1hMrrA/nTQ27K26/IH
=BHPF
-----END PGP SIGNATURE-----
More information about the horde
mailing list