Thread:Extension talk:LDAP Authentication/Another Cannot Bind As User question/reply (2)

I don't see "$wgLDAPPort" anywhere in LdapAuthentication.php – is it possible that setting is ignored? Try adding the port to the server name, like

$wgLDAPServerNames = array( "ad01"=>"ad01.server.local:636" );

That's what worked for me.