r21507: Fix some "cannot access LDAP when no root" bugs.