DS-1739 fix LDAP auth appending "null" to username
Merge pull request #366 from helix84/DS-1739-ldap-null-in-username

DS-1739 fix LDAP auth appending "null" to username