【问题标题】:How to add posixAccount and posixGroup attributes in ApacheDS?如何在 ApacheDS 中添加 posixAccount 和 posixGroup 属性?
【发布时间】:2015-06-01 01:08:33
【问题描述】:

我正在使用 Apache Directory Studio(OpenSUSE(12) 和 Windows 7 上的版本 2.0.0),尝试将 posixAccount 属性添加到用户并将 posixGroup 属性添加到组。我已遵循以下链接的建议:

http://bit.ly/1EISJWs

http://bit.ly/1EblT5R

通过将 m-disabled 设置为 FALSE 来启用 NIS 架构。但是,在重新启动 LDAP 服务器和 ApacheDS 本身之后,我仍然无法将 posixAccount 或 posixGroup 属性添加到现有条目 - 它们在要添加的属性列表中不可用。

我目前的解决方法是通过命令行使用ldapadd,如下:

ldapadd -h <LDAP_SERVER_IP_ADDRESS>:<LDAP_PORT> -x -D "uid=username,ou=users,o=organisationName" -w userPassword -f /path/to/ldap_config_update

文件“ldap_config_update”包含以下内容:

dn: uid=dtrotter,ou=groups,o=organisationName
givenName: Derek
sn: Trotter
uidNumber: 1000
gigNubmer: 1025
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
uid: dtrotter
cn: Del Boy
userPassword: plonker123!

很高兴知道如何通过 ApacheDS GUI 实现这一点。

【问题讨论】:

    标签: apacheds


    【解决方案1】:
    1. 打开 ldap 客户端(在我的例子中是 Apache 目录 Studio)
    2. 导航到 cn=nis,ou=schema
    3. 将 m-disabled 属性从 TRUE 更改为 FALSE
    4. 从列表中查找 posix 类时不要忘记按刷新按钮

    【讨论】:

    • 我没有模式下拉选项。我必须搜索 cn=nis 并找到它。
    【解决方案2】:

    我也在为此苦苦挣扎。终于为我工作了。显然有一个陈旧的缓存问题正在发生。为了使 posixGroup 可用,您必须:

    1. 按照here 的说明启用 NIS 架构

    2. 关闭连接

    3. 重新连接

    4. 添加新条目时,请确保点击对象类文本字段旁边的刷新按钮。

    5. posixGroup 和其他 NIS 类应该终于可用了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-28
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      相关资源
      最近更新 更多