首页 文章

在ldap服务器中添加条目

提问于
浏览
1

我试图通过引用这个问题的答案[Ruby net-ldap add user]使用ruby net / ldap gem在我的openldap服务器中添加条目,我收到错误'modifications require authentication' . 我不明白在身份验证方法中提供哪些用户名和密码 . 什么应该登录并传递上述答案?我'm totally new to this topic so not sure what will be the username and password as I have' nt已创建任何用户 .

提前致谢!

1 回答

  • 2

    您需要对在LDAP中具有写权限的用户进行身份验证(例如,可能是管理员或其他人) . 是该用户将创建您的新条目 .

    ldap.auth admin_dn, admin_pass
    ldap.add(...)
    

相关问题