Skip to content

Commit 3b0ac7b

Browse files
committed
Merge branch 'remove-schema-ambiguity' of https://github.com/zsoerenm/docker-openldap into zsoerenm-remove-schema-ambiguity
2 parents 8ff967f + 80fff0f commit 3b0ac7b

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)