NextCloud 12 Active Directory nested groups

Insert following query in editor:

(&(objectClass=organizationalPerson)(|(memberof:1.2.840.113556.1.4.1941:=CN=NextCloudUsers,OU=Groups,DC=domain,DC=com)(memberof:1.2.840.113556.1.4.1941:=CN=NextCloudAdmins,OU=Groups,DC=domain,DC=com)))

 

Test it:

 

root@nc:/home/user# ldapsearch     -x -h 10.40.aa.bbb     -D "user@domain.com"     -W     -b "dc=domain,dc=com"     -s sub "(&(objectClass=organizationalPerson)(|(memberof:1.2.840.113556.1.4.1941:=CN=NextCloudUsers,OU=Groups,DC=domain,DC=com)(memberof:1.2.840.113556.1.4.1941:=CN=NextCloudAdmins,OU=Groups,DC=domain,DC=com)))" cn mail sn