zoukankan      html  css  js  c++  java
  • TACACS.Net Group 配置

    Tacacs作为一个验证工具,其网站上资料较少,只有一些缺省配置,并且没有提到如果在应用中与其自带的Group功能做集成,

    这里使用免费的windows 版的TACACS.net 作介绍http://www.tacacs.net/

    安装略过不提,装好后其核心配置文件可以在开始菜单的config目录中找到,默认位置为C:ProgramDataTACACS.netconfig

    authentication.xml

    authorization.xml

    clients.xml

    tacplus.xml

    引一段介绍TACACS+的话:

    TACACS+ is an Authentication, Authorization, and Accounting (AAA) protocol originally developed for the U.S. Department of Defense for authentication to network devices such as routers, switches, and firewalls.

    可以看出,TACACSNET的配置文件完全对应了以上提到的Authentication/Authorization。

    应用中对Tacacs+ group的设置

    在应用中填加跟TACACS group有关的内容时,一般需要提供以下内容:

    Group authorization:

      Method:TACACS+ custom attribute for group name

      Service:自己在各TACACS+ 服务器中定义, 我们这里使用TacacsNet默认的shell作为默认service

      Attribute name: 这里要跟TACACS+服务器中设定的group授权属性对应上,这里用group_name

    Tacacs+服务器文件设置

    authentication.xml中加入用户与组

    authorization.xml中加入对以上组的授权,在<AutoExec>中设置user_group的返回值,对应自己的组,这个值是给应用程序用的,用来确认该user1用户所属的组

    最后,测试命令如下

    C:Program Files (x86)TACACS.net>tactest  -s 127.0.0.1 -k pass -u user1 -author

    -service shell

    该测试命令返回PassAdd中包含user_group

    Linux下其他的Tacacs+服务器配置可能不同,这里只介绍这个免费版Tacacs+服务器的配置。

    本文出自 “祝坤荣” 博客,请务必保留此出处
  • 相关阅读:
    git .gitignore不生效的解决方法
    python 爬虫中常需要睡眠防止被封IP time sleep
    Python 实现字典操作详解
    Python遍历字典到列表中出现覆盖前面数据或者字典对值(值为列表)赋值出现重复的问题
    小红书app之shield 逆向
    淘宝h5 页面 sign加密算法
    jemter-base64加密
    Python 中更优雅的日志记录方案
    logging再学习
    elasticsearch中must和should条件同时满足
  • 原文地址:https://www.cnblogs.com/zhukunrong/p/3656326.html
Copyright © 2011-2022 走看看