Be consistent with config items, it should be base_dn and not basedn
More misc fixes