/etc/horde/passwd/hooks.php.dist is in php-horde-passwd 5.0.7-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | <?php
/**
* Passwd Hooks configuration file.
*
* THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY. DO NOT ENABLE THEM
* BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING. YOU HAVE TO CUSTOMIZE THEM
* TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
*
* For more information please see the horde/config/hooks.php.dist file.
*
* $Id: 1abd981e2f1777e3f5574e995cbb438f4ea264d8 $
*/
class Passwd_Hooks
{
/**
* Username -> backend userid mapping hook.
*
* @param string $userid The username as input by user.
* @param Passwd_Driver $driver The driver object.
*
* @return string The username in the backend.
*/
// public function username($userid, $driver)
// {
// // Example: Translate what the user enters, in the username box,
// // into what the backend expects.
// if ($driver instanceof Passwd_Driver_Http) {
// return $userid . '@example.com';
// }
//
// return $userid;
// }
/**
* Userdn hook.
*
* @param string $authid The authenticated username.
*
* @return string Userdn to use.
*/
// public function userdn($authid)
// {
// // Example: Provide LDAP server with a userdn so that you do not
// // have to perform anonymous binds.
// return 'uid=' . $authid . ',o=example.com';
// }
/**
* Default username hook.
*
* @return string Return the username to use in the form.
*/
// public function default_username()
// {
// // Example: This is the default value if this hook is not defined.
// return $GLOBALS['registry']->getAuth();
// }
/**
* Hook called after the password has changed. If the password change
* affects the current Horde session, this has NOT yet been handled by
* the calling code.
*
* @param string $user The user ID.
* @param string $oldpass The old password.
* @param string $newpass The new password.
*/
// public function password_changed($user, $oldpass, $newpass)
// {
// Horde::log(sprintf('User %s has changed his password.', $user), 'NOTICE');
// }
}
|