LDAP - LDAP OpenLDAP - postfix qpopper - LDAP heartbeat mon

Similar documents
OpenLDAPの最新動向

LDAP サーバと統合するための ISE の設定

HDE Controller X 1-9. LDAP

WindowsでLDAP運用のこつ

ODBC ドライバ ここでは SLAPD-SQL の設定で ODBC ドライバとして unixodbc を利用する例を示す unixodbc は にあり Linux でも使える ここでは unixodbc ドライバがインストールされていることを前提に

Samba/LDAPによる既存複数Windowsドメインの統合とその方式比較

OSSTech_JICS2017セッション資料

SLAMD導入手順

Fedora Directory Server / Sun Java System Directory Server

P 葛生和人.indd

カスタム スキーマと証明書を使った ASA Anyconnect VPN および OpenLDAP 認証の設定例

OpenLDAPのsyncreplレプリケーション

スキーマってなんだろう 2007/10/06 OSC2007Tokyo/Fall

Oracle Internet Directoryを使用したUNIX認証およびユーザー・プロビジョニングの一元化

OSSTechドキュメント

dvi

Mac OS X Server Windows NTからの移行


証明書検証サーバの概要

オープンソース・ソリューション・テクノロジ株式会社

スライド 1

iNotes_PDF.ps

postldapadmin 1.00 版 2007 年 10 月 12 日

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

OSSTechドキュメント

1

Trend Micro InterScan Web Security Suite Windows版 管理者ガイド

IP IP DHCP..

FileMaker Server Getting Started Guide

GA-1190J

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

Configuring_01

untitled

FileMaker Server 9 Getting Started Guide

iNotes_PDF.ps

Si-R180 ご利用にあたって

CAS Yale Open Source software Authentication Authorization (nu-cas) Backend Database Authentication Authorization Powered by A

untitled

install

Vol. 9 No. 2 DNS. DNS IP.... leopard.loc. DNS. Mac OS X Server. Web Mac OS X Server Mac OS X Server.. DNS DNS DNS example.com DNS

SRT/RTX/RT設定例集

debian_manual.dvi

橡C12電子メール最新技術動向revisd.PDF

00.目次_ope

Epson Print Admin

設定例集_Rev.8.03, Rev.9.00, Rev.10.01対応

FileMaker Server Help

連絡先

Lync Server 2010 Lync Server Topology Builder BIG-IP LTM Topology Builder IP Lync 2010 BIG IP BIG-IP VE Virtual Edition BIG-IP SSL/TLS BIG-IP Edge Web

1. PKI (EDB/PKI) (Single Sign On; SSO) (PKI) ( ) Private PKI, Free Software ITRC 20th Meeting (Oct. 5, 2006) T. The University of Tokush

OSSTechプレゼンテーション

ksocket Documentation

リング型IPカメラ監視ソリューション(マルチキャスト編)

ECL2.0 ロードバランサーNetScaler VPX 10.5 VRRP設定

"CAS を利用した Single Sign On 環境の構築"

設定例集

オープンソース・ソリューション・テクノロジ株式会社 代表取締役 チーフアーキテクト 小田切耕司

P X-M04-00 PowerChute Network Shutdown PowerChute Network Shutdown Standard v2.2.3a / Enterprise v2.2.3v PowerChute Network Shutdown Standard


Microsoft PowerPoint - OSC2009_Tokyo_Fall_1030.ppt

BMC Configuration ユーザーズガイド

Si-R30コマンドリファレンス

A/B WWW MTA/MSP sendmail POP/IMAP apache WWW 1 1 sendmail uw imap apache WWW host host subnet1: /24 IF1: router & server mail and

スライド 1

FileMaker Server Getting Started Guide

"CAS を利用した Single Sign On 環境の構築"

JEE 上の Adobe Experience Manager forms のインストールおよびデプロイ(WebLogic 版)

PAV PDF USB/RS232/RS485 PDF SCPI LAN PDF LAN PAV PAV 4 LAN PAV PAV with LAN PAV PC PDF Adobe Reader 10 Microso

Oracle Calendar Oracle Collaboration Suite 2(9.0.4) Creation Date: Jun 04, 2003 Last Update: Nov 18, 2003 Version:

Transcription:

LDAP Internet Week 2003 (taru@valinux.co.jp) VA Linux Systems

LDAP - LDAP OpenLDAP - postfix qpopper - LDAP heartbeat mon

LDAP OpenLDAP

LDAP Lightweight Directory Access Protocol

LDAP(X500)

- (DN) DIT (*1) ( ) = (RDN),< > (*1) Directory

(Attribute) = :

(Structual) objectclass RDN

objectclass 1 Structual objectclass Auxilial ( ) objectclass

( one level, )

< >=< > objectclass=* cn=taru* age>=18 (&(cn=taru*)(age>=18))

ldapsearch -x -h ldap -s sub -b ou=,o= cn= * telephonenumber

Novell edirectory (TM) Sun iplanet(tm) OpenLDAP NEC EDS (TM) LDAP

OpenLDAP (BSD ) LDAP LDAP slapd, slurpd slapadd, slapcat libldap ldapsearch, ldapadd

slapd LDAPv3 SASL starttls (SSL) (login)

OpenLDAP(2.1) Berkley DB 4.1 &./configure; make; sudo make install ~# /usr/local/libexec/slapd

~$ /usr/local/bin/ldapsearch -x -s base -b "" + rootdse

OpenLDAP slapd.conf ~# sudo killall slapd ~# /usr/local/libexec/slapd /etc/init.d/slapd restart

slapd.conf access to * by dn="cn=admin,dc=vass" write by * read

slapd.conf (2) ( )

LDIF - dn: dc=my-domain,dc=com objectclass: top objectclass: domain dc: my-domain ~$ ldapadd -x -D "cn=manager,dc=my-domain,dc=com" < test.ldif

dc=my-domain,dc=com objectclass: person dn: dc=my-domain,dc=com changetype: modify add: objectclass objectclass: person

LDAP

LDAP (2)

LDAP postfix postfix LDAP $ cd postfix-1.1.2/ $ make tidy $ make makefiles CCARGS="-I/usr/local/include -DHAS_LDAP" AUXLIBS="-L/usr/local/lib -lldap -llber" $ make $ bin/su -c "make install"

$ /usr/sbin/postconf -m static nis regexp environ ldap btree hash postfix LDAP

namingcontext

namingcontext slapd.conf database bdb suffix "o=vaj" rootdn "cn=manager,o=vaj" rootpw secret directory /usr/local/var/openldap/vaj/ index objectclass eq namingcontext $ ldapsearch -s base -b "" namingcontexts

ou=people,o=vaj LDIF dn: o=vaj objectclass: organization o: VAJ dn: ou=people, o=vaj objectclass: organizationalunit ou: People $ ldapadd -x -D "cn=manager,o=vaj" -w secret < people.ldif

taru LDIF dn: uid=taru,ou=people,o=vaj uid: taru cn: Masato Taruishi objectclass: posixaccount objectclass: inetorgperson userpassword: {CRYPT}h9Z4VF89hXpl. loginshell: /bin/bash uidnumber: 1000 gidnumber: 1000 homedirectory: /home/taru sn: Taruishi mail: taru@debian.org $ ldapadd -x -D "cn=manager,o=vaj" < taru.ldif

slappasswd $ /usr/local/sbin/slappasswd -h "{CRYPT}" New password: Re-enter new password: {CRYPT}h9Z4VF89hXpl.

postfix main.cf alias_maps = ldap:ldapalias LDAP LDAP ldapalias

postfix main.cf ldapalias ldapalias_server_host = localhost ldapalias_search_base = ou=people,o=vaj ldapalias_scope = sub ldapalias_query_filter = (uid=%s) ldapalias_result_attribute = mail $ postmap -q taru ldap:ldapalias taru@debian.org

pop LDAP qpopper pam_ldap PAM LDAP

pam_ldap $./configure $ make $ /bin/su -c "make install" /etc/ldap.conf (Debian /etc/pam_ldap.conf)

/etc/ldap.conf pam_ldap nss_ldap pam_ldap host 127.0.0.1 base ou=people,o=vaj ldap_version 3 pam_password crypt

/etc/pam.d/qpopper qpopper LDAP auth sufficient pam_ldap.so auth required pam_unix_auth.so shadow account sufficient pam_ldap.so account required pam_unix_acct.so

LDAP

- LDAP

index

( )

Referral ( ) ( ) +Referral+

Chain OpenLDAP

OpenLDAP +Referral replogfile /usr/local/var/openldap-data/replogfile database bdb... replica host=slave:389 bindmethod=simple binddn="cn=manager,o=vaj" credentials=secret...

... database bdb... updatedn "cn=manager,o=vaj" updateref "ldap://master:389/"... OpenLDAP (2)

index

index slapd.conf index {<attrlist> default} [pres,eq,approx,sub,<special>]... database bdb... index objectclass,uid eq index cn,sn eq,sub... index slapindex(8)

( ) LDAP index

- UNIX ID

- ( )

/ (Superior Knowledge Information) (Subordinate Knowledge Information)

slapd.conf referral ldap://superior/

UNIX uid 16bit qpopper uid uid 1

/?

-

-

OpenLDAP - LDAP heartbeat - mon -

heartbeat ( ) ACTIVE (hearbeat ) ACTIVE STANDBY mon ( ) ACTIVE LDAP (LDAP ) LDAP heartbeat

ACTIVE Virtual IP STANDBY ACTIVE Virtual IP LDAP

heartbeat $./configure; make; /bin/su -c "make install"

mon perl Peiod-1.20 Time-HiRes-1.42 Convert-BER-1.3101 Mon-0.11 Convert-ASN-0.16 perl-ldap-0.26 $ cd mon-0.99.2/ # install mon /usr/local/sbin/ # install alert.d/* alert/template /usr/local/lib/mon/alert.d/ # install mon.d/*.monitor /usr/local/lib/mon/mon.d/

heartbeat /usr/local/etc/ha.d/hacf /usr/local/etc/ha.d/authkeys /usr/local/etc/ha.d/haresources /usr/local/etc/ha.d/resource.d/ldap

hacf heartbeat ( )... node master # ACTIVE node backup # STANDBY...

authkeys auth 2 2 sha1 HI!

haresources... master 172.17.91.254 ldap...

resource.d/ldap LDAP

heartbeat - ACTIVE, STANDBY heartbeat /etc/init.d/heartbeat start ACTIVE Virtual IP /sbin/ifconfig ACTIVE LDAP ps ax grep slapd -f slapd.master.conf STANDBY LDAP ps ax grep slapd

heartbeat - ACTIVE heartbeat /etc/init.d/heartbeat stop ACTIVE LDAP STANDBY LDAP

mon /usr/local/etc/mon/mon.cf /usr/local/etc/ha.d/haresources /usr/local/lib/mon/alert.d/failover.alert

mon.cf alertdir = /usr/local/lib/mon/alert.d mondir = /usr/local/lib/mon/mon.d histlength = 100 hostgroup ldapmaster master # VirutlaIP watch ldapmaster service ldap interval 10s # failure_interval 2s # # ldapsearch monitor ldap.monitor --basedn= cn=manager,o=vaj --filter= cn=manager --value= organizationalrole period wd {Sun-Sat} alert failover.alert alertafter 10s # numalerts 1...

... master 172.17.91.254 ldap mon... haresources

mon - heartbeat ACTIVE LDAP

ACTIVE

OpenLDAP

-

LDAP OpenLDAP

OpenLDAP - http://www.openldap.org/ Berkeley DB - http://www.sleepycat.com/ heartbeat - http://www.linux-ha.org/ mon - http://www.us.kernel.org/pub/software/admin/mon/ postfix - http://www.postfix.org/ qpopper - http://www.eudora.com/qpopper/ pam-ldap - http://www.padl.com/oss/pam_ldap.html - http://www.valinux.co.jp/technical/ldap/