mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 08:56:50 +00:00
Adds LDAP auth support
This commit is contained in:
@ -17,7 +17,6 @@ CREATE TABLE IF NOT EXISTS `user`
|
||||
`updated_at` INTEGER NOT NULL DEFAULT 0,
|
||||
`is_deleted` INTEGER NOT NULL DEFAULT 0,
|
||||
`name` TEXT NOT NULL,
|
||||
`nickname` TEXT NOT NULL,
|
||||
`email` TEXT NOT NULL,
|
||||
`is_system` INTEGER NOT NULL DEFAULT 0,
|
||||
`is_disabled` INTEGER NOT NULL DEFAULT 0
|
||||
@ -45,6 +44,7 @@ CREATE TABLE IF NOT EXISTS `auth`
|
||||
`is_deleted` INTEGER NOT NULL DEFAULT 0,
|
||||
`user_id` INTEGER NOT NULL,
|
||||
`type` TEXT NOT NULL,
|
||||
`identity` TEXT NOT NULL,
|
||||
`secret` TEXT NOT NULL,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE,
|
||||
UNIQUE (`user_id`, `type`)
|
||||
|
@ -36,6 +36,27 @@ INSERT INTO `setting` (
|
||||
"default-site",
|
||||
"What to show users who hit your Nginx server by default",
|
||||
'"welcome"' -- remember this is json
|
||||
),
|
||||
(
|
||||
unixepoch() * 1000,
|
||||
unixepoch() * 1000,
|
||||
"auth-methods",
|
||||
"Which methods are enabled for authentication",
|
||||
'["local"]' -- remember this is json
|
||||
),
|
||||
(
|
||||
unixepoch() * 1000,
|
||||
unixepoch() * 1000,
|
||||
"oidc-auth",
|
||||
"Configuration for OIDC authentication",
|
||||
'{}' -- remember this is json
|
||||
),
|
||||
(
|
||||
unixepoch() * 1000,
|
||||
unixepoch() * 1000,
|
||||
"ldap-auth",
|
||||
"Configuration for LDAP authentication",
|
||||
'{"host": "", "dn": "", "sync_by": "uid"}' -- remember this is json
|
||||
);
|
||||
|
||||
-- Default Certificate Authorities
|
||||
|
Reference in New Issue
Block a user