Fixing a copy/paste error in the LDAP code

The same attribute was mistakenly written to fields where it
shouldn't have been.