groupSearchFilter can be a function
groupSearchFilter can be a function that receives the LDAP user object and returns the actual search filter.
var opts = {
...
groupSearchFilter : function(user) {
return "(member={{uid}})".replace(user.dn);
};
};