refactor LDAP auth: parameterize various attributes (and move/add that data to the auth.cfg file), split functionality into smaller chunks so that it can more easily be used inother locations, tighten and clean code