Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/iam.go

    				// Log and continue error - perhaps it'll work the next time.
    				iamLogIf(GlobalContext, err)
    			}
    		}
    	}
    }
    
    // NormalizeLDAPAccessKeypairs - normalize the access key pairs (service
    // accounts) for LDAP users. This normalizes the parent user and the group names
    // whenever the parent user parses validly as a DN.
    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

    				suite.TestLDAPSTSServiceAccountsWithGroups(c)
    				suite.TearDownSuite(c)
    			},
    		)
    	}
    }
    
    // This test is for a fix added to handle non-normalized base DN values in the
    // LDAP configuration. It runs the existing LDAP sub-tests with a non-normalized
    // LDAP configuration.
    func TestIAMWithLDAPNonNormalizedBaseDNConfigServerSuite(t *testing.T) {
    	for i, testCase := range iamTestSuites {
    		t.Run(
    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. internal/event/target/postgresql.go

    	// check for quoted string (string may not contain a quote)
    	if match, err := regexp.MatchString("^\"[^\"]+\"$", name); err != nil {
    		return err
    	} else if match {
    		return nil
    	}
    
    	// normalize the name to letters, digits, _ or $
    	valid := true
    	cleaned := strings.Map(func(r rune) rune {
    		switch {
    		case unicode.IsLetter(r):
    			return 'a'
    		case unicode.IsDigit(r):
    			return '0'
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  4. internal/rest/client.go

    	u, err := url.Parse(urlStr)
    	if err != nil {
    		// Mark offline, with no reconnection attempts.
    		connected = int32(offline)
    		err = &url.Error{URL: urlStr, Err: err}
    	}
    	// The host's colon:port should be normalized. See Issue 14836.
    	u.Host = removeEmptyPort(u.Host)
    
    	// Transport is exactly same as Go default in https://golang.org/pkg/net/http/#RoundTripper
    	// except custom DialContext and TLSClientConfig.
    	clnt := &Client{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    	// use the normalized form of the entityName (which will be an LDAP DN).
    	userType := IAMUserType(mapping.UserType)
    	isGroup := mapping.IsGroup
    	entityName := mapping.UserOrGroup
    	if globalIAMSys.GetUsersSysType() == LDAPUsersSysType && userType == stsUser {
    
    		// Validate that the user or group exists in LDAP and use the normalized
    		// form of the entityName (which will be an LDAP DN).
    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)
  6. internal/config/identity/ldap/ldap.go

    // server is canonical. Additionally, the attribute type names in the DN are
    // lower-cased.
    //
    // Return values:
    //
    // If the DN is found, the normalized (string) value is returned and error is
    // nil.
    //
    // If the DN is not found, the string returned is empty and the error is nil.
    //
    // The returned boolean is true iff the DN is found under one of the LDAP
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. cmd/utils.go

    		}
    		ep = ep[1:]
    	}
    	return ep
    }
    
    // unescapeGeneric is similar to url.PathUnescape or url.QueryUnescape
    // depending on input, additionally also handles situations such as
    // `//` are normalized as `/`, also removes any `/` prefix before
    // returning.
    func unescapeGeneric(p string, escapeFn func(string) (string, error)) (string, error) {
    	ep, err := escapeFn(p)
    	if err != nil {
    		return "", err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    			return
    		}
    	}
    
    	userType := regUser
    	if globalIAMSys.GetUsersSysType() == LDAPUsersSysType {
    		userType = stsUser
    
    		// Validate that the user or group exists in LDAP and use the normalized
    		// form of the entityName (which will be an LDAP DN).
    		var err error
    		if isGroup {
    			var foundGroupDN string
    			var underBaseDN bool
    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)
Back to top