initial work on adding LDAP integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-04 11:42:04 +11:00
parent 0619b497f7
commit e8abd27f3c
8 changed files with 186 additions and 19 deletions

View File

@@ -147,6 +147,9 @@ func main() {
models.ReceiveKey(keyString)
}
// Load certificate for LDAP connectivy
models.LoadLdapCert()
// Create context that listens for the interrupt signal from the OS.
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()
@@ -265,6 +268,8 @@ func main() {
protected.POST("/retrieveMultiple", controllers.RetrieveMultpleSecrets)
protected.POST("/store", controllers.StoreSecret)
protected.POST("/update", controllers.UpdateSecret)
// TODO
//protected.POST("/delete", controllers.DeleteSecret)
// Support parameters in path
// See https://gin-gonic.com/docs/examples/param-in-path/