Jump to content

2020 LDAP channel binding and LDAP signing requirement for Windows


FredPenner

Recommended Posts

I have an application that uses the PHP LDAP library to connect to the Windows Active Directory:

$ds = ldap_connect($ini['ad_server']) or die("Could not connect");
$admin = $ini['ad_user'];
$passwd = $ini['ad_password'];
$passwd = base64_decode($passwd);
$dn = $ini['ad_basedn'];

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
$rInTouch = ldap_bind($ds, $admin, $passwd);

I am wondering if anyone knows if this upcoming patch "2020 LDAP channel binding and LDAP signing" coming from Microsoft will break any PHP applications that are using this ldap library.

Thanks in advance,

 

M

Link to comment
Share on other sites

We have an app that supports LDAP auth (but we don't use it) so I tried to setup an active directory VM and apply those settings to test this.

Assuming I did it right, then it seems that so long as you connect to the LDAP server using TLS then everything is fine.  This means either using a ldaps:// url in ldap_connect or using ldap_start_tls after connecting.  Only unencrypted connections stopped working for me when applying those configuration changes.

I'm not well-versed in LDAP or Active Directory so there's a chance I didn't do something right in the setup/configuration but I think I got it done right so I'd probably not be too worried about the change, just make sure you use an encrypted connection to the ldap server.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.