Revision 4a1dd7af

b/examples/users
1
user password
2
user1 {cleartext}password
3
user2 {HA1}md5hash
b/vncauthproxy/proxy.py
598 598
def parse_auth_file(auth_file):
599 599
    supported_ciphers = ('cleartext', 'HA1')
600 600

  
601
    users = {}
601 602
    with open(auth_file) as f:
602
        users = {}
603 603
        lines = [l.strip().split() for l in f.readlines()]
604 604

  
605 605
        for line in lines:
......
624 624

  
625 625
            users[user] = password
626 626

  
627
    if not users:
628
        raise "No users defined"
629

  
627 630
    return users
628 631

  
629 632

  

Also available in: Unified diff