[horde] Horde 4 and custom passwd driver

Peter Meier peter.meier at immerda.ch
Mon Mar 19 12:42:06 UTC 2012


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?

Thanks

~pete


More information about the horde mailing list