Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sshPasswordAuth (0.16 sec)

  1. cmd/sftp-server_test.go

    	newSSHCon := newSSHConnMock("dillon=ldap")
    	_, err := sshPasswordAuth(newSSHCon, []byte("dillon"))
    	if err == nil || !errors.Is(err, errSFTPUserHasNoPolicies) {
    		c.Fatalf("expected err(%s) but got (%s)", errSFTPUserHasNoPolicies, err)
    	}
    
    	newSSHCon = newSSHConnMock("dillon")
    	_, err = sshPasswordAuth(newSSHCon, []byte("dillon"))
    	if err == nil || !errors.Is(err, errNoSuchUser) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. cmd/sftp-server.go

    }
    
    func sshPubKeyAuth(c ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, key, nil)
    }
    
    func sshPasswordAuth(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, nil, pass)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top