index 2f7db9525d18a74c91c82ed2b4c5618b8ef0e8a7..9696df66d7a2994d09a8379d586fcc76a6904a1e 100644 (file)
{
}
+
+ function get_hash_name()
+ {
+ }
+
// Loads Methods in annother way as get_available_methods do, (For setup ..)
// and loads them,.
function get_available_methods_if_not_loaded($path_to_load="../include")
-
// Crypts a single string, with given Method
function crypt_single_str($string,$method)
{
// this function returns all loaded classes for password encryption
static function get_available_methods()
{
- global $class_mapping;
+ global $class_mapping, $config;
$ret =false;
$i =0;
foreach($class_mapping as $class => $path) {
if(preg_match('/passwordMethod/i', $class) && !preg_match("/^passwordMethod$/i", $class)){
$name = preg_replace ("/passwordMethod/i", "", $class);
- $test = new $class(false);
+ $test = new $class($config);
if($test->is_available()) {
- $plugname= strtolower(preg_replace ("/passwordMethod/i","",$class));
+ $plugname= $test->get_hash_name();
$ret['name'][$i]= $plugname;
$ret['class'][$i]=$class;
$ret[$i]['name']= $plugname;
}
return($ret);
}
+
+
+ // Method to let password backends remove additional information besides
+ // the userPassword attribute
+ function remove_from_parent()
+ {
+ }
+
+
+ // Method to let passwords backends manage additional information
+ // besides the userAttribute entry
+ function set_password()
+ {
+ }
+
+
+ // Return true if this password method provides a configuration dialog
+ function is_configurable()
+ {
+ return FALSE;
+ }
+
+
+ // Provide a subdialog to configure a password method
+ function configure()
+ {
+ return "";
+ }
+
+
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>