1851,1852c1851,1852 < if ( $wgLDAPAutoAuthUsername !== "" ) { < $wgAuth->printDebug( "wgLDAPAutoAuthUsername is not null, adding hooks.", NONSENSITIVE ); --- > if ( $wgLDAPAutoAuthUsername !== "" && $wgLDAPAutoAuthDomain !== "" ) { > $wgAuth->printDebug( "wgLDAPAutoAuthUsername and wgLDAPAutoAuthDomain is not null, adding hooks.", NONSENSITIVE );