LDAP: make queries compatible also with PostgreSQL
LDAP: make queries compatible also with PostgreSQL

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