This commit fixes an issue created on commit 2e7a01f30a. Ldap object is type <class 'ldap3.abstract.attribute.Attribute'>. So we need to return the value and verify if it's null, string or list. Fixes #12813
2e7a01f30a