Solved

How to pull fax number using adLDAP

Posted on 2012-04-12
4
376 Views
Last Modified: 2012-04-12
I have the code below and for some reason I am unable to pull the fax number. I keep getting Undefined index: fax. i know this is working because I tried sn and it gives me the last name of the user.

$username = $row['login'];
$userinfo = $adldap->user()->info($username, array("*"));
$efax = $userinfo[0]["fax"][0]; 
$telephone = $userinfo[0]["telephone"][0]; 
echo $efax;
echo $telephone;

Open in new window

0
Comment
Question by:maximus81
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 125 total points
ID: 37839874
0
 

Author Comment

by:maximus81
ID: 37839895
Got the same error with facsimileTelephoneNumber.
0
 
LVL 26

Assisted Solution

by:pony10us
pony10us earned 125 total points
ID: 37839917
The two available locations for a fax number:

facsimiletelephonenumber
otherfacsimiletelephonenumber

Try all lower case.
0
 

Author Comment

by:maximus81
ID: 37839920
It was because it wasn't all lowercase. Its working now. Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This article runs through the process of deploying a single EXE application selectively to a group of user.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question