LINUX
2008.05.30 / 19:19

OpenLdap ¼³Ä¡

ÁøÀÍ
Ãßõ ¼ö 223
Á¦¸ñ¾øÀ½ OpenLdap ¼³Ä¡

 

###################################
#                                 #
# HowTo - OpenLdap ¼³Ä¡           #
#                                 #
# 2004.03.09 ¹® ¿ë¿ì              #
#                                 #
# http://linuxcamp.co.kr          #
#                                 #
# ¼³Ä¡È¯°æ : Redhat 7.2           #
#            (2.4.9-21smp #1 SMP) #
#                                 #
###################################

*»çÀü Áغñ»çÇ×

1. BerkelyDB ¼³Ä¡
2. OpenSSL ¼³Ä¡


******** »çÀüÁغñ ¼³Ä¡ ½ÃÀÛ. ********

1. BerkelyDB ¼³Ä¡
   - Download : http://sleepycat.com/download/index.html
                (db-4.2.52.tar.gz  2004³â 03¿ù 07ÀÏ ±âÁØ)
   - Install
     ]# tar xvfz db-4.2.52.tar.gz
     ]# cd db-4.2.52/build_unix
     ]# ../dist/configure
     ]# make; make install

2. OpenSSL ¼³Ä¡
   - Download : http://www.openssl.org/source/
                (openssl-0.9.6l.tar.gz   2004³â 03¿ù07ÀÏ ±âÁØ) 
   - Install
     ]# tar xvfz openssl-0.9.6l.tar.gz
     ]# cd openssl-0.9.6l<--- ¼ýÀÚ'1'ÀÌ ¾Æ´Ï¶ó ¾ËÆĺª ¼Ò¹®ÀÚ 'l'ÀÓ
     ]# ./config --prefix=/usr/local/ssl --openssldir=/usr/local/openssl
     ]# make
     ]# make test
     ]# make install
        (/usr/local/ssl directory by default) 

******** »çÀüÁغñ°¡ ³¡³µÀ¾´Ï´Ù. ********




******** LDAP Server ¼³Ä¡ ½ÃÀÛ. ********
¡Ø Openldap ¼³Ä¡
   - Download : http://www.openldap.org/software/download/
                (openldap-stable-20031217.tgz   2003.03.07 ±âÁØ)
   
   - Install
     Before going further, I strongly recommend you create a user for your LDAP server
     to run under. Don't use root or nobody to run your LDAP server. I usually create an
     "ldap" user and group; if you're on a system that has OpenLDAP installed from the
     distribution CDs, you may already have the user on your system. if not, here are the
     steps to get everything set up:
     (´ë·«ÀûÀ¸·Î Çؼ®À» Çغ¸¸é LDAP¼­¹ö¸¦ ½ÇÇàÇϴµ¥ À־ ROOT ³ª nobody ±ÇÇÑÀ¸·Î µ¹¸®
      ´Â°Å º¸´Ù "ldap"°èÁ¤À» »ý¼ºÇؼ­ µ¹¸®¶ó´Â ¶æ °°Àºµ¥....
      Á¦°¡ ¿µ¾î°¡ ¿ÏÀü À뺴À̶ó Ȥ½Ã¶óµµ À߸øµÈ Çؼ®À̶ó¸é ¹Ù·Î ¼öÁ¤ÇØÁÖ¼¼¿ä)

     ]# groupadd ldap
     ]# useradd -g ldap -d /var/lib/ldap -s /bin/false ldap
     ]# chown -R ldap.ldap /var/lib/ldap

     (ÀϹݰèÁ¤À¸·Î ¼³Ä¡ÇÔ.)
     ]$ env CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include 
       > -I/usr/local/ssl/include/openssl 
       > -I/usr/local/include" 
       > LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib 
       > -L/usr/local/lib" 
       > ./configure --prefix=/usr/local/openldap --with-tls --enable-slurpd 
       > --enable-crypt 
       > --enable-syslog 
       > --sysconfdir=/etc
          
              -- Áß..·« --
       Please run "make depend" to build dependencies
       (¸Ç ¸¶Áö¸·ÁÙÀÇ ¸Þ¼¼Áö. À̸޼¼Áö°¡ ¾È³ªÅ¸³ª¸é Error¸¦ »Ñ¸³´Ï´Ù.)
     
     ]$ make depend
     ]$ make
     ]$ make test
     ]$ su root -c 'make install'  (¹Ýµå½Ã root°èÁ¤À¸·Î install ÇÏ¼Å¾ß ÇÕ´Ï´Ù.)
        password : *************** (root ¾ÏÈ£ Ä¡½Ã¸é µË´Ï´Ù.)

******** LDAP Server ¼³Ä¡ ³¡. ********

   - °ü·Ã½ÎÀÌÆ®
     http://www.openldap.org/doc/admin22/install.html
     http://wiki.kldp.org/HOWTO//html/LDAP/LDAP-HOWTO.html