[LDAP] use user's DN in filter

Hi,

Is there a way to use the user’s DN in the group filter ?
Currently, %s is replaced by the username but for ActiveDirectory, the username may not relate to the DN and thus group membership can’t be retrieved.

Thanks,
mildis

PR 4513