[pubcookie-dev] WEBISO CVS update: willey; webiso/pubcookie/src flavor_basic.c,1.34,1.35

Stephen Willey willey at cac.washington.edu
Tue May 6 15:54:02 PDT 2003


Update of /usr/local/cvsroot/webiso/pubcookie/src
 In directory webiso-cvs.cac.washington.edu:/var/tmp/cvs-serv17028
 
 Modified Files:
 	flavor_basic.c 
 Log Message:
 pinit support in flavor basic



Index: webiso/pubcookie/src/flavor_basic.c
diff -c webiso/pubcookie/src/flavor_basic.c:1.34 webiso/pubcookie/src/flavor_basic.c:1.35
*** webiso/pubcookie/src/flavor_basic.c:1.34	Mon Apr 14 06:30:51 2003
--- webiso/pubcookie/src/flavor_basic.c	Tue May  6 15:54:00 2003
***************
*** 23,29 ****
   */
  
  /*
!     $Id: flavor_basic.c,v 1.34 2003/04/14 13:30:51 jteaton Exp $
   */
  
  #ifdef HAVE_CONFIG_H
--- 23,29 ----
   */
  
  /*
!     $Id: flavor_basic.c,v 1.35 2003/05/06 22:54:00 willey Exp $
   */
  
  #ifdef HAVE_CONFIG_H
***************
*** 85,90 ****
--- 85,91 ----
  #define FLB_REAUTH            2
  #define FLB_LCOOKIE_ERROR     3
  #define FLB_CACHE_CREDS_WRONG 4
+ #define FLB_PINIT             5
  
  /* The beginning size for the hidden fields */
  #define INIT_HIDDEN_SIZE 2048
***************
*** 241,246 ****
--- 242,251 ----
              reasonpage = libpbc_config_getstring(p,  "tmpl_login_cache_creds_wrong",
                                                    "login_cache_creds_wrong" );
              break;
+         case FLB_PINIT:
+             reasonpage = libpbc_config_getstring(p,  "tmpl_login_pinit",
+                                                   "login_pinit" );
+             break;
          case FLB_LCOOKIE_ERROR:
          default:
              reasonpage = libpbc_config_getstring(p,  "tmpl_login_nolcookie",
***************
*** 526,531 ****
--- 531,545 ----
          pbc_log_activity(p, PBC_LOG_AUDIT, "flavor_basic: %s: %s", l->user, *errstr);
  
          print_login_page(p, l, c, FLB_REAUTH);
+         pbc_log_activity(p, PBC_LOG_DEBUG_VERBOSE,
+                          "process_basic: login in progress, goodbye\n" );
+         return LOGIN_INPROGRESS;
+ 
+         /* If the pinit flag is set, show is pinit login page */
+     } else if (l->pinit == PBC_TRUE) {
+         pbc_log_activity(p, PBC_LOG_ERROR, "flavor_basic: pinit");
+ 
+         print_login_page(p, l, c, FLB_PINIT);
          pbc_log_activity(p, PBC_LOG_DEBUG_VERBOSE,
                           "process_basic: login in progress, goodbye\n" );
          return LOGIN_INPROGRESS;



end of message


More information about the pubcookie-dev mailing list