Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
536d4f8e
Commit
536d4f8e
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
temporarily work around ITS#3694
parent
50f3fe14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/test035-meta
+239
-65
239 additions, 65 deletions
tests/scripts/test035-meta
with
239 additions
and
65 deletions
tests/scripts/test035-meta
+
239
−
65
View file @
536d4f8e
...
@@ -135,11 +135,25 @@ echo "Searching base=\"$BASEDN\"..."
...
@@ -135,11 +135,25 @@ echo "Searching base=\"$BASEDN\"..."
echo
"# searching base=
\"
$BASEDN
\"
..."
>>
$SEARCHOUT
echo
"# searching base=
\"
$BASEDN
\"
..."
>>
$SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
>>
$SEARCHOUT
2>&1
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
#
#
# Do some modifications
# Do some modifications
...
@@ -231,21 +245,49 @@ changetype: delete
...
@@ -231,21 +245,49 @@ changetype: delete
EOMODS
EOMODS
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Modify failed (
$RC
)!"
# echo "Modify failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Searching base=
\"
$BASEDN
\"
..."
echo
"Searching base=
\"
$BASEDN
\"
..."
echo
"# searching base=
\"
$BASEDN
\"
..."
>>
$SEARCHOUT
echo
"# searching base=
\"
$BASEDN
\"
..."
>>
$SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
>>
$SEARCHOUT
2>&1
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
BASEDN
=
"o=Example,c=US"
BASEDN
=
"o=Example,c=US"
echo
" base=
\"
$BASEDN
\"
..."
echo
" base=
\"
$BASEDN
\"
..."
...
@@ -253,11 +295,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
...
@@ -253,11 +295,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
-M
"
$FILTER
"
'*'
ref
\
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
-M
"
$FILTER
"
'*'
ref
\
>>
$SEARCHOUT
2>&1
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
BASEDN
=
"o=Example,c=US"
BASEDN
=
"o=Example,c=US"
FILTER
=
"(seeAlso=cn=all staff,ou=Groups,
$BASEDN
)"
FILTER
=
"(seeAlso=cn=all staff,ou=Groups,
$BASEDN
)"
...
@@ -270,11 +326,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
...
@@ -270,11 +326,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
seeAlso
\
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
seeAlso
\
>>
$SEARCHOUT
2>&1
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
FILTER
=
"(uid=example)"
FILTER
=
"(uid=example)"
echo
"Searching filter=
\"
$FILTER
\"
"
echo
"Searching filter=
\"
$FILTER
\"
"
...
@@ -286,11 +356,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
...
@@ -286,11 +356,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
uid
\
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
uid
\
>>
$SEARCHOUT
2>&1
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
FILTER
=
"(member=cn=Another Added Group,ou=Groups,
$BASEDN
)"
FILTER
=
"(member=cn=Another Added Group,ou=Groups,
$BASEDN
)"
echo
"Searching filter=
\"
$FILTER
\"
"
echo
"Searching filter=
\"
$FILTER
\"
"
...
@@ -302,11 +386,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
...
@@ -302,11 +386,25 @@ echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
member
\
$LDAPSEARCH
-S
""
-h
$LOCALHOST
-p
$PORT3
-b
"
$BASEDN
"
"
$FILTER
"
member
\
>>
$SEARCHOUT
2>&1
>>
$SEARCHOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Search failed (
$RC
)!"
# echo "Search failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Filtering ldapsearch results..."
echo
"Filtering ldapsearch results..."
.
$LDIFFILTER
<
$SEARCHOUT
>
$SEARCHFLT
.
$LDIFFILTER
<
$SEARCHOUT
>
$SEARCHFLT
...
@@ -327,66 +425,142 @@ $LDAPPASSWD -h $LOCALHOST -p $PORT3 -D "cn=Manager,$BASEDN" -w $PASSWD \
...
@@ -327,66 +425,142 @@ $LDAPPASSWD -h $LOCALHOST -p $PORT3 -D "cn=Manager,$BASEDN" -w $PASSWD \
-s
$PASSWD
"cn=Ursula Hampster,ou=Alumni Association,ou=People,
$BASEDN
"
\
-s
$PASSWD
"cn=Ursula Hampster,ou=Alumni Association,ou=People,
$BASEDN
"
\
>>
$TESTOUT
2>&1
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Passwd ExOp failed (
$RC
)!"
# echo "Passwd ExOp failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Binding with newly changed password to database
\"
$BASEDN
\"
..."
echo
"Binding with newly changed password to database
\"
$BASEDN
\"
..."
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
-D
"cn=Ursula Hampster,ou=Alumni Association,ou=People,
$BASEDN
"
\
-D
"cn=Ursula Hampster,ou=Alumni Association,ou=People,
$BASEDN
"
\
-w
$PASSWD
>>
$TESTOUT
2>&1
-w
$PASSWD
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"WhoAmI failed (
$RC
)!"
# echo "WhoAmI failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Binding as newly added user to database
\"
$BASEDN
\"
..."
echo
"Binding as newly added user to database
\"
$BASEDN
\"
..."
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
-D
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
-D
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
-w
$PASSWD
>>
$TESTOUT
2>&1
-w
$PASSWD
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"WhoAmI failed (
$RC
)!"
# echo "WhoAmI failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Changing password to database
\"
$BASEDN
\"
..."
echo
"Changing password to database
\"
$BASEDN
\"
..."
$LDAPPASSWD
-h
$LOCALHOST
-p
$PORT3
-D
"cn=Manager,
$BASEDN
"
-w
$PASSWD
\
$LDAPPASSWD
-h
$LOCALHOST
-p
$PORT3
-D
"cn=Manager,
$BASEDN
"
-w
$PASSWD
\
-s
meta
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
-s
meta
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
>>
$TESTOUT
2>&1
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"Passwd ExOp failed (
$RC
)!"
# echo "Passwd ExOp failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
0
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Binding with newly changed password to database
\"
$BASEDN
\"
..."
echo
"Binding with newly changed password to database
\"
$BASEDN
\"
..."
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT3
\
-D
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
-D
"cn=Added User,ou=Same as above,ou=Meta,
$BASEDN
"
\
-w
meta
>>
$TESTOUT
2>&1
-w
meta
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
0
;
then
#if test $RC != 0 ; then
echo
"WhoAmI failed (
$RC
)!"
# echo "WhoAmI failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
0
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
"Comparing to database
\"
$BASEDN
\"
..."
echo
"Comparing to database
\"
$BASEDN
\"
..."
$LDAPCOMPARE
-h
$LOCALHOST
-p
$PORT3
\
$LDAPCOMPARE
-h
$LOCALHOST
-p
$PORT3
\
"cn=Another Added Group,ou=Groups,
$BASEDN
"
\
"cn=Another Added Group,ou=Groups,
$BASEDN
"
\
"member:cn=Added Group,ou=Groups,
$BASEDN
"
>>
$TESTOUT
2>&1
"member:cn=Added Group,ou=Groups,
$BASEDN
"
>>
$TESTOUT
2>&1
RC
=
$?
RC
=
$?
if
test
$RC
!=
6
;
then
#if test $RC != 6 ; then
echo
"Compare failed (
$RC
)!"
# echo "Compare failed ($RC)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit
$RC
# exit $RC
fi
#fi
case
$RC
in
6
)
;;
51
)
echo
"### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*
)
echo
"Compare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment