Skip to content

Commit

Permalink
Removing ldap_escape function from username / password
Browse files Browse the repository at this point in the history
  • Loading branch information
wilpig committed Apr 25, 2018
1 parent ded812c commit 399e10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions login_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ function setRights($group,&$person){
ldap_set_option( $ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3 );
ldap_set_option( $ldapConn, LDAP_OPT_REFERRALS, 0 );

$ldapUser = ldap_escape(htmlspecialchars($_POST['username']));
$ldapUser = htmlspecialchars($_POST['username']);
$ldapDN = str_replace( "%userid%", $ldapUser, $config->ParameterArray['LDAPBindDN']);
$ldapPassword = ldap_escape($_POST['password']);
$ldapPassword = $_POST['password'];

$ldapBind = ldap_bind( $ldapConn, $ldapDN, $ldapPassword );

Expand Down

0 comments on commit 399e10f

Please sign in to comment.