rewrite API, talk to ldap

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-06-15 16:02:44 +02:00
parent 16c5d13e10
commit 2fd05e2b6f
19 changed files with 2043 additions and 1296 deletions
+2 -4
View File
@@ -1,21 +1,19 @@
package command
import (
"github.com/owncloud/ocis-accounts/pkg/flagset"
"os"
"os/user"
"path"
"strings"
"github.com/owncloud/ocis-accounts/pkg/flagset"
"github.com/joho/godotenv"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis-accounts/pkg/config"
"github.com/owncloud/ocis-accounts/pkg/version"
"github.com/owncloud/ocis-pkg/v2/log"
"github.com/spf13/viper"
// init store manager
_ "github.com/owncloud/ocis-accounts/pkg/store"
)
var (
+3 -2
View File
@@ -3,9 +3,10 @@ package command
import (
"context"
"fmt"
"github.com/owncloud/ocis-accounts/pkg/flagset"
"syscall"
"github.com/owncloud/ocis-accounts/pkg/flagset"
"github.com/micro/cli/v2"
"github.com/oklog/run"
"github.com/owncloud/ocis-accounts/pkg/config"
@@ -23,7 +24,7 @@ func Server(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "server",
Usage: "Start ocis accounts service",
Description: "an accounts backend manager (driver) needs to be specified. By default the service uses the filesystem as storage",
Description: "uses an LDAP server as the storage backend",
Flags: flagset.ServerWithConfig(cfg),
Before: func(c *cli.Context) error {
logger = oclog.NewLogger(