<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid4280A291.2070003@vimas.com" type="cite">
  <blockquote cite="mid20050510102517.GJ22379@osdn.org.ua" type="cite"></blockquote>
ðÏ ÄÅÌÕ: ×ÒÏÄÅ ÏÛÉÂËÁ × ÓËÒÉÐÔÅ ËÏÐÉÒÏ×ÁÎÉÑ ÂÉÂÌÉÏÔÅË ×
chroot-ÏËÒÕÖÅÎÉÅ LDAP, ÆÁÊÌ /etc/chroot.d/ldap.lib<br>
á ×ÏÏÂÝÅ ÐÒÁÌØÎÏ ÎÁ×ÅÒÎÏÅ ÇÏ×ÏÒÑÔ ÞÔÏ ÎÅ ÎÁÄÏ ÓÉÚÉÆÉÔØ ÓÅÒ×ÅÒÁ.<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Community mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Community@altlinux.ru">Community@altlinux.ru</a>
<a class="moz-txt-link-freetext" href="https://lists.altlinux.ru/mailman/listinfo/community">https://lists.altlinux.ru/mailman/listinfo/community</a></pre>
</blockquote>
÷ÏÔ, ÐÏÐÒÁ×ÉÌ /etc/chroot.d/ldap.lib É ÚÁÐÕÓÔÉÌÓÑ slapd<br>
ìÕÞÛÅ ÏÒÉÇÉÎÁÌØÎÙÊ ÓËÒÉÐÔ ÚÁÂÜËÁÐÉÓÔØ ÓÎÁÞÁÌÁ.<br>
<br>
##========================================<br>
#!/bin/sh -e<br>
<br>
# Source functions library<br>
. /etc/chroot.d/functions<br>
<br>
cd /var/lib/ldap<br>
<br>
##force=<br>
##if [ "$1" = "force" ]; then<br>
##force=-f<br>
##ššš shift<br>
##fi<br>
<br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššš dstdir=/var/lib/ldap/lib/<br>
ššš cp /lib/libdb-4.3.so $dstdir<br>
ššš cp /lib/libssl.so.4 $dstdir<br>
ššš cp /lib/libcrypto.so.4 $dstdir<br>
ššš cp /lib/libcrypt.so.1 $dstdir<br>
ššš cp /lib/libresolv.so.2 $dstdir<br>
ššš cp /lib/libdl.so.2 $dstdir<br>
ššš cp /lib/libpthread.so.0 $dstdir<br>
ššš cp /lib/libc.so.6 $dstdir<br>
ššš cp /lib/libm.so.6 $dstdir<br>
ššš cp /lib/ld-linux.so.2 $dstdir<br>
ššš ##-l/lib//lib/libgssapi_krb5.so.2 \ššš <br>
ššš cp /lib/libgssapi_krb5.so.2 $dstdir<br>
ššš ##-d lib<br>
<br>
<br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššš dstdir=/var/lib/ldap/usr/lib/<br>
ššš cp /usr/lib/libldap_r-2.2.so.7.0.17
/var/lib/ldap/usr/lib/libldap_r.so<br>
ššš ##cp /usr/lib/liblber.so $dstdir<br>
ššš cp /usr/lib/libldap50.so /var/lib/ldap/usr/lib/libldap.so<br>
ššš cp /usr/lib/libodbc.so $dstdir<br>
ššš cp /usr/lib/libltdl.so.3 $dstdir<br>
ššš ##-d usr/lib<br>
ššš <br>
<br>
#Copiing SASL2 Libs<br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššš dstdir=/var/lib/ldap/usr/lib/sasl2/<br>
ššššššš cp /usr/lib/sasl2/lib*.so $dstdir<br>
ššššššš ##-d usr/lib/sasl2<br>
<br>
#Copiing OpenSLP Libs<br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššššššš cp /usr/lib/libslp.so /var/lib/ldap/lib/<br>
<br>
#Copiing Kerberos Libs<br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššš dstdir=/var/lib/ldap/lib/<br>
ššššššš cp /lib/libkrb5.so.3 $dstdir<br>
ššš cp /lib/libk5crypto.so.3 $dstdir<br>
ššššššš <br>
##CopyLibs ##$force \<br>
ššš ##-v \<br>
ššš cp /usr/lib/openldap/* /var/lib/ldap/usr/lib/openldap<br>
<br>
for f in `ls /usr/share/openldap/ucdata/`; do<br>
ššš cp "/usr/share/openldap/ucdata/$f" "usr/share/openldap/ucdata/$f"<br>
done<br>
<br>
[ -S dev/log ] || (rm -f dev/log; cp -a /dev/log dev)<br>
[ -c dev/urandom ] || (ln /dev/urandom dev/urandom 2&gt;/dev/null || cp
-a /dev/urandom dev/urandom)<br>
<br>
copy_resolv_lib <br>
##===================================<br>
</body>
</html>