Skip to content

Latest commit

 

History

History

LdapOtpExample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LDAP Radius with OTP Password Example (Google Authenticator)

Build and Start

1.Run keycloak, openldap and phpldapadmin inside docker-compose
``` cd Examples/LdapOtpExample

      docker-compose -f docker-compose.yaml up
```  
  1. add user account to openldap
    2.1 login http://localhost:8080/ with login: cn=admin,dc=example,dc=org and password=admin ldap1
    2.2 add "Courier Mail: Account" ldap2 ldap2
  2. open http://localhost:8090/auth/
  3. login admin/admin
  4. sync LDAP Users ldap4 ldap5
  5. Configure OTP
    6.1 imporsonate user and logout ldap6 ldap7
    6.2 Click "Sign In"ldap8
  6. install example
cd Examples/LdapOtpExample
npm i
node server.js
  1. open http://localhost:3001/
  2. type login [email protected] password: test<OTP_CODE> ldap9
  3. click the "connect To Radius Server"

"SUCCESS"