部署dex 和 ldap
https://dexidp.io/docs/connectors/ldap/
下载 dev 源码
```
$ git clone https://github.com/dexidp/dex.git
$ cd dex/
$ make build
- kubesphere 中配置 dex
authenticateRateLimiterDuration: 10m
authenticateRateLimiterMaxTries: 10
jwtSecret: ""
oauthOptions:
accessTokenInactivityTimeout: 30m
accessTokenMaxAge: 1h
identityProviders:
- mappingMethod: auto
name: dex
provider:
clientID: example-app
clientSecret: ZXhhbXBsZS1hcHAtc2VjcmV0
issuer: http://10.101.32.24:5556/dex
redirectURL: http://10.101.32.24:5555/callback
scopes:
- openid
- email
type: OIDCIdentityProvider