summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.auth-ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/openvpn.auth-ldap.php')
-rwxr-xr-xetc/inc/openvpn.auth-ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.auth-ldap.php b/etc/inc/openvpn.auth-ldap.php
index 280099d..37063c7 100755
--- a/etc/inc/openvpn.auth-ldap.php
+++ b/etc/inc/openvpn.auth-ldap.php
@@ -59,7 +59,7 @@ ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0);
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
/* ok, its up. now, lets bind as the bind user so we can search it */
-if (!($res = @ldap_bind($ldap, "{$ldapuserattr={$username}{$ldapbasedn}", $password))) {
+if (!($res = @ldap_bind($ldap, "{$ldapuserattr}={$username}{$ldapbasedn}", $password))) {
syslog(LOG_WARNING, "user {$username} could not authenticate\n");
ldap_close($ldap);
exit(-3);
OpenPOWER on IntegriCloud