def parse_password_file(file_name):
    """ parse the apache password file into usernames and passwords """
    passwords = {}
    
    for line in open(file_name, 'r'):
        username, password = line.split(':')
        passwords[username] = password.strip()
    
    return passwords