Hi,
I have solved the error of NullPointerException, I share with you.
The origin of my problem was in the LdapSearches class of the
ConnIdLDAPBundle library, line 119:
return
AttributeUtil.getStringValue(object.getAttributeByName(conn.getConfiguration().getDnAttribute()));
I have replaced it to:
return AttributeUtil.getStringValue(object.getAttributeByName("__NAME__"));
Reason, if I show all the attributes of the instantiated object with
object.getAttributes() it returns:
[Attribute: {Name=dc=rhino,dc=rediris,dc=es, Value=[]}, Attribute:
{Name=__NAME__, Value=[[email protected],dc=rhino,dc=rediris,dc=es]},
Attribute: {Name=__UID__, Value=[[email protected]]}, Attribute:
{Name=__ENABLE__, Value=[false]}]
By default, the original code returns the entry
{Name=dc=rhino,dc=rediris,dc=es, Value=[]} and then makes .getValue() ->
NULL. I now return the entry {Name=__NAME__,
Value=[[email protected],dc=rhino,dc=rediris,dc=es]} and my .getValue()
gets the correct result. Then it's used in the variable "entryDN" to update
and delete.
I hope it helps,
Thanks Tirasa and the Syncope team!
Leo Bernal
--
Sent from: http://syncope-user.1051894.n5.nabble.com/