mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
ldap: Create services accounts for LDAP and STS temp accounts (#11808)
This commit is contained in:
1 parent
b70c298c27
commit
291d2793ca
12 files changed
+731
-178
No files matched your search
@@ -56,14 +56,14 @@ func main() {
|
||||
}
|
||||
|
||||
// Create a new service account
|
||||
creds, err := madmClnt.AddServiceAccount(context.Background(), &p)
|
||||
creds, err := madmClnt.AddServiceAccount(context.Background(), madmin.AddServiceAccountReq{Policy: &p})
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
fmt.Println(creds)
|
||||
|
||||
// List all services accounts
|
||||
list, err := madmClnt.ListServiceAccounts(context.Background())
|
||||
list, err := madmClnt.ListServiceAccounts(context.Background(), "")
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user