29 Jun 2012 16:16
[Proftpd-user] Migration encrypted passwords from to SHA-512 based crypt() with mod_sql?
Christian Hammers <ch <at> lathspell.de>
2012-06-29 14:16:55 GMT
2012-06-29 14:16:55 GMT
Hello I'd like to migrate a password database that's currently accessed with mod_sql from a weak hash algorithm to SHA-512 based crypt(). As proftpd receives the current password on every login in plaintext, a silent migration should be possible for at least the 90% of active users in relatively short time. Problem is that I don't quite know where I can find a hook for the UPDATE query as the session structure does not save it for obvious reasons and it is thus not available for SQLLog. My best idea so far (due to little C knowledge) was to patch sql_auth_crypt() to the write username and the re-encrypted password to a named pipe file where a little perl script listens to request and updates the database. Any better ideas? bye, -(Continue reading)christian- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________
RSS Feed