I\'m having problems to find how to associate a #Ldap user to a given group.
That is what I have tried:
Attributes attrs = new BasicAttributes();
I had the same problem. Check the value type of this attribute using any client of ldap (for example: Apache Directory Studio). If you try to replace attribute which type is String with int value it will thrown this error.