Remove magic inheritance magic for base_dn

Fix typo in dynamic attributes
Fix potential segv in rlm_ldap if profile_filter was not set
Formatting
Not required
Neaten MSSQL queries file
Use the exact names of config-items to avoid pain later