Add PW_CALLING_STATION_ID for CHAP auth also.
authorFrank Cusack <fcusack@fcusack.com>
Tue, 1 Oct 2002 09:27:50 +0000 (09:27 +0000)
committerFrank Cusack <fcusack@fcusack.com>
Tue, 1 Oct 2002 09:27:50 +0000 (09:27 +0000)
pppd/plugins/radius/radius.c

index 53757abcbb1701f0b9952fbe64853b08c4e4b7fe..1fd2593dfd785a70e002c96168911bdc36179e71 100644 (file)
@@ -24,7 +24,7 @@
 *
 ***********************************************************************/
 static char const RCSID[] =
 *
 ***********************************************************************/
 static char const RCSID[] =
-"$Id: radius.c,v 1.16 2002/10/01 08:36:49 fcusack Exp $";
+"$Id: radius.c,v 1.17 2002/10/01 09:27:50 fcusack Exp $";
 
 #include "pppd.h"
 #include "chap.h"
 
 #include "pppd.h"
 #include "chap.h"
@@ -428,7 +428,11 @@ radius_chap_auth(char *user,
        break;
     }
 #endif
        break;
     }
 #endif
+    }
 
 
+    if (*remote_number) {
+       rc_avpair_add(&send, PW_CALLING_STATION_ID, remote_number, 0,
+                      VENDOR_NONE);
     }
 
     /* Add user specified vp's */
     }
 
     /* Add user specified vp's */