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

Somehow somewhen these lines were swapped.

Fixes https://github.com/owncloud/core/issues/1605