doujianzhi3358 2016-09-29 05:54
浏览 126
已采纳

PHP LDAP - 获取内部字段

I have a LDAP system already in place that has some internal fields such as entryUUID. Is there anyway to retrieve the value of the fields as currently

$filter = "(mail=".$email.")";

$result = ldap_search($client_LDAP->client_ldap_connection, $base_dc, $filter);
$info = ldap_get_entries($client_LDAP->client_ldap_connection, $result);

doesn't display them only retrieves the main data (cn, ou, name, email ...etc)

  • 写回答

2条回答 默认 最新

  • douyue4334 2016-09-29 10:10
    关注

    You can retrieve them using '+' as attribute-name.

    So you should be able to fetch them using ldap_search($client_LDAP->client_ldap_connection, $base_dc, $filter, ['+']);

    Note that this will only retrieve the internal entries as no other attributes are defined within that last parameter to ldap_search.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 微信小程序跑脚本授权的问题
  • ¥100 房产抖音小程序苹果搜不到安卓可以付费悬赏
  • ¥15 STM32串口接收问题
  • ¥15 腾讯IOA系统怎么在文件夹里修改办公网络的连接
  • ¥15 filenotfounderror:文件是存在的,权限也给了,但还一直报错
  • ¥15 MATLAB和mosek的求解问题
  • ¥20 修改中兴光猫sn的时候提示失败
  • ¥15 java大作业爬取网页
  • ¥15 怎么获取欧易的btc永续合约和交割合约的5m级的历史数据用来回测套利策略?
  • ¥15 有没有办法利用libusb读取usb设备数据