Adds LDAP auth support

This commit is contained in:
Jamie Curnow committed 2024-11-02 21:36:07 +10:00
1 parent 8434a2d1fa
commit a277a5d167
54 files changed
+765 -306

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ package schema
import "fmt"
// SetAuth is the schema for incoming data validation
// Only local auth is supported for setting a password
func SetAuth() string {
return fmt.Sprintf(`
{
@@ -15,7 +16,7 @@ func SetAuth() string {
"properties": {
"type": {
"type": "string",
"pattern": "^password$"
"pattern": "^local$"
},
"secret": %s,
"current_secret": %s