Fix LDAP authentication on systems not using a base of dc=com
By default, the Net::LDAP library uses an LDAP base of dc=com
if no value
is provided. Systems that used a different base would have LDAP searches fail
since the base was not passed along properly.
Closes #43926 (moved)