note 61101 added to function.ldap-search

From: Date: Wed, 25 Jan 2006 18:30:47 +0000
Subject: note 61101 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-102438@lists.php.net to get a copy of this message
I'm trying to create a list of users from a specific OU and export it to a text file. Have have a search function setup to get the usernames, but I can't figure out how to create a filter that will get everyone. $searchfilter = "description=*"; //not sure what to type here $searchdn = "OU=Student Accounts,DC=mtmercy,DC=edu"; $searchresults = ldap_search($ldaplink, $searchdn, $searchfilter); $fe = ldap_first_entry($ldaplink, $searchresults); This is probably really simple but I'm kinda new to php. Thanks in advance. ---- Server IP: 64.71.164.2 Probable Submitter: 192.251.94.253 ---- Manual Page -- http://www.php.net/manual/en/function.ldap-search.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61101 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61101&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61101&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102438) next »