Lines Matching full:user

94  * Gets the path to the SSH folder for the specified user. If the user is an
95 * admin it returns the ssh folder located at %PROGRAMDATA%/ssh. If the user is
100 * isAdmin -> Whether the user is an admin or not
114 /* If not an Admin the SSH key is in the user directory. */ in get_ssh_folder()
115 /* Get the user profile directory on the machine. */ in get_ssh_folder()
128 * Creates an entry for the user so they can access the ssh folder in their
132 * userInfo -> Information about the current user
147 error_setg_win32(errp, GetLastError(), "failed to retrieve user %s SID", in create_acl_user()
152 /* Set the permissions for the user. */ in create_acl_user()
175 "failed to set ACL entries for user %s %lu", in create_acl_user()
205 /* Create an entry for the system user. */ in create_acl_base()
213 /* set permissions for system user */ in create_acl_base()
221 /* Create an entry for the admin user. */ in create_acl_base()
253 "failed to set base ACL entries for system user and " in create_acl_base()
279 * access the folders. For normal user accounts only the specified user,
283 * userInfo -> pointer to structure that contains information about the user
300 * If the user is not an admin give the user creating the key permission to in create_acl()
314 * Create the SSH directory for the user and d sets appropriate permissions.
315 * In general the directory will be %PROGRAMDATA%/ssh if the user is an admin.
319 * userInfo -> Contains information about the user
328 /* Gets the appropriate ACL for the user */ in create_ssh_directory()
373 * parameters: userInfo -> Information about the user
387 /* Get the PSID structure for the user based off the string SID. */ in set_file_permissions()
390 error_setg_win32(errp, GetLastError(), "failed to retrieve user %s SID", in set_file_permissions()
423 * userInfo: Information about the user we are writing the authkeys file to.
450 * Retrieves information about a Windows user by their username
454 * will be allocated with information about the user and need to be freed.
455 * username -> Name of the user to lookup.
487 /* Give a friendlier error message if the user was not found. */ in get_user_info()
489 error_setg(errp, "User %s was not found", username); in get_user_info()
494 "Received unexpected error when asking for user info: Error " in get_user_info()
514 "failed to get SID string for user %s", username); in get_user_info()
521 /* Get the SSH folder for the user. */ in get_user_info()
547 * Gets the list of authorized keys for a user.
552 * returns: List of keys associated with the user.
562 /* Gets user information */ in qmp_guest_ssh_get_authorized_keys()
567 /* Reads authkeys for the user */ in qmp_guest_ssh_get_authorized_keys()
593 * Adds an ssh key for a user.
596 * username -> User to add the SSH key to
616 /* Gets user information */ in qmp_guest_ssh_add_authorized_keys()
628 /* Check that the SSH key directory exists for the user. */ in qmp_guest_ssh_add_authorized_keys()
658 * Removes an SSH key for a user
675 /* Validates the keys passed in by the user */ in qmp_guest_ssh_remove_authorized_keys()
680 /* Gets user information */ in qmp_guest_ssh_remove_authorized_keys()
685 /* Reads the authkeys for the user */ in qmp_guest_ssh_remove_authorized_keys()
696 /* Filters out keys that are equal to ones the user specified. */ in qmp_guest_ssh_remove_authorized_keys()