fix default ldap filters and port

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-01-17 13:36:51 +01:00
parent 9a63eaa117
commit 1df7dd4215
3 changed files with 8 additions and 8 deletions

View File

@@ -36,8 +36,8 @@ If the below defaults don't match your environment change them accordingly:
export REVA_LDAP_HOSTNAME=localhost
export REVA_LDAP_PORT=389
export REVA_LDAP_BASE_DN='dc=owncloud,dc=com'
export REVA_LDAP_USERFILTER='(objectclass=posixAccount)'
export REVA_LDAP_GROUPFILTER='(objectclass=posixGroup)'
export REVA_LDAP_USERFILTER='(&(objectclass=posixAccount)(cn=%s))'
export REVA_LDAP_GROUPFILTER='(&(objectclass=posixGroup)(cn=%s))'
export REVA_LDAP_BIND_DN='cn=admin,dc=owncloud,dc=com'
export REVA_LDAP_BIND_PASSWORD=admin
export REVA_LDAP_SCHEMA_UID=uid

View File

@@ -110,7 +110,7 @@ func AuthBasicWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "ldap-port",
Value: 389,
Value: 636,
Usage: "LDAP port",
EnvVar: "REVA_LDAP_PORT",
Destination: &cfg.Reva.LDAP.Port,
@@ -124,14 +124,14 @@ func AuthBasicWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "ldap-userfilter",
Value: "(objectclass=posixAccount)",
Value: "(&(objectclass=posixAccount)(cn=%s))",
Usage: "LDAP userfilter",
EnvVar: "REVA_LDAP_USERFILTER",
Destination: &cfg.Reva.LDAP.UserFilter,
},
&cli.StringFlag{
Name: "ldap-groupfilter",
Value: "(objectclass=posixGroup)",
Value: "(&(objectclass=posixGroup)(cn=%s))",
Usage: "LDAP groupfilter",
EnvVar: "REVA_LDAP_GROUPFILTER",
Destination: &cfg.Reva.LDAP.GroupFilter,

View File

@@ -93,7 +93,7 @@ func UsersWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "ldap-port",
Value: 389,
Value: 636,
Usage: "LDAP port",
EnvVar: "REVA_LDAP_PORT",
Destination: &cfg.Reva.LDAP.Port,
@@ -107,14 +107,14 @@ func UsersWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "ldap-userfilter",
Value: "(objectclass=posixAccount)",
Value: "(&(objectclass=posixAccount)(cn=%s))",
Usage: "LDAP userfilter",
EnvVar: "REVA_LDAP_USERFILTER",
Destination: &cfg.Reva.LDAP.UserFilter,
},
&cli.StringFlag{
Name: "ldap-groupfilter",
Value: "(objectclass=posixGroup)",
Value: "(&(objectclass=posixGroup)(cn=%s))",
Usage: "LDAP groupfilter",
EnvVar: "REVA_LDAP_GROUPFILTER",
Destination: &cfg.Reva.LDAP.GroupFilter,