mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-06-20 13:59:21 -04:00
fix default ldap filters and port
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user