adldap = $adldap; } /** * Displays the all LDAP users. * * @return \Illuminate\View\View */ public function index() { $users = $this->adldap->getDefaultProvider()->search()->users()->find('emerson'); $users = $this->adldap->getDefaultProvider()->search()->where('sn','=','*warley*')->get(); /*if($this->adldap->user()->inGroup($username,"SIRKit Staff")) { $ldap_user_info = $this->adldap->user()->info($username); $ldap_user_name = $ldap_user_info[0]["displayname"][0]; }*/ dd($users); //dd($ldap_user_name);*/ //$users = $this->adldap->getDefaultProvider()->groups("1674170")->get(); //dd($users); //$projeto = Projetos::orderBy('id', 'desc')->paginate(10); //return view('index2')->withProjetos($projeto); return view('index2', compact('users')); } }