openldap 和 samba 错误

openldap 和 samba 错误

我在尝试使用 samba 在 ubuntu 服务器上设置 ldap 时遇到错误。我绝不是 Linux 专家,但我正在努力学习。我在网上寻找答案,但没有找到任何有用的东西。

我正在使用本指南http://ubuntuforums.org/showthread.php?t=1330637

我正在运行的命令是

net getlocalsid

再补充一点。我已经安装了 php ldap admin,可以正常连接。

smbldap_search_domain_info: Adding domain info for test.com failed with  NT_STATUS_UNSUCCESSFUL
pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain. We cannot work reliably without it.
pdb backend ldapsam:ldap://192.168.10.1 did not correctly init (error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO)
WARNING: Could not open passdb

这是我编辑过的区域的 smb conf 文件。

[global]
 # Domain name ..
  workgroup = test.com
  # Server name - as seen by Windows PCs ..
  netbios name = testserver
  # Be a PDC ..
  domain logons = Yes
  domain master = Yes
  # Be a WINS server ..
  wins support = true

   obey pam restrictions = Yes
  dns proxy = No
  os level = 35
  log file = /var/log/samba/log.%m
  max log size = 1000
  syslog = 0
  panic action = /usr/share/samba/panic-action %d
  pam password change = Yes

   # Allows users on WinXP PCs to change their password when they press      Ctrl-Alt-Del
  unix password sync = no
  ldap passwd sync = yes

   # Printing from PCs will go via CUPS ..
  load printers = yes
  printing = cups
  printcap name = cups

   # Use LDAP for Samba user accounts and groups ..
 # passdb backend = ldapsam:ldap://localhost
  passdb backend = ldapsam:ldap://192.168.10.1

   # This must match init.ldif ..
  ldap suffix = dc=test,dc=com
  # The password for cn=admin MUST be stored in /etc/samba/secrets.tdb
  # This is done by running 'sudo smbpasswd -w'.      
  ldap admin dn= cn=admin,dc=test,dc=com

相关内容