1. Field of the Invention
The present invention relates to a communication apparatus having an auto-complete function, a method of controlling the same, and a storage medium.
2. Description of the Related Art
There are three approaches for specifying a destination address in a transmission of a mail, or the like, in conventional communications apparatuses. The first is an approach of selecting from destination addresses registered in an address book of the apparatus, and the second is an approach of inputting a destination address directly using a keyboard of an operation unit, or the like. Furthermore, the third approach is an approach (hereinafter referred to as an auto-complete) of combining a selection from registered destination address data and a selection of direct input by presenting destination address information of complementation candidates based on an input character sequence to a user when a destination address is directly input (Japanese Patent Laid-Open No. 2011-71660).
However, an approach of obtaining a destination address from an external device via a network using Lightweight Directory Access Protocol (hereinafter referred to as LDAP) as a way of obtaining the destination address is not mentioned in the prior art. There are cases in which a referral object, that introduces another server and is specific to the LDAP protocol, is processed in an approach of obtaining a destination address using the LDAP protocol. A referral object is an object that introduces a different LDAP server. When a client connected to the LDAP server receives a referral object from the LDAP server, it is necessary to connect to the LDAP server introduced by the referral object in order to further obtain a destination address. For this reason, there are cases where connections to a plurality of LDAP servers are needed for a single destination address search, so in order to obtain a destination address by connecting the plurality of LDAP servers, a large amount of time is required to complete the obtaining of the destination address and to complete the auto-complete. For this reason there is a problem in that convenience is reduced. In particular, this problem is noticeable in a case where settings are such that an LDAP server is connected to using the SSL protocol.
Also, while an approach of maintaining a connection to the server once connected to an LDAP server in order to shorten the time period required for the auto-complete to finish has been proposed, there is the possibility that a plurality of servers will be connected to due to a referral object being processed. Because there are restrictions to the number of LDAP servers to which a communication apparatus is able to connect to at a time, it is difficult to maintain all of the connections to the connected LDAP servers, and so the above described problem is not resolved.
An aspect of the present invention is to eliminate the above-mentioned problems with the conventional techniques.
A feature of the present invention is to provide a technique in which, even in a case where a destination address is obtained using an LDAP server, a processing delay due to an auto-complete function can be prevented.
According to an aspect of the present invention, there is provided a communication apparatus having an auto-complete function using an LDAP protocol, the apparatus comprising: an input unit configured to input character information; a verifying unit configured to verify a certificate of an LDAP server; and an obtaining unit configured to obtain, by the LDAP protocol, address information including the character information input by the input unit after the certificate of the LDAP server has been verified by the verifying unit.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Embodiments of the present invention will be described hereinafter in detail, with reference to the accompanying drawings. It is to be understood that the following embodiments are not intended to limit the scope of the claims of the present invention, and that not all of the combinations of the aspects that are described according to the following embodiments are necessarily required with respect to the means to solve the problems according to the present invention.
First, an overview of processing in an image communication apparatus according to the embodiment is explained.
In an auto-complete function according to embodiments, with each user input of character information indicating a destination address into the image communication apparatus, complementation candidate destination addresses are obtained and the obtained destination addresses are displayed complementing the user input.
A flow for obtaining destination address information from an LDAP server is explained hereinafter. A connection to an LDAP server is made using an SSL or a TCP protocol, and a destination address search request is transmitted, to the LDAP server to which the connection is made, using an LDAP protocol. In a case where the connection to the LDAP server is made using the SSL protocol, verification of an SSL certificate of the LDAP server is performed, and the connection will be stopped if the validity of the LDAP server cannot be verified. After the destination address search request is transmitted to the LDAP server, the destination address is obtained from the LDAP server, and it is determined whether or not a referral object is included in the obtained destination address. A referral object is an object by which the LDAP server that received the search request introduces a different LDAP server. Therefore, in order to obtain the destination address for a complementation candidate, a connection, to the LDAP server that the obtained referral object introduces, must be made using the SSL protocol or the TCP protocol, and a destination address search must be performed. By repeating the operation of referencing these kinds of referral objects and connecting to different LDAP servers, the required number of complementation candidates are obtained.
The image communication apparatus 101 comprises a CPU 11, a RAM 12, a storage unit 13, an input and output unit 14, a reading unit 15 and a communication unit 16, and these are connected to each other via a main bus 18. The CPU 11 controls the image communication apparatus 101 in accordance with programs stored in the storage unit 13 and loaded into the RAM 12 upon execution. The RAM 12 provides a work area when the CPU 11 executes processing. The storage unit 13 is a storage unit (hereinafter referred to as an HDD) such as a hard disk drive (an NVRAM) storing programs executed by the CPU 11, a variety of settings, and files, or the like. The input and output unit 14 is used in a case where a user inputs a command, or where a message to a user is displayed, and a user performs variety of settings through a GUI (Graphical User Interface). The input and output unit 14 may comprise a touch panel function. The reading unit 15 scans an original, such as a document, optically, and generates digital data of the original image. The communication unit 16 controls communication with external devices via a network 102.
Note, in the image communication apparatus 101 according to the embodiments, while there is no particular limitation to this, the CPU 11 controls the RAM 12, the HDD 13, the input and output unit 14, the reading unit 15, and the communication unit 16 via the main bus 18, and executes processing according to embodiments. In the HDD 13, a plurality of destination address information items, relating to transmission destinations to which the image communication apparatus 101 is able to transmit image data, are stored, and these destination address information items can be displayed by the input and output unit 14. Hereinafter, destination address information registered in the HDD 13 is referred to as an address book.
Here the image communication apparatus 101 is connected to an LDAP server 202, an LDAP server 203 and an LDAP server 204 via the network 102. The image communication apparatus 101 is able to connect to the LDAP server 202, the LDAP server 203, and the LDAP server 204 using the LDAP protocol. The image communication apparatus 101 is also connected to a mail server 201 via the network 102, and can transmit image data to a mail address registered for the mail server 201.
The processing is initiated, for example, by an instruction to scan and transmit an original being input into the input and output unit 14, and firstly, the CPU 11 displays a scan screen, for example, as shown in
In
After displaying the scan screen, the processing proceeds to step S103 where the CPU 11 determines whether or not the button 402 for newly inputting a destination address is pressed. When it is determined that the button 402 is pressed, the processing proceeds to step S104, and the CPU 11 displays a new destination address input screen, as shown in
A software keyboard is displayed in the input and output unit 14 as shown in
Here, for example, when the auto-complete key 505 is pressed in the new destination address screen of in
In
In step S105, the CPU 11 determines whether or not setting is such that auto-complete is to be performed (the button 602 not being pressed), and the processing proceeds to step S106 if setting is such that auto-complete is performed, and otherwise the processing proceeds to step S111. In step S106, the CPU 11 determines whether either of the button 603 or the button 604 in
On the other hand, in a case where the button 604 in
Also in a case where the CPU 11 determines that setting is such that auto-complete is not performed in step S105, the processing proceeds to step S111, and the CPU 11 determines whether or not an input of the destination address is completed and the finalization key 503 in
Also in a case where the CPU 11 determines that the button 402 for newly inputting a destination address is not pressed in step S103, the processing proceeds to step S112 and the CPU 11 determines whether searching for destination addresses from an address book is selected by the button 401. In a case where it is determined that searching for destination addresses from an address book is selected in step S112, the processing proceeds to step S113 where the CPU 11 displays the address book in the input and output unit 14, and the processing proceeds to step S114. The CPU 11 determines whether or not a destination address is instructed with the displayed address book in step S114, and the processing proceeds to step S115 in a case where a destination address is instructed, and otherwise the processing returns to step S113.
For example, in
As explained above, according to the flowchart in
Firstly, in step S802, the CPU 11 initializes the number of characters A to be entered before destination addresses are obtained from LDAP servers. In this embodiment, explanation is given with the number of characters A to be entered before destination addresses are obtained from LDAP servers being “1” as an initial state, but other values may be taken. Next, the processing proceeds to step S803, and the CPU 11 initializes the already input number of characters B. Here, explanation is given with the already input number of characters B being “0” as an initial state, but other values may be taken. Next, the processing proceeds to step S804, and the CPU 11 initializes the number of characters C input after search. Explanation is given with the number of characters C input after search being “0” as an initial state, but other values may be taken. Next, the processing proceeds to step S805, and the CPU 11 initializes a list of LDAP servers, one example of which is shown in
Next, the processing proceeds to step S806, and the CPU 11 determines whether or not a user of the image communication apparatus 101 input a character in the display area 502 in the screen in
Next the processing proceeds to step S810, the CPU 11 initializes a list of the already obtained referral objects shown in
Next the processing proceeds to step S814, the CPU 11 displays the destination address list obtained in the processing in step S813 on the new destination address input screen, to a user of the image communication apparatus 101, and displays in the display area 502 complementing input. Next the processing proceeds to step S815, the CPU 11 determines whether or not the finalization key 503 or the cancel key 504 is pressed on the screen displayed in step S814, and the completion of the auto-complete processing is instructed. In a case where the completion is instructed, the flow ends, but if completion is not instructed, the processing returns to step S806, and the previously described processing is continued.
First, the CPU 11, in step S1102, obtains LDAP server information designated with the button 605 of
On the other hand, in a case where it is determined that a referral object is not included in step S1108, the processing proceeds to step S1110. In step S1110, the CPU 11 determines whether or not one or more referral objects are registered in the list of already obtained referral objects. In a case where one or more referral objects are not registered, the processing proceeds to step S1111, and the CPU 11 determines whether or not the number of referral objects is larger than the number set in advance. Here, when it is determined that the number of referral objects is smaller than the number set in advance, the processing proceeds to step S1112, and the CPU 11 decrements the number of characters A until destination addresses are obtained from the LDAP server, and the processing completes. On the other hand, when it is determined that the number of referral objects is larger than the number set in advance, the processing proceeds to step S1113, and increments the number of characters A until destination addresses are obtained from the LDAP server, and the processing completes.
With this, when the number of referral objects introducing going to search on differing LDAP servers is less than the number set in advance, the number of characters in begins-with matching for which searching is performed is reduced, and the number of times auto-complete is performed is increased. Conversely, when the number of referral objects is more than the number set in advance, the number of characters in begins-with matching for which searching is performed is increased, and the number of times auto-complete is performed is reduced.
Also, in a case where the CPU 11 determines, in step S1110, that one or more referral objects are registered, the processing proceeds to step S1114, and the CPU 11 retrieves one referral object from the list of already obtained referral objects. Then, the CPU 11 sets that referral object to be the LDAP server for obtaining the destination addresses. After this, the processing proceeds to step S1115, the CPU 11 increments the number of referral objects D, the processing returns to step S1103, and the processing continues.
Also, in a case where the CPU 11, in step S1104, determines that setting is such that connection to that LDAP server is by the SSL protocol, the processing proceeds to step S1129. Even in a case where setting is such that connection is made using the SSL protocol for the LDAP server, the CPU 11, in step S1129, determines whether or not setting is such that auto-complete is executed. When the CPU 11 determines, in step S1129, that setting is such that auto-complete is not executed, the processing proceeds to step S1110, and the processing continues. Meanwhile, in a case where the CPU 11, in step S1129, determines that setting is such that auto-complete is executed, the processing proceeds to step S1116, and the CPU 11 determines whether or not setting is such that an SSL certificate is verified. In a case where it is determined that setting is such that an SSL certificate is not verified, the processing proceeds to step S1117, the CPU 11 connects to the LDAP server by the SSL protocol, the processing proceeds to step S1106, and the previously described processing is executed.
On the other hand, in a case where setting is such that an SSL certificate is verified in step S1116, the processing proceeds to step S1118, and the CPU 11 determines whether or not the number of characters B input into the auto-complete screen is two or more. In a case where it is determined that the number of characters B input into the auto-complete screen is not two characters or more, the processing proceeds to step S1119, and the CPU 11 performs verification of the SSL certificate of the LDAP server. Then, the processing proceeds to step S1120, and the CPU 11 determines whether or not a validity of the LDAP server could be verified with the SSL certificate. There are various determination criteria for whether or not the validity of the LDAP server could be verified using the SSL certificate such as whether the current time is within a validity time of the certificate, or whether the certificate is not defined in an expired list, and any kind of determination criteria may be used in embodiments. In step S1120, in a case where the CPU 11 determines that the validity cannot be verified, the processing proceeds to step S1121, the LDAP server is added to a list of servers for which the SSL certificate could not be verified, and the processing proceeds to step S1110.
Meanwhile, in a case where the validity could be verified in step S1120, the processing proceeds to step S1122, and the CPU 11 connects to the LDAP server using the SSL protocol. Then the processing proceeds to step S1123, and the CPU 11 obtains destination addresses by making a request to the LDAP server for the destination addresses that are begins-with matches with the character sequence input on the auto-complete screen. Then, the processing proceeds to step S1124, the CPU 11 adds the destination address obtained in step S1123 to the obtained destination address list, and the processing proceeds to step S1125. In step S1125, the CPU 11 determines whether or not a referral object is included in the destination address list obtained in step S1123, and in a case where a referral object is not included, the processing proceeds to step S1110, and the processing continues. Meanwhile, in a case where it is determined that a referral object is included in step S1125, the processing proceeds to step S1126, and the CPU 11 adds the included referral object to the already obtained object list, the processing proceeds to step S1110, and the processing continues.
Also, in a case where the CPU 11, in step S1118, determines that the input number of character B is equal to or larger than two characters, the processing proceeds to step S1127, and the CPU 11 determines whether or not that LDAP server is registered in the list of servers for which validity could not be verified with the SSL certificate. In a case where it is determined that the LDAP server is not registered, the processing proceeds to step S1122, and in a case where it is determined that the LDAP server is registered, the processing proceeds to step S1110, and the processing continues.
As explained above, according to the present embodiment, in a case where it is expected that communication will occur multiple times over a short period such as with LDAP auto-complete, a deterioration in response speed can be prevented by configuring so as to not perform verification of an SSL certificate for every communication.
Also, by registering a list of LDAP servers for which validity could not be verified by SSL certificate verification, an LDAP auto-complete using those registered server can be prevented.
Also, LDAP server SSL certificate verification is skipped when the input number of characters is greater than or equal to a predetermined number (for example, greater than or equal to two), but LDAP server verification with an SSL certificate is performed when the input number of characters is less than the predetermined number (for example, less than two). Because of this, the time for LDAP auto-complete can be shortened.
Furthermore, when the number of referral objects that introduce a server other than the obtaining target LDAP server is more than a predetermined number, the frequency of searching with LDAP auto-complete is reduced by changing the number of characters for which to do a search. With this, the processing time in LDAP auto-complete becoming longer can be prevented.
Also, in a case where the number of LDAP servers to connect to with referral objects is a number for which maintaining sessions is not a problem, sessions with the plurality of LDAP servers are kept alive. Because of this, the processing time for LDAP auto-complete can be shortened.
Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions recorded on a storage medium (e.g., non-transitory computer-readable storage medium) to perform the functions of one or more of the above-described embodiment(s) of the present invention, and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more of a central processing unit (CPU), micro processing unit (MPU), or other circuitry, and may include a network of separate computers or separate computer processors. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2013-206809, filed Oct. 1, 2013 and Japanese Patent Application No. 2014-028964, filed Feb. 18, 2014, which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
2013-206809 | Oct 2013 | JP | national |
2014-028964 | Feb 2014 | JP | national |