免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2153 | 回复: 2
打印 上一主题 下一主题

[samba] samba不能啟動了,求救! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-12 14:27 |只看该作者 |倒序浏览
我的samba-3.0.23c是通過tar.gz後安裝的,路徑在 /usr/local/samba裏。smb.conf的路徑是:/usr/local/samba/lib/smb.conf

如果不把下列的語句添加進去的話,samba的使用一切正常。


       ldap suffix = dc=mygroup,dc=com
       ldap machine suffix = ou=Machines
       ldap user suffix = ou=Users
       ldap group suffix = ou=Groups
       ldap idmap suffix = ou=Idmap
       ldap admin dn = cn=Manager,dc=mygroup,dc=com
       passdb backend = ldapsam:ldap://127.0.0.1/

       add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"
       ldap delete dn = Yes
       delete user script = /opt/IDEALX/sbin/smbldap-userdel "%u"
       add machine script = /opt/IDEALX/sbin/smbldap-useradd -t 0 -w "%u"
       add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"
       delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
       add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m "%u" "%g"
       delete user from group script = /opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"
       set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g '%g' '%u'


但是上述的語句一旦被添加進去後,samba就不能正常啟用了。會出下以下的錯誤提示,請各位幫幫看看:

[root@sz-mail02 lib]# ../bin/smbclient -L sz-mail02
Error connecting to 127.0.0.1 (Connection refused)
Connection to sz-mail02 failed

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2007-01-15 22:51 |只看该作者
你想让samba做什么?

论坛徽章:
0
3 [报告]
发表于 2007-01-15 22:52 |只看该作者
想让samba整合openldap来使用呀。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP