LDAP: format dn before using it, not other way round. fixes #1605
Merge pull request #1665 from owncloud/fix_ldap_1605

LDAP: format dn before using it, not other way round. fixes #1605