test-ldap.sh

来自「samba最新软件」· Shell 代码 · 共 55 行

SH
55
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?