Yepp, but this piece belongs to "enables Base DN field for editing in Wizard, when Base DN cannot be determined automatically, side fix" see  apps/user_ldap/lib/wizard.php line 1017 for disabling referrals.