Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: ldap_client_tls.{key,cert} are located in /var/www/html/storage instead of /var/lib/snipeit/keys #10311

Closed
2 tasks done
andrewshulgin opened this issue Nov 13, 2021 · 1 comment · Fixed by #10312
Closed
2 tasks done

Comments

@andrewshulgin
Copy link
Contributor

Debug mode

Describe the bug

ldap_client_tls.{key,cert} files should be in external storage (/var/lib/snipeit/keys/) to be persistent

Reproduction steps

  1. Start Snipe-IT docker container with a volume for /var/lib/snipeit
  2. Create LDAP configuration with client certificates
  3. Stop and remove the container
  4. Start Snipe-IT docker container again with the same volume attached
  5. LDAP synchronisation fails until the certificates are created again via the settings page

Expected behavior

  • Certificates should be saved on the attached volume — in /var/lib/snipeit
  • LDAP synchronisation should not fail after Snipe-IT container replacement

Screenshots

No response

Snipe-IT Version

v5.3.1 build 6490 (g6690a0f1d)

Operating System

Ubuntu

Web Server

Apache

PHP Version

7.4.3

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

@welcome
Copy link

welcome bot commented Nov 13, 2021

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@andrewshulgin andrewshulgin changed the title Docker: ldap_client_tls.{key,cert} are located inside container Docker: ldap_client_tls.{key,cert} are located in /var/www/html/storage/ instead of /var/lib/snipeit/keys/ Nov 13, 2021
@andrewshulgin andrewshulgin changed the title Docker: ldap_client_tls.{key,cert} are located in /var/www/html/storage/ instead of /var/lib/snipeit/keys/ Docker: ldap_client_tls.{key,cert} are located in /var/www/html/storage instead of /var/lib/snipeit/keys Nov 13, 2021
snipe added a commit that referenced this issue Nov 15, 2021
Fixed: #10311: Docker: ldap_client_tls.{key,cert} are located in /var/www/html/storage instead of /var/lib/snipeit/keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant