Prevent infinite loop in LDAP group recursive search
When using recursive group search, we may enter an infinite loop if two groups are member of each other. When entrering this loop, the child process eat memory until been killed.
So we should prevent to search several times on the same group to avoid entering such loop.