LDAP user backend for GraphAPI

This is still read-only and doesn't support any of the advanced
querying options of the graph API.
This commit is contained in:
Ralf Haferkamp
2021-11-18 16:55:59 +01:00
parent 9130cd29f3
commit fbdcdf255c
4 changed files with 227 additions and 0 deletions
+2
View File
@@ -32,6 +32,8 @@ func NewService(opts ...Option) Service {
Config: &options.Config.Reva,
Logger: &options.Logger,
}
case "ldap":
userBackend = identity.NewLDAPBackend(options.Config.Identity.LDAP, &options.Logger)
default:
options.Logger.Error().Msgf("Unknown Identity Backend: '%s'", options.Config.Identity.Backend)
}