From 18011fb964c59ebaee4444ebd50040e73820ef49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Thu, 25 Feb 2010 17:05:06 +0000 Subject: Add missing curley. --- etc/inc/openvpn.auth-ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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); -- cgit v1.1