Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for sshPublicKey (0.05 seconds)

  1. cmd/sftp-server.go

    		}
    		// Save each attribute to claims.
    		claims[ldapAttribPrefix+attribKey] = attribValue[0]
    	}
    
    	if key != nil {
    		// If a key was provided, we expect the user to have an sshPublicKey
    		// attribute.
    		if _, ok := claims[ldapAttribPrefix+"sshPublicKey"]; !ok {
    			return nil, errAuthentication
    		}
    	}
    
    	expiryDur, err := globalIAMSys.LDAPConfig.GetExpiryDuration("")
    	if err != nil {
    		return nil, err
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  2. cmd/sts-handlers_test.go

    		}
    
    		// Validate claims. Check if the sshPublicKey claim is present.
    		dnClaim := claims.MapClaims[ldapActualUser].(string)
    		if dnClaim != testCase.dn {
    			c.Fatalf("Test %d: unexpected dn claim: %s", i+1, dnClaim)
    		}
    		sshPublicKeyClaim := claims.MapClaims[ldapAttribPrefix+"sshPublicKey"].([]any)[0].(string)
    		if sshPublicKeyClaim == "" {
    			c.Fatalf("Test %d: expected sshPublicKey claim to be present", i+1)
    		}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
Back to Top