GithubHelp home page GithubHelp logo

nginx-http-radius-module's Introduction

#nginx-http-radius authentication module http authentication by radius protocol.

@author qudreams

#Note: The nginx-http-radius module depend on libmyradclient,so you must compile the library firstly; libmyradclient.a must be in same directory with nginx-http-radius module,because the nginx-http-radius module set the environment variables CORE_INCS and CORE_LIBS in 'config' file depending this. The module also just support the following authentication methods: PAP,CHAP,MSCHAP,MSCHAPV2,EAPMD5 #Usage: 1.compile the libmyradclient firstly. 2.compile the module into nginx like this: ./configure --add-module=src/nginx-http-radius-module make

    after compiling,install it by the following directive:
        make install

    Nginx will be installed into the directory /usr/local/nginx acquiescently.
3. install nginx,and then modify the configuration file nginx.conf.
    the configuration file may be like the following:
    
    http {
        #set the directory of radius dictionary.
        radius_dict_directory "/usr/local/nginx/raddb/";

        #radius server configuration including

        radius_server "radius_server1" {
            #authentication timed-out
            auth_timeout 5;

            #limit to resend the request
            resend_limit 3;

            #radius authentication server url.
            url "127.0.0.1:1812";

            #share secret
            share_secret "secret";
        }

        server {
            listen       80;
            server_name  localhost;

            #charset koi8-r;

            #access_log  logs/host.access.log  main;

            location = /{
                root   html;
                index  index.html index.htm;

                #radius server configuration
                
                #the third paramter is authentication method,you can set the following value:
                # PAP CHAP MSCHAP MSCHAPV2 EAPMD5
                
                auth_radius_server "radius_server1" "PAP";
                
                #authentication realm,you can set the following value:
                # Restricted "Close Content" off
                
                auth_radius "Restricted";
            } 
        }
    }

nginx-http-radius-module's People

Contributors

qudreams avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.