Change the scope from 'base' to 'sub'. From your description, it sounds like the LDAP search is only doing a 'base' search (only looking in the current OU). Changing the scope to 'sub' would allow the search to look at the current OU and all OUs underneath it.
If they don't give you that option, you're probably out of luck. The only other solution would be to stuff all of your users into one OU, which is probably not what you want to do. AG > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, January 23, 2006 1:06 PM > To: perl-ldap@perl.org; [EMAIL PROTECTED] > Subject: ok it uses php, buts it an LDAP Q all the same > > > Hi, > > With my org we are running MS active directory 2000, we have populated > user details with AD to include user phone Extensions. > We have recently invested in an Avaya IP telephone solution which is > working gr8 > On the Avaya site they offer code for a webserver that these > phones can > be point to, this webserver offers the client(phone) the ability to > query Active directory to recieve back the extension number. > Whilst configuring this webserver one of the questions is > LDAP search base (ex. ou=people,o=avaya.com) > Here is my problem, when I enter > OU=Users, OU=Country, OU=Offices, DC=company, DC=com > It works and gives the results of all users with x country > What my problem is, our AD structure is divided into many users > seperated at the OU=Country level and if I try some like > OU=Users, OU=*, OU=Offices, DC=company, DC=com > it fails, if I try using a search base such as > OU=Offices, DC=company, DC=com > it fails. > Will the design of our AD restrict use from searching our full AD or > can someone suggest a solution? > > thank you in advance > Jon > >