I'm taking over where a 3rd party group left off, but left o docs behind.
We're using iPlanet LDAP with Netscape Console 4.2.
I can add values to a field, say phonenumber in the console, but can't pull them with PHP. I use the code below...
$info = ldap_get_entries($ds, $sr);
print "Data for ".$info["count"]." items returned:<p>";
$which=0;
while (list ($key, $val) = each ($info)){
print "<h3>Entry=".$key."</h3>";
for ($g=0; $g<count($val); $g++) {
print "<b>key </b>".$g."= ".$val[$g]."<b> : value= </b>".$info[$which][$val[$g]][0] ."<br>";
if(count($info[$which][$val[$g]])>1){
for ($gg=1; $gg<count($info[$which][$val[$g]]); $gg++) {
if($info[$which][$val[$g]][$gg]!=""){print "<b>value= </b>".$info[$which][$val[$g]][$gg] ."<br>";}
}
}
}
$which++;
}
Any ideas? I've looked through the NEtscape Console and iPlanet (now Sun) manuals, but have found nothing that might help me out.
Thanks,
Biggus