Fixed dynamic group ldap access (#23450)
Fixed dynamic group ldap access (#23450)

* Fixed dynamic group ldap access

getUserGroups:
Using $userDN instead of $uid to query LDAP
Converting groupDN to group name using API instead of substring
Removing cache processing at the end of the method

* Fixing group handling

added back the cache processing and fixed

* fixed possible indention problem

spaces -> tab conversion

* formatting, white-space changes only

pmattern/server,michaelletzgus/nextcloud-server,IljaN/core,endsguy/server,jbicha/server,pmattern/server,xx621998xx/server,nextcloud/server,IljaN/core,andreas-p/nextcloud-server,Ardinis/server,jbicha/server,Ardinis/server,nextcloud/server,pollopolea/core,pollopolea/core,owncloud/core,andreas-p/nextcloud-server,xx621998xx/server,jbicha/server,sharidas/core,bluelml/core,pollopolea/core,IljaN/core,phil-davis/core,whitekiba/server,pixelipo/server,pollopolea/core,pmattern/server,pixelipo/server,IljaN/core,bluelml/core,nextcloud/server,xx621998xx/server,owncloud/core,IljaN/core,michaelletzgus/nextcloud-server,cernbox/core,cernbox/core,pmattern/server,owncloud/core,endsguy/server,bluelml/core,whitekiba/server,Ardinis/server,endsguy/server,bluelml/core,endsguy/server,jbicha/server,andreas-p/nextcloud-server,xx621998xx/server,andreas-p/nextcloud-server,pollopolea/core,pixelipo/server,Ardinis/server,xx621998xx/server,Ardinis/server,whitekiba/server,owncloud/core,endsguy/server,nextcloud/server,cernbox/core,sharidas/core,pixelipo/server,pmattern/server,cernbox/core,sharidas/core,bluelml/core,andreas-p/nextcloud-server,whitekiba/server,sharidas/core,cernbox/core,pixelipo/server,michaelletzgus/nextcloud-server,sharidas/core,jbicha/server,michaelletzgus/nextcloud-server,whitekiba/server,owncloud/core