We need to provide the login attribute in the list of attributes to fetch, otherwise (if you're not using displayName, title or sAMAccountName for example "uid") as the login attribute it fails later on with "Could not find user name attribute uid in LDAP entry".
To be honest I'm not sure if we need the rest of the list of attributes as I couldn't see when they would be used but wasn't going to delete them and break something unforseen.
We need to provide the login attribute in the list of attributes to fetch, otherwise (if you're not using displayName, title or sAMAccountName for example "uid") as the login attribute it fails later on with "Could not find user name attribute uid in LDAP entry".
To be honest I'm not sure if we need the rest of the list of attributes as I couldn't see when they would be used but wasn't going to delete them and break something unforseen.