Backport Adapter#ldap_search from EE
Backport Adapter#ldap_search from EE

fantasywind/gitlabhq,NARKOZ/gitlabhq,folpindo/gitlabhq,zBMNForks/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,childbamboo/gitlabhq,WSDC-NITWarangal/gitlabhq,stanhu/gitlabhq,kemenaran/gitlabhq,chadyred/gitlabhq,pulkit21/gitlabhq,liyakun/gitlabhq,hzy001/gitlabhq,eliasp/gitlabhq,H3Chief/gitlabhq,sakishum/gitlabhq,123Haynes/gitlabhq,youprofit/gitlabhq,mmkassem/gitlabhq,aaronsnyder/gitlabhq,michaKFromParis/gitlabhq,Exeia/gitlabhq,sakishum/gitlabhq,htve/GitlabForChinese,chenrui2014/gitlabhq,initiummedia/gitlabhq,Datacom/gitlabhq,jrjang/gitlab-ce,fgbreel/gitlabhq,Keystion/gitlabhq,zrbsprite/gitlabhq,dreampet/gitlab,ttasanen/gitlabhq,it33/gitlabhq,jrjang/gitlabhq,hacsoc/gitlabhq,yfaizal/gitlabhq,fgbreel/gitlabhq,openwide-java/gitlabhq,yuyue2013/ss,Exeia/gitlabhq,yonglehou/gitlabhq,SVArago/gitlabhq,dplarson/gitlabhq,louahola/gitlabhq,fendoudeqingchunhh/gitlabhq,revaret/gitlabhq,Kambda/Mobbr,flashbuckets/gitlabhq,yonglehou/gitlabhq,ikappas/gitlabhq,SkyWei/gitlabhq,ibiart/gitlabhq,NKMR6194/gitlabhq,koreamic/gitlabhq,cncodog/gitlab,Razer6/gitlabhq,Telekom-PD/gitlabhq,bigsurge/gitlabhq,cui-liqiang/gitlab-ce,sideci-sample/sideci-sample-gitlabhq,Telekom-PD/gitlabhq,axilleas/gitlabhq,rfeese/gitlab-ce,Telekom-PD/gitlabhq,fgbreel/gitlabhq,Kambda/Mobbr,darkrasid/gitlabhq,ibiart/gitlabhq,youprofit/gitlabhq,rumpelsepp/gitlabhq,fpgentil/gitlabhq,Soullivaneuh/gitlabhq,yulchitaj/TEST3,htve/GitlabForChinese,jirutka/gitlabhq,hzy001/gitlabhq,michaKFromParis/gitlabhqold,phinfonet/mobbr-gitlabhq,allistera/gitlabhq,ZeoAlliance/gitlabhq,TheWatcher/gitlabhq,chenrui2014/gitlabhq,windymid/test2,mavimo/gitlabhq,Tyrael/gitlabhq,michaKFromParis/gitlabhq,chadyred/gitlabhq,it33/gitlabhq,ordiychen/gitlabhq,ferdinandrosario/gitlabhq,larryli/gitlabhq,LytayTOUCH/gitlabhq,per-garden/gitlabhq,H3Chief/gitlabhq,cncodog/gitlab,childbamboo/gitlabhq,koreamic/gitlabhq,yatish27/gitlabhq,fantasywind/gitlabhq,screenpages/gitlabhq,szechyjs/gitlabhq,jirutka/gitlabhq,michaKFromParis/gitlabhqold,vjustov/gitlabhq,LUMC/gitlabhq,ttasanen/gitlabhq,iiet/iiet-git,t-zuehlsdorff/gitlabhq,bigsurge/gitlabhq,pulkit21/gitlabhq,louahola/gitlabhq,larryli/gitlabhq,ordiychen/gitlabhq,mente/gitlabhq,kitech/gitlabhq,liyakun/gitlabhq,rfeese/gitlab-ce,OlegGirko/gitlab-ce,lvfeng1130/gitlabhq,ZeoAlliance/gitlabhq,yfaizal/gitlabhq,ngpestelos/gitlabhq,hzy001/gitlabhq,axilleas/gitlabhq,Datacom/gitlabhq,eliasp/gitlabhq,pulkit21/gitlabhq,jvanbaarsen/gitlabhq,Burick/gitlabhq,youprofit/gitlabhq,MauriceMohlek/gitlabhq,cinderblock/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,ordiychen/gitlabhq,ttasanen/gitlabhq,ordiychen/gitlabhq,copystudy/gitlabhq,Razer6/gitlabhq,mathstuf/gitlabhq,theonlydoo/gitlabhq,Datacom/gitlabhq,luzhongyang/gitlabhq,atomaka/gitlabhq,LUMC/gitlabhq,bladealslayer/gitlabhq,per-garden/gitlabhq,aaronsnyder/gitlabhq,flashbuckets/gitlabhq,Devin001/gitlabhq,sonalkr132/gitlabhq,sekcheong/gitlabhq,dvrylc/gitlabhq,kitech/gitlabhq,fearenales/gitlabhq,jrjang/gitlabhq,bozaro/gitlabhq,nguyen-tien-mulodo/gitlabhq,bbodenmiller/gitlabhq,rumpelsepp/gitlabhq,screenpages/gitlabhq,dplarson/gitlabhq,duduribeiro/gitlabhq,rhels/gitlabhq,adaiguoguo/gitlab_globalserarch,dwrensha/gitlabhq,MauriceMohlek/gitlabhq,nmav/gitlabhq,jirutka/gitlabhq,salipro4ever/gitlabhq,sonalkr132/gitlabhq,fantasywind/gitlabhq,fantasywind/gitlabhq,folpindo/gitlabhq,mathstuf/gitlabhq,dwrensha/gitlabhq,jvanbaarsen/gitlabhq,mente/gitlabhq,initiummedia/gitlabhq,gopeter/gitlabhq,nguyen-tien-mulodo/gitlabhq,stoplightio/gitlabhq,williamherry/gitlabhq,hacsoc/gitlabhq,dukex/gitlabhq,copystudy/gitlabhq,ayufan/gitlabhq,jirutka/gitlabhq,johnmyqin/gitlabhq,rumpelsepp/gitlabhq,tk23/gitlabhq,bigsurge/gitlabhq,Soullivaneuh/gitlabhq,OtkurBiz/gitlabhq,sue445/gitlabhq,sakishum/gitlabhq,vjustov/gitlabhq,martijnvermaat/gitlabhq,cinderblock/gitlabhq,stoplightio/gitlabhq,joalmeid/gitlabhq,Burick/gitlabhq,tk23/gitlabhq,copystudy/gitlabhq,vjustov/gitlabhq,michaKFromParis/gitlabhqold,kotaro-dev/gitlab-6-9,openwide-java/gitlabhq,revaret/gitlabhq,fearenales/gitlabhq,ikappas/gitlabhq,salipro4ever/gitlabhq,daiyu/gitlab-zh,kitech/gitlabhq,salipro4ever/gitlabhq,pjknkda/gitlabhq,liyakun/gitlabhq,zBMNForks/gitlabhq,mavimo/gitlabhq,NuLL3rr0r/gitlabhq,sue445/gitlabhq,kemenaran/gitlabhq,zBMNForks/gitlabhq,johnmyqin/gitlabhq,chenrui2014/gitlabhq,NKMR6194/gitlabhq,shinexiao/gitlabhq,bbodenmiller/gitlabhq,fpgentil/gitlabhq,sekcheong/gitlabhq,allysonbarros/gitlabhq,dukex/gitlabhq,yatish27/gitlabhq,rumpelsepp/gitlabhq,SkyWei/gitlabhq,atomaka/gitlabhq,mmkassem/gitlabhq,yuyue2013/ss,nmav/gitlabhq,michaKFromParis/sparkslab,iiet/iiet-git,mr-dxdy/gitlabhq,lvfeng1130/gitlabhq,darkrasid/gitlabhq,dwrensha/gitlabhq,phinfonet/mobbr-gitlabhq,OlegGirko/gitlab-ce,williamherry/gitlabhq,luzhongyang/gitlabhq,whluwit/gitlabhq,adaiguoguo/gitlab_globalserarch,Soullivaneuh/gitlabhq,julianengel/gitlabhq,H3Chief/gitlabhq,stellamiranda/mobbr-gitlabhq,yatish27/gitlabhq,openwide-java/gitlabhq,williamherry/gitlabhq,kemenaran/gitlabhq,bigsurge/gitlabhq,jaepyoung/gitlabhq,ayufan/gitlabhq,hq804116393/gitlabhq,Devin001/gitlabhq,k4zzk/gitlabhq,dreampet/gitlab,chadyred/gitlabhq,tempbottle/gitlabhq,stanhu/gitlabhq,michaKFromParis/sparkslab,fendoudeqingchunhh/gitlabhq,SVArago/gitlabhq,jvanbaarsen/gitlabhq,louahola/gitlabhq,axilleas/gitlabhq,theodi/gitlabhq,LytayTOUCH/gitlabhq,rhels/gitlabhq,fpgentil/gitlabhq,ngpestelos/gitlabhq,DanielZhangQingLong/gitlabhq,NARKOZ/gitlabhq,tk23/gitlabhq,cui-liqiang/gitlab-ce,Razer6/gitlabhq,pkgr/gitlabhq,jvanbaarsen/gitlabhq,k4zzk/gitlabhq,fearenales/gitlabhq,Tyrael/gitlabhq,Exeia/gitlabhq,mrb/gitlabhq,stanhu/gitlabhq,bozaro/gitlabhq,NARKOZ/gitlabhq,TheWatcher/gitlabhq,mathstuf/gitlabhq,martinma4/gitlabhq,mrb/gitlabhq,akumetsuv/gitlab,Datacom/gitlabhq,ikappas/gitlabhq,sakishum/gitlabhq,sekcheong/gitlabhq,childbamboo/gitlabhq,darkrasid/gitlabhq,xuvw/gitlabhq,OtkurBiz/gitlabhq,yonglehou/gitlabhq,mente/gitlabhq,williamherry/gitlabhq,mathstuf/gitlabhq,ksoichiro/gitlabhq,NuLL3rr0r/gitlabhq,LytayTOUCH/gitlabhq,123Haynes/gitlabhq,dreampet/gitlab,pjknkda/gitlabhq,Kambda/mobbr-gitlabhq,hacsoc/gitlabhq,t-zuehlsdorff/gitlabhq,DanielZhangQingLong/gitlabhq,rfeese/gitlab-ce,SVArago/gitlabhq,NKMR6194/gitlabhq,since2014/gitlabhq,ferdinandrosario/gitlabhq,nmav/gitlabhq,delkyd/gitlabhq,Devin001/gitlabhq,nmav/gitlabhq,cui-liqiang/gitlab-ce,t-zuehlsdorff/gitlabhq,iiet/iiet-git,delkyd/gitlabhq,duduribeiro/gitlabhq,WSDC-NITWarangal/gitlabhq,yama07/gitlabhq,stoplightio/gitlabhq,SkyWei/gitlabhq,theodi/gitlabhq,szechyjs/gitlabhq,joalmeid/gitlabhq,lvfeng1130/gitlabhq,WSDC-NITWarangal/gitlabhq,salipro4ever/gitlabhq,dwrensha/gitlabhq,larryli/gitlabhq,sonalkr132/gitlabhq,gopeter/gitlabhq,ksoichiro/gitlabhq,Telekom-PD/gitlabhq,rhels/gitlabhq,WSDC-NITWarangal/gitlabhq,wangcan2014/gitlabhq,nguyen-tien-mulodo/gitlabhq,eliasp/gitlabhq,theonlydoo/gitlabhq,cui-liqiang/gitlab-ce,ikappas/gitlabhq,revaret/gitlabhq,martijnvermaat/gitlabhq,shinexiao/gitlabhq,bladealslayer/gitlabhq,123Haynes/gitlabhq,allysonbarros/gitlabhq,sideci-sample/sideci-sample-gitlabhq,mr-dxdy/gitlabhq,luzhongyang/gitlabhq,folpindo/gitlabhq,dreampet/gitlab,NuLL3rr0r/gitlabhq,koreamic/gitlabhq,akumetsuv/gitlab,rhels/gitlabhq,zBMNForks/gitlabhq,cinderblock/gitlabhq,shinexiao/gitlabhq,dvrylc/gitlabhq,iiet/iiet-git,gorgee/gitlabhq,adaiguoguo/gitlab_globalserarch,manfer/gitlabhq,fendoudeqingchunhh/gitlabhq,fendoudeqingchunhh/gitlabhq,zrbsprite/gitlabhq,sue445/gitlabhq,pulkit21/gitlabhq,fscherwi/gitlabhq,mr-dxdy/gitlabhq,eliasp/gitlabhq,liyakun/gitlabhq,theodi/gitlabhq,yuyue2013/ss,yama07/gitlabhq,delkyd/gitlabhq,chadyred/gitlabhq,LytayTOUCH/gitlabhq,ayufan/gitlabhq,wangcan2014/gitlabhq,lvfeng1130/gitlabhq,allistera/gitlabhq,k4zzk/gitlabhq,per-garden/gitlabhq,openwide-java/gitlabhq,stoplightio/gitlabhq,Keystion/gitlabhq,flashbuckets/gitlabhq,bozaro/gitlabhq,koreamic/gitlabhq,mmkassem/gitlabhq,Tyrael/gitlabhq,icedwater/gitlabhq,per-garden/gitlabhq,Razer6/gitlabhq,yfaizal/gitlabhq,SkyWei/gitlabhq,pkgr/gitlabhq,rebecamendez/gitlabhq,DanielZhangQingLong/gitlabhq,jrjang/gitlab-ce,dvrylc/gitlabhq,zrbsprite/gitlabhq,initiummedia/gitlabhq,hq804116393/gitlabhq,whluwit/gitlabhq,kemenaran/gitlabhq,duduribeiro/gitlabhq,hq804116393/gitlabhq,tempbottle/gitlabhq,michaKFromParis/sparkslab,fscherwi/gitlabhq,phinfonet/mobbr-gitlabhq,theonlydoo/gitlabhq,ksoichiro/gitlabhq,adaiguoguo/gitlab_globalserarch,revaret/gitlabhq,hzy001/gitlabhq,ngpestelos/gitlabhq,yuyue2013/ss,Keystion/gitlabhq,cncodog/gitlab,mrb/gitlabhq,Kambda/mobbr-gitlabhq,sideci-sample/sideci-sample-gitlabhq,Tyrael/gitlabhq,tim-hoff/gitlabhq,atomaka/gitlabhq,NKMR6194/gitlabhq,akumetsuv/gitlab,tk23/gitlabhq,jrjang/gitlab-ce,it33/gitlabhq,szechyjs/gitlabhq,yulchitaj/TEST3,Soullivaneuh/gitlabhq,larryli/gitlabhq,jaepyoung/gitlabhq,tim-hoff/gitlabhq,daiyu/gitlab-zh,tempbottle/gitlabhq,bbodenmiller/gitlabhq,kotaro-dev/gitlab-6-9,Burick/gitlabhq,gopeter/gitlabhq,OlegGirko/gitlab-ce,rebecamendez/gitlabhq,duduribeiro/gitlabhq,rebecamendez/gitlabhq,icedwater/gitlabhq,Keystion/gitlabhq,H3Chief/gitlabhq,cinderblock/gitlabhq,johnmyqin/gitlabhq,michaKFromParis/sparkslab,ibiart/gitlabhq,tempbottle/gitlabhq,vjustov/gitlabhq,yama07/gitlabhq,rfeese/gitlab-ce,manfer/gitlabhq,gopeter/gitlabhq,SVArago/gitlabhq,pkgr/gitlabhq,MauriceMohlek/gitlabhq,initiummedia/gitlabhq,OtkurBiz/gitlabhq,jaepyoung/gitlabhq,fscherwi/gitlabhq,allysonbarros/gitlabhq,since2014/gitlabhq,theodi/gitlabhq,johnmyqin/gitlabhq,gorgee/gitlabhq,kotaro-dev/gitlab-6-9,xuvw/gitlabhq,allysonbarros/gitlabhq,yulchitaj/TEST3,screenpages/gitlabhq,dukex/gitlabhq,wangcan2014/gitlabhq,joalmeid/gitlabhq,aaronsnyder/gitlabhq,OlegGirko/gitlab-ce,michaKFromParis/gitlabhq,martijnvermaat/gitlabhq,since2014/gitlabhq,8thcolor/testing-public-gitlabhq,t-zuehlsdorff/gitlabhq,nguyen-tien-mulodo/gitlabhq,stanhu/gitlabhq,daiyu/gitlab-zh,jrjang/gitlabhq,windymid/test2,chenrui2014/gitlabhq,rebecamendez/gitlabhq,youprofit/gitlabhq,allistera/gitlabhq,Kambda/Mobbr,tim-hoff/gitlabhq,mavimo/gitlabhq,yfaizal/gitlabhq,jaepyoung/gitlabhq,mr-dxdy/gitlabhq,ZeoAlliance/gitlabhq,darkrasid/gitlabhq,yatish27/gitlabhq,kitech/gitlabhq,ferdinandrosario/gitlabhq,louahola/gitlabhq,yama07/gitlabhq,Burick/gitlabhq,mrb/gitlabhq,julianengel/gitlabhq,luzhongyang/gitlabhq,icedwater/gitlabhq,julianengel/gitlabhq,whluwit/gitlabhq,bladealslayer/gitlabhq,8thcolor/testing-public-gitlabhq,dukex/gitlabhq,flashbuckets/gitlabhq,it33/gitlabhq,stellamiranda/mobbr-gitlabhq,bbodenmiller/gitlabhq,manfer/gitlabhq,jrjang/gitlab-ce,delkyd/gitlabhq,NARKOZ/gitlabhq,LUMC/gitlabhq,theonlydoo/gitlabhq,szechyjs/gitlabhq,ferdinandrosario/gitlabhq,pjknkda/gitlabhq,michaKFromParis/gitlabhqold,TheWatcher/gitlabhq,dvrylc/gitlabhq,LUMC/gitlabhq,mmkassem/gitlabhq,xuvw/gitlabhq,mente/gitlabhq,screenpages/gitlabhq,stellamiranda/mobbr-gitlabhq,zrbsprite/gitlabhq,ttasanen/gitlabhq,martinma4/gitlabhq,whluwit/gitlabhq,pjknkda/gitlabhq,htve/GitlabForChinese,yulchitaj/TEST3,allistera/gitlabhq,jrjang/gitlabhq,daiyu/gitlab-zh,fscherwi/gitlabhq,ngpestelos/gitlabhq,MauriceMohlek/gitlabhq,sekcheong/gitlabhq,martinma4/gitlabhq,gorgee/gitlabhq,8thcolor/testing-public-gitlabhq,yonglehou/gitlabhq,Devin001/gitlabhq,sue445/gitlabhq,copystudy/gitlabhq,martinma4/gitlabhq,martijnvermaat/gitlabhq,Exeia/gitlabhq,hq804116393/gitlabhq,sonalkr132/gitlabhq,michaKFromParis/gitlabhq,cncodog/gitlab,Kambda/mobbr-gitlabhq,wangcan2014/gitlabhq,shinexiao/gitlabhq,aaronsnyder/gitlabhq,htve/GitlabForChinese,k4zzk/gitlabhq,gorgee/gitlabhq,hacsoc/gitlabhq,bozaro/gitlabhq,fpgentil/gitlabhq,windymid/test2,mavimo/gitlabhq,TheWatcher/gitlabhq,julianengel/gitlabhq,ksoichiro/gitlabhq,since2014/gitlabhq,folpindo/gitlabhq,fgbreel/gitlabhq,DanielZhangQingLong/gitlabhq,fearenales/gitlabhq,childbamboo/gitlabhq,OtkurBiz/gitlabhq,ayufan/gitlabhq,joalmeid/gitlabhq,tim-hoff/gitlabhq,manfer/gitlabhq