3、nldap-stable/openldap-stable-20050429.tgz# tar zxvf openldap-stable-20050429.tgz# cd openldap-2.2.26# ./configure --prefix=/usr/local/openldap --enable-ldbm=yes --enable-bdb=no --enable-ipv6=no# make depend # make # make test # make install# wget http://jaist.dl.sourceforge.net/sourcefo
4、rge/jamm/jamm-0.9.7-rc1.tar.gz# tar zxvf jamm-0.9.7-rc1.tar.gz# cp jamm-0.9.7-rc1/src/schema/jamm.schema /usr/local/openldap/etc/openldap/schema/先获得rootpw的加密密码,注意每次都不一样。你也可以用明文的# /usr/local/openldap/sbin/slappasswdNew password: 12345 Re-enter new password: 12345 {SSHA}eBmoJWzMhMGgC48iqH
5、HQyX4Q4CGhzZxO# vi /usr/local/openldap/etc/openldap/slapd.confinclude /usr/local/openldap/etc/openldap/schema/core.schemainclude /usr/local/openldap/etc/openldap/schema/cosine.schemainclude /usr/local/openldap/etc/openldap/schema/nis.schemainclude /usr/lo
7、hMGgC48iqHHQyX4Q4CGhzZxO#rootpw 12345 index objectClass pres,eqindex mail,cn eq,subaccess to dn.regex=".*,jvd=([^,]+),o=hosting,dc=test,dc=com" attr=userPassword by self write by group/jammPostmaster/roleOccupant.expand="cn=postmaster,jvd=$1,o=hosting,dc=test,dc=com"