Samba/LDAP configuration (RHEL5)
luyued 发布于 2011-05-31 17:55 浏览 N 次
IntroductionA straightforward tutorial to configure Samba/LDAP as a Primary Domain Controller / Directory on RHEL5.
RequirementsMake sure you've got those RHEL packages installed,rpm -q \openldap \openldap-clients \openldap-servers \nss_ldap \samba \samba-client \perl-DBI \perl-Convert-ASN1 \perl-XML-NamespaceSupport \perl-XML-SAX \perl-Net-SSLeay \perl-IO-Socket-SSL \perl-LDAP \perl-Digest-SHA1Note. the "nss_ldap" package provides the PAM/LDAP library,ls -l /lib/security/pam_ldap.so
Plus those few ones from EPEL (fedoraproject.org/wiki/EPEL),mkdir epelsmbldap/cd epelsmbldap/wget download.fedora.redhat.com/pub/epel/5/i386/perl-Crypt-SmbHash-0.12-6.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Digest-MD4-1.5-4.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Jcode-2.06-6.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-Map-0.112-12.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-Map8-0.12-15.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-MapUTF8-1.11-7.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-String-2.09-7.el5.i386.rpmrpm -ivh *.rpmcd ../rpm -q \perl-Crypt-SmbHash \perl-Digest-MD4 \perl-Jcode \perl-Unicode-Map \perl-Unicode-Map8 \perl-Unicode-MapUTF8 \perl-Unicode-String
Network settingsConfigure at least local static lookups,vi /etc/hostslike e.g.,127.0.0.1 localhostSERVER_IP lusers.example.net lusers
OpenLDAP serverAdd that schema,cd /etc/openldap/schema/#cp /usr/share/doc/samba-3.0.25b/LDAP/samba.schema ./cp /usr/share/doc/samba-3.0.33/LDAP/samba.schema ./
Configure the daemon,cd /etc/openldap/slappasswd# (copy/paste the SSHA password into the following configuration)mv slapd.conf slapd.conf.distcat > slapd.conf <
RequirementsMake sure you've got those RHEL packages installed,rpm -q \openldap \openldap-clients \openldap-servers \nss_ldap \samba \samba-client \perl-DBI \perl-Convert-ASN1 \perl-XML-NamespaceSupport \perl-XML-SAX \perl-Net-SSLeay \perl-IO-Socket-SSL \perl-LDAP \perl-Digest-SHA1Note. the "nss_ldap" package provides the PAM/LDAP library,ls -l /lib/security/pam_ldap.so
Plus those few ones from EPEL (fedoraproject.org/wiki/EPEL),mkdir epelsmbldap/cd epelsmbldap/wget download.fedora.redhat.com/pub/epel/5/i386/perl-Crypt-SmbHash-0.12-6.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Digest-MD4-1.5-4.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Jcode-2.06-6.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-Map-0.112-12.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-Map8-0.12-15.el5.i386.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-MapUTF8-1.11-7.el5.noarch.rpmwget download.fedora.redhat.com/pub/epel/5/i386/perl-Unicode-String-2.09-7.el5.i386.rpmrpm -ivh *.rpmcd ../rpm -q \perl-Crypt-SmbHash \perl-Digest-MD4 \perl-Jcode \perl-Unicode-Map \perl-Unicode-Map8 \perl-Unicode-MapUTF8 \perl-Unicode-String
Network settingsConfigure at least local static lookups,vi /etc/hostslike e.g.,127.0.0.1 localhostSERVER_IP lusers.example.net lusers
OpenLDAP serverAdd that schema,cd /etc/openldap/schema/#cp /usr/share/doc/samba-3.0.25b/LDAP/samba.schema ./cp /usr/share/doc/samba-3.0.33/LDAP/samba.schema ./
Configure the daemon,cd /etc/openldap/slappasswd# (copy/paste the SSHA password into the following configuration)mv slapd.conf slapd.conf.distcat > slapd.conf <
上一篇:如何配置linux的smb服务器 下一篇:爱鸟节
相关资讯
- 07-01· 北凉国的那些事(组诗)
- 07-01· 《乱世佛音》 第七章 巨变
- 07-01· 南匈奴始末(3)
- 06-30· 流浪在波希米尼亚
- 06-30· 希尼亚从大洋西岸放飞新
- 06-28· 瑪利亞之城 - 家庭日 "光
- 06-28· 至青年营弟兄姐妹的一封
- 06-26· 《三国群英大富翁》追忆
- 06-24· 东莞血汗工厂实录(281:沙田
- 06-22· 第一次看戏
最新资讯
- 06-22· 经典复刻,独一无二:试
- 06-22· 蓝旗营教学中心9月份盛大
- 06-22· 品牌折扣女装嫣然品牌折
- 06-21· IQVopdnkvdz 1100
- 06-21· kriyoylto8fyds'p;tyijyfuifiogoi
- 06-21· 巴黎春天缤纷圣诞 喜迎新
- 06-21· 晒JS宝宝贝贝些 咯
- 06-21· 司马氏的谥法和葬仪
- 06-21· [转载]司马氏的谥法和葬仪
- 06-21· 闲来蓟县看秋山