In my LDAP system, I can display all organizations. From that list, I
need to link to a summary page. I have been trying to do this by
passing the DN in the query string, and then using this function to
retrieve the data:
function viewOrganization($db, $value){
global $display;
$rs=ldap_read($db->ds, $db->dn, '(dn='.$value.')');
if(!$rs){
$display->errors=true;
$display->errorM.='<p><strong>ERROR:
'.ldap_error($ds).'</strong></p>';
}
if(!$display->errors){
$info = ldap_get_entries($db->ds, $rs);
print_r($info);
}
}
The problem is that if I pass the DN, $info is always empty.
If I modify things so that I pass the value of the custom RECORDID
attribute, then it works fine. So why can't I retrieve on the DN?
--
Randal Rust
R.Squared Communications
www.r2communications.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php