diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-14 12:58:58 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-14 12:58:58 +0200 |
commit | 82cfb3e0f540616fce0dbccbb4af6cfbaf5150c4 (patch) | |
tree | 94b2abfddf5bdfe01d381d46368055ad2b0e99aa /apps/user_ldap/appinfo | |
parent | 2e3467398920249471ec0b4b526fe71c51f7071c (diff) | |
download | nextcloud-server-82cfb3e0f540616fce0dbccbb4af6cfbaf5150c4.tar.gz nextcloud-server-82cfb3e0f540616fce0dbccbb4af6cfbaf5150c4.zip |
LDAP: don't store agent password in plain text
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r-- | apps/user_ldap/appinfo/update.php | 9 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/version | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php new file mode 100644 index 00000000000..07afeeea8a1 --- /dev/null +++ b/apps/user_ldap/appinfo/update.php @@ -0,0 +1,9 @@ +<?php + +//from version 0.1 to 0.2 +$pw = OCP\Config::getAppValue('user_ldap', 'ldap_password'); +if(!is_null($pw)) { + $pwEnc = base64_encode($pw); + OCP\Config::setAppValue('user_ldap', 'ldap_agent_password', $pwEnc); + OC_Appconfig::deleteKey('user_ldap', 'ldap_password'); +}
\ No newline at end of file diff --git a/apps/user_ldap/appinfo/version b/apps/user_ldap/appinfo/version index a0d78bd347e..d9bf66b1866 100644 --- a/apps/user_ldap/appinfo/version +++ b/apps/user_ldap/appinfo/version @@ -1 +1 @@ -0.1.90
\ No newline at end of file +0.1.91
\ No newline at end of file |