*** empty log message ***
authormiquels <miquels>
Mon, 23 Aug 1999 19:24:39 +0000 (19:24 +0000)
committermiquels <miquels>
Mon, 23 Aug 1999 19:24:39 +0000 (19:24 +0000)
doc/ChangeLog
src/lib/valuepair.c
src/main/auth.c
src/main/proxy.c
todo/TODO

index eb67521..db204f6 100644 (file)
@@ -1,3 +1,10 @@
+1999-08-23  Miquel van Smoorenburg (miquels@cistron.nl)
+
+       * src/main/auth.c: Login-Time check: set Session-Timeout to
+         at least 60 seconds (some terminal servers ignore smaller values)
+       * src/lib/valuepair.c: fix gettime()
+       * src/main/proxy.c: call proxy_cleanup in both send and recv funcs
+
 1999-08-21  Miquel van Smoorenburg (miquels@cistron.nl)
 
        * configure.in: check for GNU Make
index 958fa3c..fd910ca 100644 (file)
@@ -331,9 +331,9 @@ static time_t gettime(char *valstr)
                if (isupper(*p)) *p = tolower(*p);
 
        p = buf;
-       y = mystrtok(&p, " \t");
-       m = mystrtok(&p, " \t");
        d = mystrtok(&p, " \t");
+       m = mystrtok(&p, " \t");
+       y = mystrtok(&p, " \t");
        if (!y || !m || !d) return 0;
 
        for (i = 0; i < 12; i++) {
index 9c5d1e1..04a0d5f 100644 (file)
@@ -572,7 +572,12 @@ int rad_authenticate(REQUEST *request, int activefd)
                 *      user may login at this time of the day.
                 */
                r = timestr_match(check_item->strvalue, time(NULL));
-               if (r < 0) {
+               /*
+                *      Session-Timeout needs to be at least
+                *      60 seconds, some terminal servers
+                *      ignore smaller values.
+                */
+               if (r < 60) {
                        /*
                         *      User called outside allowed time interval.
                         */
@@ -589,6 +594,7 @@ int rad_authenticate(REQUEST *request, int activefd)
                                        auth_name(request, 1),
                                        check_item->strvalue);
                } else if (r > 0) {
+
                        /*
                         *      User is allowed, but set Session-Timeout.
                         */
index 631babb..b22da51 100644 (file)
@@ -153,7 +153,12 @@ int proxy_send(REQUEST *request, int activefd)
        char                    *realmname;
 
        /*
-        *      First copy the request, then look up
+        *      First cleanup old outstanding requests.
+        */
+       proxy_cleanup();
+
+       /*
+        *      Copy the request, then look up
         *      name and (encrypted) password in the copy.
         */
        vps = paircopy(request->packet->vps);
index 353843f..e9e6958 100644 (file)
--- a/todo/TODO
+++ b/todo/TODO
@@ -10,6 +10,7 @@ o Prefix/Suffix in users file isn't stripped anymore at the
   accounting stage.
 o UPDATE accounting requests aren't handled as in 1.5.4.3 for wtmp
   Is this a problem ? Need to fix in rlm_unix.c
+o Fix potentially long locks on radutmp file by radcheck thread
 
 MEDIUM PRIORITY:
 o Provide a way to define the locations of all files (/etc/raddb/radiusd.conf?)