tiredofit / docker-openldap

Dockerized LDAP server with many customizable options
MIT License
108 stars 47 forks source link

Custom Schema; incorrect find path #57

Closed sniper7kills closed 2 years ago

sniper7kills commented 2 years ago

I believe the following location is incorrect.

https://github.com/tiredofit/docker-openldap/blob/77deb94d619aa047b7be67ffbe3bf395ee9e3307/install/assets/functions/10-openldap#L740

I attempted to add the postfix-book.schema from https://github.com/variablenix/ldap-mail-schema, into the /assets/slapd/config/bootstrap/schema/ directory; but install would fail stating that postfix-book.ldif was not found.

Upon debugging; I found that the line I referenced could not find any ldif file; but it was converted in the ${slaptest_tmp} directory. As such; I believe that the correct line would be:

find ${slaptest_tmp} -name *\}${schema_name}.ldif -exec mv '{}' ./${ldif_file} \;

(Also; thank you for your amazing collection of docker containers)

tiredofit commented 2 years ago

Thanks for the compliments! Glad you are finding value of this. You are right - that command needed to be more explicit. Thanks for the contribution! Tagged as 2.6-7.2.10 and 2.4-7.1.3.2