您的位置:首页 > 服装鞋帽 > 男装 > Samba/LDAP configuration (RHEL5)

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 <
广告赞助商