⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auth.scm

📁 gnu 的radius服务器很好用的
💻 SCM
字号:
;;;; This file is part of GNU Radius testsuite.;;;; Copyright (C) 2001,2003 Free Software Foundation, Inc.;;;;;;;; Written by Sergey Poznyakoff;;;;;;;; This file is free software; as a special exception the author gives;;;; unlimited permission to copy and/or distribute it, with or without;;;; modifications, as long as this notice is preserved.;;;;;;;; GNU Radius is distributed in the hope that it will be useful, but;;;; WITHOUT ANY WARRANTY, to the extent permitted by law; without even the;;;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.(define staff-data  (list   (list "scheme"         (cons          (list (cons "NAS-IP-Address" "127.0.0.1"))          (list (cons "Framed-MTU" "8096")))         (cons          '()          (list (cons "Framed-MTU" "256"))))))  (define (auth req check reply)  (let* ((username (assoc "User-Name" req))         (reqlist (assoc username req))         (reply-list '()))    (if username        (let ((user-data (assoc (cdr username) staff-data)))          (rad-log L_INFO (format #f "~A" user-data))          (if user-data              (call-with-current-continuation               (lambda (xx)                 (for-each                  (lambda (pair)                    (cond                     ((avl-match? req (car pair))                      (set! reply-list (avl-merge reply-list (cdr pair)))                      (xx #t))))                  (cdr user-data))                 #f)))))    (cons     #t     reply-list)))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -