LDAP -samba设置问题

时间:2012-02-08 13:21:46

标签: ubuntu ldap openldap ldapconnection

``我完成了设置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!

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

1 个答案:

答案 0 :(得分: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 https://bugs.launchpad.net/ubuntu/+source/smbldap-tools/+bug/1006272中缺少

configure.pl,你需要从某个地方找到一个,我从10.04的旧安装中选择了一个,可能(或可能没有)导致下一个问题

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

最后,为了理解linux级别的内容,您可能希望它也能看到ldap用户,所以您之后应该遵循本教程https://help.ubuntu.com/community/LDAPClientAuthentication