文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络程序开发其他语言samba和openldap结合实战
精品推荐
特别推荐
·控制面板知多少
·给你十条学习Ruby语言的理由
·分页管理机制
·Perl 语言的重要价值体现
·经验技巧:分享两条Delphi开发经验
·Java编程思想:面向对象的逻辑思维方法
·Samba系统简介
热点TOP10
·EZ-USB 68013A开发指南
·MyEclipse JSF 快速入门中文版(上)
·图象处理中的边缘检测------canny算子
·简单架设Jabber 局域网即时通讯服务器
·visual studio 2005 简体中文团队开发版 SQL server 2005简体中文版下载
·ARM MPlayer移植过程
·Visual FoxPro 9.0 SP2正式版下载
·视频与图像RGB/YUV格式详解
·Visual C++ ADO数据库编程入门
·Microsoft Windows CE系统介绍

samba和openldap结合实战

日期:2008年4月9日 作者:Fandy 查看:[大字体 中字体 小字体]


nss_base_group ou=Groups,dc=easy,dc=com?one

TLS_CACERTDIR /etc/openldap/cacerts
更改为:
# TLS_CACERTDIR /etc/openldap/cacerts

重新启动OpenLDAP服务器项目,详细操作如下:

详细操作:
# service ldap restart

停止 slapd: [ 确定 ]
检查 slapd 的配置文件:config file testing succeeded
启动 slapd: [ 确定 ]

查看OpenLDAP服务器端口是否被监听,详细操作如下:

详细操作:
# netstat -an grep 389

tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
tcp 0 0 :::389 :::* LISTEN

 

Samba的详细配置过程:

在配置smb.conf前,先备份原smb.conf文件:

详细操作:
# cp /etc/samba/smb.conf /etc/samba/backup_smb.conf

Samba的主要配置文件/etc/samba/smb.conf,其实系统中存有一个实际的例子配置文件可提供参考,只要更换成例子文件和按照自己的实际情况做一定的修改就可供使用:

详细操作:
# cp /usr/share/doc/smbldap-tools-0.9.1/smb.conf /etc/samba/

cp:是否覆盖‘/etc/samba/smb.conf’? y

修改/etc/samba/smb.conf文件,以下为完整文件的详细内容::

详细配置内容:
############################## Global parameters############################

[global]
workgroup = easy-pdc
netbios name = PDC
server string = Samba Server %v
log file = /var/log/samba/log.%m
security = user
encrypt passwords = Yes
obey pam restrictions = No
ldap passwd sync = Yes
log level = 3
syslog = 0
max log size = 100000
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = UTF-8
Unix charset = UTF-8
logon script = %U.bat
logon drive = H:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes

继续smb.conf文件内容:

详细配置内容:
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=Manager,dc=easy,dc=com
ldap suffix = dc=easy,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap ssl = off
ldap delete dn = Yes
add user script = /sbin/smbldap-useradd -m "%u"
add machine script = /sbin/smbldap-useradd -t 0 -w "%u"
add group script = /sbin/smbldap-groupadd -p "%g"
add user to group script = /sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /sbin/smbldap-usermod -g '%g' '%u'

############################## Homes parameters ############################

[homes]
comment = repertoire de %U, %u
browseable = no
writeable = yes
read only = no
force create mode = 0700
create mode = 0700
force directory mode = 0700
directory mode = 700

############################# Netlogone parameters ##########################

[netlogon]

上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 下一页 




上一篇:GoogleMaps探秘

下一篇:CSDN blog 添加音乐和天气预报效果

相关文章:
·实战台湾麻将
·实战Photoshop 给婚纱照片换背景
·ADSL搭配无线路由器组网实战图解
·还原精灵实战
·攻防实战 入侵邻居MM家的无线路由器
·CorelDRAW实战:彩色平面图设计
·Uedit32编辑器与SQLPlus结合使用技巧
·CAD对齐命令实战运用
·用XML数据岛结合Dom制作通讯录
·风雨雷电→自然现象动画实战技术
相关软件:

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.vipcn.net
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.vipcn.net All Rights Reserved. 鄂ICP备05000083号Powered by:viphot