1. An image forming apparatus for controlling a printer based on a print job issued by a client terminal, the printer and the client terminal being connected to a communication network, the image forming apparatus comprising: an image capturing part that is provided in a vicinity of the printer and that provides image data; a face detection part that receives the image data, detects a face in the image data, and outputs a position, size, and orientation of the face; a recognizing part that recognizes an identity of a person based on the face detected by the face detection part; an approach determining part that receives the position, size, and orientation of the face, detects a moving direction of the face in an image frame of the image data, and automatically detects a person approaching the printer; and a control part that controls the printer to perform the print job issued by the client terminal according to an instruction of the identified person, based on a recognition output from the recognizing part.