Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getUser (0.17 sec)

  1. cmd/iam.go

    			// Ignore any deletion error.
    			_, _ = sys.PolicyDBSet(ctx, origKeys[0], "", stsUser, isGroup)
    		}
    	}
    	return nil
    }
    
    // GetUser - get user credentials
    func (sys *IAMSys) GetUser(ctx context.Context, accessKey string) (u UserIdentity, ok bool) {
    	if !sys.Initialized() {
    		return u, false
    	}
    
    	if accessKey == globalActiveCred.AccessKey {
    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/sftp-server.go

    							"accessKey": c.User(),
    						},
    						Extensions: make(map[string]string),
    					}, nil
    				}
    				return nil, errAuthentication
    			}
    
    			ui, ok := globalIAMSys.GetUser(context.Background(), c.User())
    			if !ok {
    				return nil, errNoSuchUser
    			}
    
    			if subtle.ConstantTimeCompare([]byte(ui.Credentials.SecretKey), pass) == 1 {
    				return &ssh.Permissions{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    // HasWatcher - returns if the storage system has a watcher.
    func (store *IAMStoreSys) HasWatcher() bool {
    	_, ok := store.IAMStorageAPI.(iamStorageWatcher)
    	return ok
    }
    
    // GetUser - fetches credential from memory.
    func (store *IAMStoreSys) GetUser(user string) (UserIdentity, bool) {
    	cache := store.rlock()
    	defer store.runlock()
    
    	u, ok := cache.iamUsersMap[user]
    	if !ok {
    		// Check the sts map
    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)
  4. cmd/sts-handlers_test.go

    `, bucket, bucket))
    
    	err = s.adm.AddCannedPolicy(ctx, policy, policyBytes)
    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	accessKey, secretKey := mustGenerateCredentials(c)
    	err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, accessKey, false)
    	if err != nil {
    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)
  5. cmd/object-handlers.go

    		VersionID:        srcOpts.VersionID,
    		Versioned:        srcOpts.Versioned,
    		VersionSuspended: srcOpts.VersionSuspended,
    	}
    	getSSE := encrypt.SSE(srcOpts.ServerSideEncryption)
    	if getSSE != srcOpts.ServerSideEncryption {
    		getOpts.ServerSideEncryption = getSSE
    	}
    
    	dstOpts, err = copyDstOpts(ctx, r, dstBucket, dstObject, nil)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		return nil, errSRPeerNotFound
    	}
    	return getAdminClient(endpoint, creds.AccessKey, creds.SecretKey)
    }
    
    func (c *SiteReplicationSys) getPeerCreds() (*auth.Credentials, error) {
    	u, ok := globalIAMSys.store.GetUser(c.state.ServiceAccountAccessKey)
    	if !ok {
    		return nil, errors.New("site replication service account not found")
    	}
    	return &u.Credentials, nil
    }
    
    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)
  7. cmd/admin-handlers-users.go

    	if accessKey == globalActiveCred.AccessKey {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    	user, exists := globalIAMSys.GetUser(ctx, accessKey)
    	if exists && (user.Credentials.IsTemp() || user.Credentials.IsServiceAccount()) {
    		// Updating STS credential is not allowed, and this API does not
    		// support updating service accounts.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  8. CREDITS

    github.com/muesli/cancelreader
    https://github.com/muesli/cancelreader
    ----------------------------------------------------------------
    MIT License
    
    Copyright (c) 2022 Erik Geiser and Christian Muehlhaeuser
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:31:35 GMT 2024
    - 1.6M bytes
    - Viewed (0)
Back to top