Skip to content

Commit 80fff0f

Browse files
authored
Remove schema ambiguity
1 parent e775d12 commit 80fff0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/service/slapd/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
5454
}
5555

5656
function is_new_schema() {
57-
local COUNT=$(ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config cn | grep -c $1)
57+
local COUNT=$(ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config cn | grep -c "}$1,")
5858
if [ "$COUNT" -eq 0 ]; then
5959
echo 1
6060
else

0 commit comments

Comments
 (0)