Filter AD Group?

Hello,

I implemented Kanbard version 1.2.19 on windows it works fine.
I have switched to Active Directory authentication, everything works fine too except I will want users to be able to log in and create an account if they are members of a specific AD group, is that possible? If yes, how ?
Thank you

My configuration

// LDAP DN for administrators
// Example: CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local
define(‘LDAP_GROUP_ADMIN_DN’, ‘CN=r12_gl_Kanboard_administrateur,OU=Kanboard,OU=_AccesApplications,OU=_Groupes,OU=_Administration,OU=_12-Paris,DC=TOTO’);

// LDAP DN for managers
// Example: CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local
define(‘LDAP_GROUP_MANAGER_DN’, ‘CN=r12_gl_Kanboard_gestionnaire,OU=Kanboard,OU=_AccesApplications,OU=_Groupes,OU=_Administration,OU=_12-Paris,DC=TOTO’);

// Enable LDAP group provider for project permissions
// The end-user will be able to browse LDAP groups from the user interface and allow access to specified projects
define(‘LDAP_GROUP_PROVIDER’, true);

// LDAP Base DN for groups
define(‘LDAP_GROUP_BASE_DN’, ‘CN=r12_gl_Kanboard_utilisateur,OU=Kanboard,OU=_AccesApplications,OU=_Groupes,OU=_Administration,OU=_12-Paris,DC=R12,DC=TOTO’);

// LDAP group filter
// Example for ActiveDirectory: (&(objectClass=group)(sAMAccountName=%s*))
define(‘LDAP_GROUP_FILTER’, ‘(&(objectClass=group)(sAMAccountName=%s*))’);

// LDAP user group filter
// If this filter is configured, Kanboard will search user groups in LDAP_GROUP_BASE_DN with this filter
// Example for OpenLDAP: (&(objectClass=posixGroup)(memberUid=%s))
define(‘LDAP_GROUP_USER_FILTER’, ‘(&(objectClass=posixGroup)(memberUid=%s))’);

// LDAP attribute for the user in the group filter
// ‘username’ or ‘dn’
define(‘LDAP_GROUP_USER_ATTRIBUTE’, ‘username’);

// LDAP attribute for the group name
define(‘LDAP_GROUP_ATTRIBUTE_NAME’, ‘cn’);