I've got a problem with these two ldap-attributes:
facsimileTelephoneNumber and
physicalDeliveryOfficeName

With a "ldapget_entries" I get any information from a ADS I want to have, except those two.
I can do a "ldap-modify" - and it works (I can see it with VBA). But I will get no return with ldlap_get_entries.
Any idea?
Thanks!

<?php
$ds=ldap_connect("000.0.0.0")or die("Keine Verbindung zum LDAP server möglich.");
$ldaprdn = 'xxx';
$ldappass = 'xxx';

if ($ds) {

$r=ldap_bind($ds,$ldaprdn,$ldappass);

$filter="(&(sn=xxx)(givenname=xxx))";

$filter);
$diese=array("mail","sn","cn","facsimileTelephoneNumber","l","telephonenumber","wwwhomepage","description","physicalDeliveryOfficeName");
$sr=ldap_search($ds,"OU=Organisation,dc=xxx,dc=de", $filter, $diese );

$info = ldap_get_entries($ds, $sr);

for ($i=0; $i<$info["count"]; $i++) {
echo $info[$i]["cn"][0]."<br>";
echo $info[$i]["wwwhomepage"][0]."<br>";
echo $info[$i]["telephonenumber"][0]."<br>";
echo $info[$i]["description"][0]."<br>";
echo $info[$i]["facsimileTelephoneNumber"]."<br>";
echo $info[$i]["facsimileTelephoneNumber"][0]."<br>";
echo $info[$i]["physicalDeliveryOfficeName"][0]."<br>";
echo $info[$i]["businesscategory"][0]."<br>";
echo $info[$i]["mail"][0]."<br>";
echo "b";
}
}
?>:queasy:

    All ADS fields are in lower case, so the office field is:

    physicaldeliveryofficename

    However, I can't seem to find the fax number either. My script actually pulls every field, not just a few, and I still don't see it. Even if the field name was to be incorrect, searching the output for the content of the field failed too.

    HTH

      Thanks a lot. Write data - uppercase makes no problems. Read data - only in lowercase.
      Strange - but it works!
      The "facsimileTelephoneNumber " field exists - you can see it only if there are data inside.

        Write a Reply...