This can be done using search filter in Ldap Configuration tab. Add memberOf attribute to your search filter in LDAP configuration tab to allow members of only specific groups to sign in.
For example,
If you have to allow users of only one group use:
If you have to allow users of only one group use:
(&(objectClass=*)(mail=?)
If you have to allow users of multiple groups use:
(&(objectClass=*)(mail=?)