Abstract:
The present invention provides a system and method of performing user authentication on web based applications, such as IBM&#39;s Network Station Configuration Preference Manager. In particular, the system and method saves and continuously passes user information back and forth between a web client and a web server. The user information can then be used by CGI programs being executed on the web server for authentication purposes. Specifically, each CGI program will examine the user information, determine the authority privileges of the user, run the CGI program under a non-default user mode, return user information back to the web client, and return the CGI job to run in a default user mode.

Description:
FIELD OF THE INVENTION 
     The present invention relates to network systems using Internet technology. More particularly, the present invention relates to the authentication of users submitting job requests from web clients. 
     BACKGROUND OF THE INVENTION 
     A current trend in network computing is to provide lower cost workstations without sacrificing end-user capabilities. Such workstations are being made available through the exploitation of the emerging Internet technologies that continue to be developed. In particular, new network solutions, such as IBM&#39;s Network Station, utilize a World Wide Web environment wherein each client workstation behaves like a Web client (i.e., it utilizes a Web browser) connected to an HTTP (Hypertext Transfer Protocol) server. While these new workstations typically have less computing power than traditional personal computers or UNIX workstations (thereby reducing cost), they are better equipped to take advantage of various applications on file servers such as IBM&#39;s AS/400, PC servers, RS/6000, System/390 etc. 
     Web based applications on web servers are implemented through CGI (Common Gateway Interface) programs, scripts or some other form of application program interface (API), such as Netscape&#39;s™ NSAPI, Microsoft&#39;s™ ISAPI, or Java&#39;s Servlet API. Similar to the act of retrieving HTML (Hypertext Markup Language) documents on web servers from web clients, CGI programs provide the means by which web clients can run applications in real time on web servers and receive back dynamically created output. CGI programs are executed each time a client requests a URL (Uniform Resource Locator) corresponding to the CGI program. A limitation involved in the running of CGI programs is the fact that a web based server does not typically keep track or know which user is running a given CGI program. This can create potential security problems, particularly in the case where it is desirous to have programs behave differently depending upon the privilege level of the user. 
     Accordingly, it is of particular importance with such systems that utilize Internet technologies to provide some means of user authentication. Unlike with existing terminal emulation networking, web-based systems do not necessarily know, or care to know, who the user is that wants to run a particular CGI program or what the user&#39;s level of privileges are. As noted, this can become a serious limitation if an end user is a systems administrator, and the end user needs to perform system configuration functions from a remote workstation. For example, a systems administrator should be able to pull up non-default screens and execute protected programs not available to the general public. (E.g., certain menu options, such as the option to manipulate a password file, should not be available to every user.) 
     While it is known to have CGI programs execute differently depending upon the user profile or ID supplied to the operating system, this obviously cannot be accomplished unless the operating system knows the identity (and perhaps the password) of the end user. As noted above however, most web-based file servers provide no built-in system for recognizing web users. While it may be possible to ask for a user ID and password each time a subset of CGI programs are executed, such a system would create far too much overhead since the number of programs requiring user ID or profile checking may be extremely high. Rather, what is preferred is a system that keeps track of who the user is each time a CGI program is executed and then acts accordingly. 
     Some HTTP servers are known to include processes for performing very limited forms of basic user authentication. These servers, however, require that the web user provide a password each time the client is directed to a new server. Given the number of servers that may be involved in a web based network, this presents serious limitations. Thus, a system is required that can provide user authentication over a complete web based network. 
     SUMMARY OF THE INVENTION 
     The present invention provides a system and method for identifying and responding to a user&#39;s authority level on a web based network. In a first aspect, the invention includes a network system having a web server, such as an HTTP server, at least one web client that includes a mechanism for submitting user information along with CGI execution requests to the web server, and at least one self authenticating CGI program that is initially executable under a default user mode or user ID. The CGI program includes a means for examining the user information, a means for determining the privilege level of the user, a means for causing the program to run in a non-default mode, a means for storing and returning the user information back to the web client, and a means for returning the CGI program back to a default user mode. 
     In a second aspect, the present invention provides a method of providing user authentication that includes the steps of providing a web server that initially extracts user information from the end user during a one time logon procedure. The web server then stores password information for the user in a security object on the web server and stores other user information in hidden variables and sends the user information back to the web client in an HTML form. All subsequent CGI execution requests from the web client include the following steps. First, the user information is returned back to the web server with the execution request in the HTML hidden variables. Next, execution of the CGI program is commenced under a default user mode or ID on the web server. The user information received with the execution request is then examined and the authority level of the user is determined. The authority level of the user may be determined by obtaining password information from the security object. Next, the CGI program makes the appropriate system calls to cause the CGI program to run under a non-default user mode or ID. The user information is then again stored in HTML hidden variables and returned to the web client along with the results of the CGI program execution. Finally, the CGI program makes the appropriate system calls to cause the CGI program to return to execution in its default user mode. 
     Additionally, it should be recognized that this invention contemplates a network system having many HTTP servers, each comprising a generic or common protocol for implementing the herein disclosed user authentication system and method. 
     Finally, while this disclosure focuses on an implementation using CGI programs, it should be recognized that the systems and methods described herein may include any program types that are initiated by a web server. Thus, any web server API (application program interface), such as Netscape&#39;s™ NSAPI, Microsoft&#39;s™ ISAPI, or Java&#39;s Servlet API, or any other type of web program interface type may be substituted for CGI as described herein. 
     It is therefore an advantage of the present invention to provide user authentication in a web based network environment. 
     It is therefore a further advantage of the present invention to use an HTML form to pass user information back and forth between the client and the server thereby eliminating the need to prompt for user information. 
     It is a further advantage of the present invention to provide a means by which CGI programs can change execution modes in an HTTP server environment based on a privileged level of an end user. 
     It is a further advantage of the present invention to provide a security object on a web server for temporarily storing password information for users logged on to the network. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 depicts a block diagram of a web based client server network in accordance with a preferred embodiment of the present invention. 
     FIG. 2 depicts pseudo code from a CGI program and associated subroutines in accordance with a preferred embodiment of the present invention. 
     FIG. 3 depicts a flow diagram of a method of implementing user authentication in accordance with a preferred embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring now to the figures, FIG. 1 depicts a web based client server network 10. Included is a file server 16 that includes an HTTP server 18, a plurality of CGI programs 20, a security object 22, and a storage device 21. Also shown is a web client 12 running a web browser 14 that is in communication with file server 16. The communication link between web client 12 and file server 16 may be accomplished with any type of transmission link including ethernet, twisted pair, token ring, telephone wires, optical fibers, coaxial cable and/or a wireless transmission system. 
     The network system 10 operates as follows. When a web client 12 seeks to execute a CGI program on the file server 16, it submits a CGI execution request 24 to the HTTP server 18. Pursuant to this invention and along with the execution request 24, a set of user information 29 is also submitted that includes a user ID 13, an IP (Internet protocol) address 15 and an admin-user flag 17 (described below). It should be understood that additional user information, such as an encrypted password, part number, time and date information, etc., may also be included. 
     When the HTTP server receives the request, it launches the execution of a particular CGI program 20 under a default execution profile or mode 25. The CGI program 20, which then begins to run under the default mode, launches a series of novel procedure calls that perform user authentication. The procedures include a mechanism for examining the user information, a mechanism for determining the authority privilege level of the user, a mechanism for causing the CGI program to run under a non-default user profile 23, a mechanism for returning the user information back to the web client (typically with the results of the CGI execution), and a mechanism for returning the CGI job back to its default mode or profile 25. The code for running these jobs may be included in the CGI programs 20 themselves, or may be stored elsewhere within or near the file server 16. 
     Authentication and/or authorization is thus accomplished 1) by providing a transparent means by which user information can be continuously retrieved from and returned to the web browser 14 each time a CGI program is executed; and 2) by providing a means by which CGI programs can dynamically change their own execution profile within the server&#39;s operating system. 
     In this preferred embodiment, the user information 29 is transferred back and forth between the client 12 and server 16 using hidden codes or HTML hidden variables for each CGI execution. Below is an example of a piece of HTML code that utilizes hidden variables within an HTML form. 
     &lt;FORM NAME=&#34;mainForm&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  PROD&#34; VALUE=&#34;5733A07&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NSMUSER&#34; VALUE=&#34;DEVON&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NSMIPADDR&#34; VALUE=&#34;9.5.100.109&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NSMTERM&#34; VALUE=&#34;NO&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NSMADMIN&#34; VALUE=&#34;YES&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  KEY&#34; VALUE=&#34;855223380 --  50&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NLV&#34; VALUE=&#34;MRI2924&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  SERVER&#34; VALUE=&#34;&lt;BASE HREF=http://9.5.151.42/QIBM/NetworkStation/MRI2924/&gt;&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  JVM --  INSTALL&#34; VALUE=&#34;YES&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NAV --  INSTALL&#34; VALUE=&#34;NO&#34;&gt; 
     &lt;INPUT TYPE=&#34;HIDDEN&#34; NAME=&#34;NSM --  TAG --  NSB --  INSTALL&#34; VALUE=&#34;NO&#34;&gt; 
     &lt;/FORM&gt; 
     Hidden variables are a defined mechanism within the HTML language that may be included as part of a form 19 within an HTML document. Hidden variables within a form are variables that are transparent to the user under normal viewing conditions. Forms are used in web-based HTML applications as one method for transferring information back and forth between a client 12 and a server 16. (Thus, forms may be used to extract and return information from a user to a server, such as when a user is prompted for information, or they may be used to return information to a user, such as when an HTML documents is returned to the browser 14 by a CGI program.) In this case, hidden variables are used to send a user ID (stored in NSM --  TAG --  NSMUSER) &#34;DEVON,&#34; an IP address (stored in NSM --  TAG --  NSMAPADDR) of 9.5.100.109, an admin-user value (stored in NSM --  TAG --  NSMADMIN) of &#34;YES,&#34; and a plurality of additional information. 
     As noted above, user information 29 is uploaded to the server during each CGI execution request 24 and returned back to the client with the results of each CGI program 26. Thus, because the server receives and immediately returns the user information, there is generally no need to worry about long-term storage and management of user information 29 on the server. On the client side however, the web browser 14 may include a means for storing and managing the user information 29 until the next CGI request occurs by the browser 14. 
     It should be recognized that while this preferred embodiment handles the transportation of user information 29 with hidden HTML variables, any alternate means is likewise within the purview of this invention. For example, the transportation of user information could be accomplished with &#34;Cookies&#34; 11. Cookies are nuggets of data that are sent to the browser 14 from a web server 16. A cookie 11 can contain any type of data. Cookies 11 are then returned to the server 16 if the particular link (or URL) is in the Cookies&#39; database. 
     While the preferred embodiment does not transfer an actual password back and forth between the client and server, this is recognized as a possible alternate embodiment for this invention and is described below. The preferred embodiment operates by first extracting a user password 27 and storing it in a security object 22. (Extraction is typically done during an initial logon procedure.) The password 27 can then be readily re-obtained later by the server 16 from the security object 22 based upon the user information 29. This implementation provides increased security since password information is never transmitted back to the browser 14. 
     As noted, an alternate embodiment would be to include an encrypted password in the user information 29 that can be passed from the client 12 to the server 16. This would eliminate the need for the security object 22 on the server 16 since each password would be delivered directly to the server 16 during each CGI execution request 24. While this system may be less secure, it would be less complicated to implement in a network that utilized a high number of servers (e.g., the world wide web). 
     The mechanism for determining the authority of the end user is thus accomplished by first using the user ID 13 to retrieve the user&#39;s password 27 from the security object 22. This retrieval process may be initiated by a system call from within the CGI program 20. With the password 27, the CGI program can cause the operating system to run the program under a non-default user profile 23. This allows the same CGI program to behave differently depending upon the end-user&#39;s authority, thereby providing system authorization. Unique to this embodiment is the inclusion of a mechanism or system call from within the CGI program 20 which causes the CGI program 20 to switch the mode or profile from a default profile 25 to a specific user profile 23. 
     The CGI programs 20 and security object 22 will typically be stored on or near the server in storage device 21. Storage device 21 may be any known device capable of storing computer readable information. Examples of storage devices include CD-ROM, magnetic diskettes, tapes, transmission mediums, etc. 
     This system and method is further enhanced by the passing back and forth of an admin-user flag 17 for determining which screens to provide to the end user. For example, if the user is a systems administrator, screens may be downloaded to the client workstation that provide menu options not available to other users. If the end user happens to be a systems administrator, relevant CGI programs 20 may then be executed under his or her specific non-default user profile 23 (thereby allowing for remote configuration etc.) Once the program functions were performed, the CGI job would then be returned to run under the default profile 25. 
     Referring now to FIG. 2, an example of a CGI program 28 (which may be an instance of the CGI programs 20 on file server 16 as shown in FIG. 1) is shown in pseudo code with associated procedures SWAP --  PROFILE 30 and SWAP --  BACK 32. Here it can be seen that each CGI program 28 first collects user information 29 that typically includes a user ID 13 and IP address 15 from the hidden variables in an HTML form 19. The program 28 then calls SWAP --  PROFILE 30 which will retrieve the user&#39;s password 27 from the security object 22 and then cause the CGI program 28 to be executed under a non-default user profile 23. Once the body of the CGI program 28 is completed, the user ID and IP address are stored in the next HTML hidden variables along with an admin-user flag 17 in an HTML form, and returned back to the user with the results from the execution. Thus, a continuous means of passing user information back and forth between the client 12 and server 16 is provided. Finally, the sub-routine SWAP --  BACK 32 is called which changes the job back to a default user mode 25. It should be recognized that these procedures can be readily generalized to be provide a generic user authentication for any file server system. 
     Referring now to FIG. 3, a flow chart is shown depicting a typical method of implementation. First, user information 29 (e.g., user ID, password, IP address) is extracted from an end user during a logon procedure at a client site 12. This information 29 is then passed to the web server 16. It is important to note that this extraction is only required a single time. Next, the password 27 is stored in a security object 22 and the remaining user information is placed in hidden variables in a form and sent back to the web client 12 for future use. From this point on, any subsequent CGI execution requests by a web client 12 include the following steps. First, the web client 12 causes the user information 29 to be returned to the web server along with any CGI execution requests 24. Upon receiving an execution request, the HTTP server 18 causes the CGI program to be launched under a default user mode 25 on the web server 25. The CGI program 20 then makes the necessary system calls to examine the user information received with the execution request 24. From this information 29, the CGI program 20 determines the authority level of the user. The CGI program 20 then makes additional system calls to cause the HTTP server 18 to run the CGI program under a non-default user mode 23 if appropriate (i.e., it is run under a current user id or profile of the user). Next, the CGI program 20 causes user information 29 to be again stored in HTML hidden variables and returned to the web client with the results of the execution 26. Finally, the CGI program makes the appropriate system calls to cause the HTTP server to return the CGI program back to default mode 25. These sequence of steps are thereafter repeated as mentioned for each subsequent CGI execution request 24. 
     While the embodiments discussed above deal primarily with a traditional web-based network, it should be recognized that this invention has applications that are much more expansive. For example, this invention may cover a home security system wherein each client (e.g., a house alarm) may be networked to a server (e.g., a security company). It may cover web-tv applications, consumer electronics, and automotive systems. For example electronic devices may be configured to automatically browse web pages for warranty information. Automobiles may dial up a network to receive navigation information. Thus, any client-server environment that requires authorization may fall within the purview of this invention. 
     Additionally, it should be recognized that while HTML is the industry standard scripting language for web systems, any known or future scripting languages may be utilized herein. Finally, the embodiments and examples set forth herein were presented in order to best explain the present invention and its practical application and to thereby enable those skilled in the art to make and use the invention. However, those skilled in the art will recognize that the foregoing description and examples have been presented for the purposes of illustration and example only. The description as set forth is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching without departing from the spirit and scope of the following claims.