Giter VIP home page Giter VIP logo

wasd_ldap_authagent's Introduction

  ******************************************
  *** LDAP Authentication for WASD HTTPd ***
  ******************************************

This directory contains a modified version of AUTHAGENT_LDAP module.
Its original version can be found on WASD's webpage.

This modification allow you to authenticate users against external LDAP
server WITHOUT corresponding SYSUAF records.


Simple (but expert friendly) steps:
==================================
(1) COPY AUTHAGENT_LDAP_1.C HT_ROOT:[SRC.AGENT] (overwrite existing one)
(2) SET DEF HT_ROOT:[SRC.AGENT]
(3) @BUILD_AUTHAGENT_LDAP_1
(4) COPY HT_EXE:AUTHAGENT_LDAP.EXE CGI-BIN:[000000]
    (don't forget that WASD_EXE = HT_EXE in latest WASD versions)
(5) INSTALL REPLACE CGI-BIN:[000000]AUTHAGENT_LDAP.EXE /AUTHPRV=SYSPRV
    (modify your WASD startup procedure to do it automatically)
(6) EDT HT_ROOT:[LOCAL]HTTPD$AUTH.CONF & add something like:

["LDAP Restricted Area"=AUTHAGENT_LDAP=agent]
/web/private/* r,https:,param='\
  /HOST="ldap.example.org"\
  /BASE="dc=example,dc=org"\
  /FILTER="uid=%u"/TLS\
  /UDEF=HTTP$LDAP'

(7) HTTPD/DO=AUTH=PURGE
(8) HTTPD/DO=AUTH=LOAD
(9) EDT HT_ROOT:[LOCAL]HTTPD$MAP.CONF & add something like:

exec+ /cgiauth-bin/* /cgi-plus/*

[[*:80]]
redirect /web/private/* https://www.example.org/web/private/*

(10) HTTPD/DO=MAP=LOAD

(11) create a new SYSUAF user HTTP$LDAP. You can simply copy HTTP$NOBODY
     and modify some params:

       $ AUTH COP HTTP$NOBODY HTTP$LDAP/REMOTE/LOCAL -
       _$     /OWNER="WASD LDAP Auth"/UIC=[75,1]/ADD

     (AUTH*ORIZE is expected to be a foreign command: "$SYS$SYSTEM:AUTHORIZE")


Troubleshooting:
================
(1) test your credentials against your LDAP server:
    (a) using ldapsearch (anonymous lookup followed by dn/passwd login):

        $ ldapsearch -h ldap.example.org -x \
            -b "dc=example,dc=org" "(uid=MYLOGIN)"
        $ ldapsearch -h ldap.example.org -x -W \
            -D "personalId=12345,ou=people,dc=example,dc=org" \
            -b "dc=example,dc=org" "(uid=MYLOGIN)"

    (b) using interactive AUTHAGENT_LDAP:

        $ LDAP :== $CGI-BIN:[000000]AUTHAGENT_LDAP.EXE -
        _$ /HOST=ldap.example.org/WATCH/DBUG/DUMP -
        _$ /BASE=dc="example,dc=org"
        $ LDAP/FILTER="uid=%u" -
        _$ /AUTH_PASSWORD="MYPASSWD"/REMOTE_USER="MYLOGIN"

    (c) using attached ldapauth.pl PERL script

(2) use WATCH in combination with /WATCH/DBUG params in HTTPD$AUTH.CONF
    or/and define AUTHAGENT_LDAP$WATCH logical to non-null value

wasd_ldap_authagent's People

Contributors

ztmr avatar

Watchers

James Cloos avatar  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.