LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 726|回复: 0

samba不能启动了,求助各位!

[复制链接]
发表于 2007-1-12 21:57:48 | 显示全部楼层 |阅读模式
我的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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表