0

``我已经完成了 phpldapadmin 的设置,创建了 OU,CN,......不同的用户,我可以从不同的计算机登录 ldap 用户

目前我正在使用 ldap-samba 并使用此链接:

  • http://ubuntuforums.org/showthread.php?t=1683595

我被困在这一点上:

net getlocalsid

在这里我得到如下错误:

[2012/02/08 15:37:23,  0] passdb/secrets.c:71(secrets_init)

  Failed to open /var/lib/samba/secrets.tdb

[2012/02/08 15:37:23,  0] passdb/secrets.c:71(secrets_init)

  Failed to open /var/lib/samba/secrets.tdb

[2012/02/08 15:37:23,  0] passdb/secrets.c:914(fetch_ldap_pw)

  fetch_ldap_pw: neither ldap secret retrieved!

[2012/02/08 15:37:23,  0] lib/smbldap.c:1046(smbldap_connect_system)




  ldap_connect_system: Failed to retrieve password from secrets.tdb

[2012/02/08 15:37:24,  0] passdb/secrets.c:71(secrets_init)

  Failed to open /var/lib/samba/secrets.tdb


[2012/02/08 15:37:24,  0] passdb/secrets.c:71(secrets_init)

  Failed to open /var/lib/samba/secrets.tdb

[2012/02/08 15:37:24,  0] passdb/secrets.c:914(fetch_ldap_pw)

  fetch_ldap_pw: neither ldap secret retrieved!

这里的日志详细信息:

[2012/02/08 14:05:18,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 3 try!

[2012/02/08 14:05:19,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 4 try!

[2012/02/08 14:05:20,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 5 try!

[2012/02/08 14:05:21,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 6 try!

[2012/02/08 14:05:22,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 7 try!

[2012/02/08 14:05:23,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 8 try!

[2012/02/08 14:05:24,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 9 try!

[2012/02/08 14:05:25,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 10 try!

[2012/02/08 14:05:26,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 11 try!

[2012/02/08 14:05:27,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 12 try!

[2012/02/08 14:05:28,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 13 try!

[2012/02/08 14:05:29,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 14 try!

[2012/02/08 14:05:30,  1] lib/smbldap.c:1265(another_ldap_try)

  Connection to LDAP server failed for the 15 try!

我迷路了,任何人都可以帮助我吗?

4

1 回答 1

0

好的,这是旧的,但我有这个并修复了它。

首次安装 openLDAP 时,您需要确保 hosts 文件包含您的域的条目(位于 OpenLDAP 页面上 。https://help.ubuntu.com/12.04/serverguide/openldap-server.html)然后创建您以后可以使用的域条目。

但是,该教程在 12.04 上还有很多其他问题。值得在这里收集它们供某人使用

smbldap_tools.pm 坏了,您需要按照http://ubuntuforums.org/showthread.php?t=1988204上的说明进行操作

smbldaptools 中缺少 configure.pl https://bugs.launchpad.net/ubuntu/+source/smbldap-tools/+bug/1006272你需要从某个地方找到一个,我从 10.04 的旧安装中拿了一个,whihc可能(或可能不会)导致下一个问题

uid/gid 对没有与 ubuntu 在安装时使用的那些正确分开(即,您在安装时创建的 sudo 用户被重新用于您添加的第一个 ldap 用户)。我认为这是https://mail.gna.org/public/smbldap-tools-tech/2011-09/msg00000.html whihc 也是 https://bugs.launchpad.net/ubuntu/+source/smbldap -tools/+bug/531257我还没有设法解决这个问题。

最后,为了在 linux 级别理解事物,您可能希望它也能看到 ldap 用户,因此您应该在之后遵循本教程 https://help.ubuntu.com/community/LDAPClientAuthentication

于 2012-06-06T10:33:01.867 回答