Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for targetGroups (0.08 sec)

  1. cmd/admin-handlers-idp-ldap.go

    		ldapPolicies, err := globalIAMSys.PolicyDBGet(targetUser, targetGroups...)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if len(ldapPolicies) == 0 {
    			err = fmt.Errorf("No policy set for user `%s` or any of their groups: `%s`", opts.claims[ldapActualUser], strings.Join(targetGroups, "`,`"))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. cmd/sftp-server.go

    			}, nil
    		}
    
    		if !errors.Is(err, errNoSuchServiceAccount) {
    			return nil, err
    		}
    
    		lookupResult, targetGroups, err = globalIAMSys.LDAPConfig.Bind(user, string(pass))
    		if err != nil {
    			return nil, err
    		}
    
    	} else if key != nil {
    
    		lookupResult, targetGroups, err = globalIAMSys.LDAPConfig.LookupUserDN(user)
    		if err != nil {
    			return nil, err
    		}
    
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. cmd/ftp-server-driver.go

    		}
    
    		var mcreds *credentials.Credentials
    		if errors.Is(err, errNoSuchServiceAccount) {
    			lookupResult, targetGroups, err := globalIAMSys.LDAPConfig.LookupUserDN(ctx.Sess.LoginUser())
    			if err != nil {
    				return nil, err
    			}
    			ldapPolicies, _ := globalIAMSys.PolicyDBGet(lookupResult.NormDN, targetGroups...)
    			if len(ldapPolicies) == 0 {
    				return nil, errAuthentication
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    		return
    	}
    
    	if createReq.AccessKey == globalActiveCred.AccessKey {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    	var (
    		targetGroups []string
    		err          error
    	)
    
    	// Find the user for the request sender (as it may be sent via a service
    	// account or STS account):
    	requestorUser := cred.AccessKey
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top