Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for errNoSuchUser (0.1 sec)

  1. cmd/sftp-server_test.go

    	if err == nil || !errors.Is(err, errNoSuchUser) {
    		c.Fatalf("expected err(%s) but got (%s)", errNoSuchUser, err)
    	}
    }
    
    func (s *TestSuiteIAM) SFTPFailedAuthDueToInvalidUser(c *check) {
    	newSSHCon := newSSHConnMock("dillon_error")
    	_, err := sshPasswordAuth(newSSHCon, []byte("dillon_error"))
    	if err == nil || !errors.Is(err, errNoSuchUser) {
    		c.Fatalf("expected err(%s) but got (%s)", errNoSuchUser, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. cmd/iam-etcd-store.go

    	var u UserIdentity
    	err := getIAMConfig(&u, userkv.Value, string(userkv.Key))
    	if err != nil {
    		if err == errConfigNotFound {
    			return errNoSuchUser
    		}
    		return err
    	}
    	user := extractPathPrefixAndSuffix(string(userkv.Key), basePrefix, path.Base(string(userkv.Key)))
    	return ies.addUser(ctx, user, userType, u, m)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. cmd/iam-object-store.go

    	if err != nil {
    		if err == errConfigNotFound {
    			return u, errNoSuchUser
    		}
    		return u, err
    	}
    
    	if u.Credentials.IsExpired() {
    		// Delete expired identity - ignoring errors here.
    		iamOS.deleteIAMConfig(ctx, getUserIdentityPath(user, userType))
    		iamOS.deleteIAMConfig(ctx, getMappedPolicyPath(user, userType, false))
    		return u, errNoSuchUser
    	}
    
    	if u.Credentials.AccessKey == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    			if !ok {
    				return u, errNoSuchUser
    			}
    		}
    
    		return madmin.UserInfo{
    			PolicyName: mappedPolicy.Policies,
    			MemberOf:   groups,
    			UpdatedAt:  mappedPolicy.UpdatedAt,
    		}, nil
    	}
    
    	ui, found := cache.iamUsersMap[name]
    	if !found {
    		return u, errNoSuchUser
    	}
    	cred := ui.Credentials
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  5. cmd/ftp-server-driver.go

    func (driver *ftpDriver) getMinIOClient(ctx *ftp.Context) (*minio.Client, error) {
    	ui, ok := globalIAMSys.GetUser(context.Background(), ctx.Sess.LoginUser())
    	if !ok && !globalIAMSys.LDAPConfig.Enabled() {
    		return nil, errNoSuchUser
    	}
    	if !ok && globalIAMSys.LDAPConfig.Enabled() {
    		sa, _, err := globalIAMSys.getServiceAccount(context.Background(), ctx.Sess.LoginUser())
    		if err != nil && !errors.Is(err, errNoSuchServiceAccount) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. cmd/sftp-server.go

    		if perms != nil {
    			return perms, nil
    		}
    	}
    
    internalAuth:
    	ui, ok := globalIAMSys.GetUser(context.Background(), user)
    	if !ok {
    		return nil, errNoSuchUser
    	}
    
    	if caPublicKey != nil && pass == nil {
    		err := validateKey(c, key)
    		if err != nil {
    			return nil, errAuthentication
    		}
    	} else {
    		// Temporary credentials are not allowed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. cmd/typed-errors.go

    // error returned for a negative actual size.
    var errInvalidDecompressedSize = errors.New("Invalid Decompressed Size")
    
    // error returned in IAM subsystem when user doesn't exist.
    var errNoSuchUser = errors.New("Specified user does not exist")
    
    // error returned by IAM when a use a builtin IDP command when they could mean
    // to use a LDAP command.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. cmd/iam.go

    func (sys *IAMSys) IsTempUser(name string) (bool, string, error) {
    	if !sys.Initialized() {
    		return false, "", errServerNotInitialized
    	}
    
    	u, found := sys.store.GetUser(name)
    	if !found {
    		return false, "", errNoSuchUser
    	}
    	cred := u.Credentials
    	if cred.IsTemp() {
    		return true, cred.ParentUser, nil
    	}
    
    	return false, "", nil
    }
    
    // IsServiceAccount - returns if given key is a service account
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    	}
    
    	// Reject if the group add and remove are temporary credentials, or root credential.
    	for _, member := range updReq.Members {
    		ok, _, err := globalIAMSys.IsTempUser(member)
    		if err != nil && err != errNoSuchUser {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if ok {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errIAMActionNotAllowed), r.URL)
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  10. cmd/admin-handlers-idp-ldap.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	if dnResult == nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errNoSuchUser), r.URL)
    		return
    	}
    	targetAccount := dnResult.NormDN
    
    	listType := r.Form.Get("listType")
    	if listType != "sts-only" && listType != "svcacc-only" && listType != "" {
    		// default to both
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
Back to top