From 6a47694344b17d7498d390ca11354f3370cd6416 Mon Sep 17 00:00:00 2001 From: "m.fu" Date: Thu, 26 Mar 2009 22:15:29 +0000 Subject: Added #408798 by fasdalf@fasdalf.ru : request for windows support windows does not support crypt password hash added support for SHA-1 password hash which is supported by windows. Fixed : group file not allways updated. --- CHANGELOG.txt | 4 ++++ HTPasswdSync.module | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 70 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b4cc73c..f3f1beb 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,5 +2,9 @@ $Id$ v1.1-Dev bug fix release Fixed #409406 by fasdalf@fasdalf.ru : remove comma in htgroup file +Added #408798 by fasdalf@fasdalf.ru : request for windows support + windows does not support crypt password hash + added support for SHA-1 password hash which is supported by windows. +Fixed : group file not allways updated. v1.0 Initial release \ No newline at end of file diff --git a/HTPasswdSync.module b/HTPasswdSync.module index 7945816..d7cb615 100644 --- a/HTPasswdSync.module +++ b/HTPasswdSync.module @@ -1,7 +1,13 @@ -?php + 'htgroup')), '#required' => TRUE, ); - $form['htpasswdsync_roles'] = array( + $form['htpasswdsync_hash'] = array( + '#type' => 'radios', + '#title' => t('password hashing algorythm'), + '#description' => t("How shall the password be hashed (crypt for unix, SHA1 for all)"), + '#options' => _htpasswdsync_hashes(), + '#default_value' => _htpasswdsync_hash(), + ); + $form['htpasswdsync_roles'] = array( '#type' => 'checkboxes', '#title' => t('Roles to be exported in htgroup'), '#default_value' => _htpasswdsync_roles(), -- cgit v1.2.3