Ldap with email login

Hello Community! Iam currently setting up rocketchat in our company and everything so far is working besides ldap. i want to authenticate my users with our active directory, they should be able to do that with their email addresses. at the moment they can only login via samaccountname and i dont know how to change that. when i look into the logs while trying to login it says that he is searching for the samaccountname.
thanks in advance!