### get sasl from http://ftp.andrew.cmu.edu/pub/cyrus-mail/ #VERSSASL=2.1.22 #VERSKERB=1.6.1 #tar xzf cyrus-sasl-$VERSSASL.tar.gz #cd cyrus-sasl-$VERSSASL #CPPFLAGS="-I/opt/soft_krb5-$VERSKERB/include -I/opt/soft_krb5-$VERSKERB/include/gssapi" \ # LDFLAGS="-L/opt/soft_krb5-$VERSKERB/lib" ./configure --prefix=/opt/soft_cyrus-sasl-$VERSSASL --enable-gssapi --enable-sample #CC=gcc-4.1 #make && make install ##cd sample ##make sample-server sample-client ##less /opt/src/cyrus-sasl-$VERSSASL/doc/testing.txt ##cd ../.. #export SASL_PATH=/opt/soft_cyrus-sasl-$VERSSASL/lib/sasl2 #echo "export SASL_PATH=/opt/soft_cyrus-sasl-$VERSSASL/lib/sasl2" >>/etc/profile ## get openldap from http://www.openldap.org/software/download/ #debian: install libssl-dev (libsasl2-modules-gssapi-mit libsasl2-dev) VERSLDAP=2.3.35 tar xzf openldap-$VERSLDAP.tgz cd openldap-$VERSLDAP #CPPFLAGS="-I/opt/soft_cyrus-sasl-$VERS/include" LDFLAGS="-L/opt/soft_cyrus-sasl-2.1.22/lib" \ # ./configure --prefix=/opt/soft_openldap-$VERSLDAP --with-tls --with-cyrus-sasl ./configure --prefix=/opt/soft_openldap-$VERSLDAP --with-tls CC=gcc-4.1 make depend && make -j8 && make install cp servers/slapd/DB_CONFIG /opt/soft_openldap-$VERSLDAP/var/openldap-data echo "export PATH=/opt/soft_openldap-$VERSLDAP/bin:\$PATH" >>/etc/profile export PATH=/opt/soft_openldap-$VERSLDAP/bin:$PATH cd /opt/soft_openldap-$VERSLDAP vi etc/openldap/slapd.conf ---------------------------------- include /opt/soft_openldap-2.3.35/etc/openldap/schema/core.schema include /opt/soft_openldap-2.3.35/etc/openldap/schema/cosine.schema include /opt/soft_openldap-2.3.35/etc/openldap/schema/nis.schema include /opt/soft_openldap-2.3.35/etc/openldap/schema/inetorgperson.schema pidfile /opt/soft_openldap-2.3.35/var/run/slapd.pid argsfile /opt/soft_openldap-2.3.35/var/run/slapd.args ####################################################################### # BDB database definitions ####################################################################### database bdb suffix "dc=fluxcoil,dc=net" rootdn "cn=Manager,dc=fluxcoil,dc=net" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw secret # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. directory /opt/soft_openldap-2.3.35/var/openldap-data # Indices to maintain index objectClass eq ---------------------------------- libexec/slapd