forked from mystiq/dex
4d970d5fc4
Authentication is performed by binding to the configured LDAP server using the user supplied credentials. Successfull bind equals authenticated user. Optionally the connector can be configured to search before authentication. The entryDN found will be used to bind to the LDAP server. This feature must be enabled to get supplementary information from the directory (ID, Name, Email). This feature can also be used to limit access to the service. Example use case: Allow your users to log in with e-mail address instead of the identification string in your DNs (typically username). To make re-use of HTTP form handling code from the Local connector possible: - Implemented IdentityProvider interface - Moved the re-used functions to login_local.go Fixes #119
54 lines
1.1 KiB
Text
54 lines
1.1 KiB
Text
[
|
|
{
|
|
"type": "local",
|
|
"id": "local",
|
|
"passwordInfos": [
|
|
{
|
|
"userId":"elroy-id",
|
|
"passwordPlaintext": "bones"
|
|
},
|
|
{
|
|
"userId":"penny",
|
|
"passwordPlaintext": "kibble"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "oidc",
|
|
"id": "google",
|
|
"issuerURL": "https://accounts.google.com",
|
|
"clientID": "${CLIENT_ID}",
|
|
"clientSecret": "${CLIENT_SECRET}"
|
|
},
|
|
{
|
|
"type": "github",
|
|
"id": "github",
|
|
"clientID": "${CLIENT_ID}",
|
|
"clientSecret": "${CLIENT_SECRET}"
|
|
},
|
|
{
|
|
"type": "bitbucket",
|
|
"id": "bitbucket",
|
|
"clientID": "${CLIENT_ID}",
|
|
"clientSecret": "${CLIENT_SECRET}"
|
|
},
|
|
{
|
|
"type": "ldap",
|
|
"id": "ldap",
|
|
"serverHost": "127.0.0.1",
|
|
"serverPort": 389,
|
|
"useTLS": true,
|
|
"useSSL": false,
|
|
"caFile": "/etc/ssl/certs/example_com_root.crt",
|
|
"skipCertVerification": false,
|
|
"baseDN": "ou=People,dc=example,dc=com",
|
|
"nameAttribute": "cn",
|
|
"emailAttribute": "mail",
|
|
"searchBeforeAuth": true,
|
|
"searchFilter": "(mail=%u)",
|
|
"searchScope": "one",
|
|
"searchBindDN": "searchuser",
|
|
"searchBindPw": "supersecret",
|
|
"bindTemplate": "uid=%u,%b"
|
|
}
|
|
]
|