Skip to content

🙋 问题交流。。。关于LDAP中的uidNumber~~ | [Question] Some question... #383

@AbyssGith

Description

@AbyssGith

Question Report

请在提交问题之前回答这些问题,谢谢。 | Please answer these questions before submitting them. Thank you.

你使用了哪个版本? | Which version did you use?

v0.5.17,openldap2.4.50

预期行为 | Expected behavior

外部应用对接的配置文件中需要使用LDAP中的uidNumber

实际行为 | Actual behavior

没能查到uidNumber

原因分析(如果可以) | Cause analysis (if possible)

. AI搜索结果解读
​成功但无数据:
若搜索结果返回 uidNumber 为 null,说明用户条目未正确配置 posixAccount 类或未赋值 uidNumber。
​3. 对象类依赖关系
posixAccount 的必要性
uidNumber 是 posixAccount 类的 ​强制属性​(MUST),若用户条目未添加此类,uidNumber 无法被查询。

问题重现步骤 | Steps to reproduce the problem

ldapsearch -x -D "cn=admin,dc=eryajf,dc=net" -w <密码>
-b "ou=people,dc=eryajf,dc=net"
"(&(objectClass=inetOrgPerson)(objectClass=posixAccount))" uid uidNumber

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactivequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions