mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-25 07:39:31 -04:00
rewrite API, talk to ldap
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
16c5d13e10
commit
2fd05e2b6f
19 files changed
+2043
-1296
No files matched your search
+2
-4
@@ -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,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(
|
||||
|
||||
Reference in new issue
Block a user