📄 test-ldap.sh
字号:
#!/bin/shPATH=/usr/local/sbin:/usr/sbin:/sbin:$PATHexport PATHSCHEMA_NEEDED="core nis cosine inetorgperson openldap"# setup needed schema filesfor f in $SCHEMA_NEEDED; do if [ ! -r tests/schema/$f.schema ]; then mkdir -p tests/schema if [ -r /etc/ldap/schema/$f.schema ]; then ln -s /etc/ldap/schema/$f.schema tests/schema/$f.schema continue; fi if [ -r /etc/openldap/schema/$f.schema ]; then ln -s /etc/openldap/schema/$f.schema tests/schema/$f.schema continue; fi echo "SKIPPING TESTS: you need the following OpenLDAP schema files" for f in $SCHEMA_NEEDED; do echo " $f.schema" done exit 0 fidoneif [ -z "$LDBDIR" ]; then LDBDIR=`dirname $0`/.. export LDBDIRfiLDB_URL=`$LDBDIR/tests/ldapi_url.sh`export LDB_URLPATH=bin:$PATHexport PATHLDB_SPECIALS=0export LDB_SPECIALSif $LDBDIR/tests/init_slapd.sh && $LDBDIR/tests/start_slapd.sh && $LDBDIR/tests/test-generic.sh; then echo "ldap tests passed"; ret=0else echo "ldap tests failed"; ret=$?fi#$LDBDIR/tests/kill_slapd.shexit $ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -