Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Group (0.16 sec)

  1. cmd/iam.go

    	}
    }
    
    // AddUsersToGroup - adds users to a group, creating the group if
    // needed. No error if user(s) already are in the group.
    func (sys *IAMSys) AddUsersToGroup(ctx context.Context, group string, members []string) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    
    	updatedAt, err = sys.store.AddUsersToGroup(ctx, group, members)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  2. cmd/sts-handlers_test.go

    	c.mustNotListObjects(ctx, uClient, bucket)
    
    	err = s.adm.UpdateGroupMembers(ctx, madmin.GroupAddRemove{
    		Group:   "test-group",
    		Members: []string{accessKey},
    	})
    	if err != nil {
    		c.Fatalf("unable to add user to group: %v", err)
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, "test-group", true)
    	if err != nil {
    		c.Fatalf("Unable to set policy: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  3. cmd/local-locker_gen.go

    				return
    			}
    		case "Source":
    			z.Source, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Source")
    				return
    			}
    		case "Group":
    			z.Group, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "Group")
    				return
    			}
    		case "Owner":
    			z.Owner, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Owner")
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. internal/config/identity/ldap/config.go

    	EnvGroupSearchFilter  = "MINIO_IDENTITY_LDAP_GROUP_SEARCH_FILTER"
    	EnvGroupSearchBaseDN  = "MINIO_IDENTITY_LDAP_GROUP_SEARCH_BASE_DN"
    	EnvLookupBindDN       = "MINIO_IDENTITY_LDAP_LOOKUP_BIND_DN"
    	EnvLookupBindPassword = "MINIO_IDENTITY_LDAP_LOOKUP_BIND_PASSWORD"
    )
    
    var removedKeys = []string{
    	"sts_expiry",
    	"username_format",
    	"username_search_filter",
    	"username_search_base_dn",
    	"group_name_attribute",
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  5. cmd/typed-errors.go

    var errNoSuchGroup = errors.New("Specified group does not exist")
    
    // error returned in IAM subsystem when a policy attach/detach request has no
    // net effect, i.e. it is already applied.
    var errNoPolicyToAttachOrDetach = errors.New("Specified policy update has no net effect")
    
    // error returned in IAM subsystem when a non-empty group needs to be
    // deleted.
    var errGroupNotEmpty = errors.New("Specified group is not empty - cannot remove it")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    			return true
    		}
    
    		if !groupsSet.IsEmpty() && !groupsSet.Contains(group) {
    			return true
    		}
    
    		ps := mappedPolicy.toSlice()
    		sort.Strings(ps)
    		r = append(r, madmin.GroupPolicyEntities{
    			Group:    group,
    			Policies: ps,
    		})
    		return true
    	})
    
    	sort.Slice(r, func(i, j int) bool {
    		return r[i].Group < r[j].Group
    	})
    
    	return r
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cmd/api-errors.go

    		Description:    "The specified group does not exist.",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrAdminNoSuchJob: {
    		Code:           "XMinioAdminNoSuchJob",
    		Description:    "The specified job does not exist.",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrAdminGroupNotEmpty: {
    		Code:           "XMinioAdminGroupNotEmpty",
    		Description:    "The specified group is not empty - cannot remove it.",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  8. cmd/admin-router.go

    		// Add/Remove members from group
    		adminRouter.Methods(http.MethodPut).Path(adminVersion + "/update-group-members").HandlerFunc(adminMiddleware(adminAPI.UpdateGroupMembers))
    
    		// Get Group
    		adminRouter.Methods(http.MethodGet).Path(adminVersion+"/group").HandlerFunc(adminMiddleware(adminAPI.GetGroup)).Queries("group", "{group:.*}")
    
    		// List Groups
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    					UpdateReq: madmin.GroupAddRemove{
    						Group:    gname,
    						Members:  group.Members,
    						Status:   madmin.GroupStatus(group.Status),
    						IsRemove: false,
    					},
    				},
    				UpdatedAt: group.UpdatedAt,
    			}); err != nil {
    				return errSRIAMError(err)
    			}
    		}
    	}
    
    	// Followed by group policy mapping
    	{
    		// Replicate policy mappings on local to all peers.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. cmd/iam-etcd-store.go

    		}
    	}
    	return nil
    }
    
    func (ies *IAMEtcdStore) loadGroup(ctx context.Context, group string, m map[string]GroupInfo) error {
    	var gi GroupInfo
    	err := ies.loadIAMConfig(ctx, &gi, getGroupInfoPath(group))
    	if err != nil {
    		if err == errConfigNotFound {
    			return errNoSuchGroup
    		}
    		return err
    	}
    	m[group] = gi
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top