summaryrefslogtreecommitdiff
path: root/plugins/password/drivers/ldap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-23 12:40:25 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-23 12:40:25 +0200
commit6776d31ceed36b2078a30c18f0b7d1156eca36ef (patch)
tree6a1ab41115ef8e7ae20ae29bf6982bff459c3fba /plugins/password/drivers/ldap.php
parent0b17aae0cd86e0d253f804045cfe131bff50be1d (diff)
Add new password encodage ('ad') in ldap password drivers (#1489349)
Diffstat (limited to 'plugins/password/drivers/ldap.php')
-rw-r--r--plugins/password/drivers/ldap.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/password/drivers/ldap.php b/plugins/password/drivers/ldap.php
index 548d327e1..29c43fbf4 100644
--- a/plugins/password/drivers/ldap.php
+++ b/plugins/password/drivers/ldap.php
@@ -279,6 +279,10 @@ class rcube_ldap_password
}
break;
+ case 'ad':
+ $cryptedPassword = rcube_charset::convert('"' . $passwordClear . '"', RCUBE_CHARSET, 'UTF-16LE');
+ break;
+
case 'clear':
default:
$cryptedPassword = $passwordClear;