sub dn from EBox::Users::LdapObject does not expect a thing related with wantarray. That's why it is not set.

$self->_entry->dn() is different as it is always one, unlike the other attributes.