duanqian2368 2012-08-21 10:47
浏览 40
已采纳

Symfony / LDAP查询返回一个空数组

I am using the bhLDAP plugin with the symfony framework.

I am making an LDAP query on user login which will return specific results, then using those results to assign user privileges to sfGuargAuth.

I can pull a query from one specific group, but none of the others. All other queries return an empty query.

Are there security permissions that need to be addressed on the LDAP side?

This is the function I am using to call the query:

  //grab LDAP info to store into new user table
  public static function user_values($username) {

      $entries = self::getLDAP()->user_values($username);
      return $entries;  
  } 

I can provide further code if needed. I am not really sure what to provide as I am out of my wheelhouse on LDAP.

  • 写回答

1条回答 默认 最新

  • dqwnxdhb88531 2012-09-02 17:12
    关注

    While it depends which LDAP backend you are using, in terms of the mechanics of assigning the rights, all of them have a similar basic notion of permissions.

    The bind DN, the user you connect with to LDAP, must have sufficient rights to see the objects you are querying about.

    Usually the account will need READ permissions to the various objects, and depending on how inheritance works in your backend LDAP server you may need to grant it more often than you would like.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部