mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
Fix Test LDAP for automatic site replication (#17305)
This commit is contained in:
parent
086d8f036e
commit
669acbb032
@ -64,7 +64,7 @@ export MC_HOST_minio3=http://minio:minio123@localhost:9003
|
|||||||
|
|
||||||
./mc admin replicate add minio1 minio2 minio3
|
./mc admin replicate add minio1 minio2 minio3
|
||||||
|
|
||||||
./mc admin idp ldap policy attach minio1 consoleAdmin --user="uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
|
./mc idp ldap policy attach minio1 consoleAdmin --user="uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
./mc admin user info minio2 "uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
|
./mc admin user info minio2 "uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
|
||||||
|
@ -159,21 +159,21 @@ mc admin policy create myminio mypolicy mypolicy.json
|
|||||||
To associate the policy with an LDAP user or group, use the full DN of the user or group:
|
To associate the policy with an LDAP user or group, use the full DN of the user or group:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mc admin idp ldap policy attach myminio mypolicy --user='uid=james,cn=accounts,dc=myldapserver,dc=com'
|
mc idp ldap policy attach myminio mypolicy --user='uid=james,cn=accounts,dc=myldapserver,dc=com'
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mc admin idp ldap policy attach myminio mypolicy ----group='cn=projectx,ou=groups,ou=hwengg,dc=min,dc=io'
|
mc idp ldap policy attach myminio mypolicy ----group='cn=projectx,ou=groups,ou=hwengg,dc=min,dc=io'
|
||||||
```
|
```
|
||||||
|
|
||||||
To remove a policy association, use the similar `detach` command:
|
To remove a policy association, use the similar `detach` command:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mc admin idp ldap policy detach myminio mypolicy --user='uid=james,cn=accounts,dc=myldapserver,dc=com'
|
mc idp ldap policy detach myminio mypolicy --user='uid=james,cn=accounts,dc=myldapserver,dc=com'
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mc admin idp ldap policy detach myminio mypolicy ----group='cn=projectx,ou=groups,ou=hwengg,dc=min,dc=io'
|
mc idp ldap policy detach myminio mypolicy ----group='cn=projectx,ou=groups,ou=hwengg,dc=min,dc=io'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user