How multiotp/multiotp works
multiOTP is a PHP two-factor authentication server and library. A typical request enters through the CLI or an integration, reaches the central authentication class, and is checked against user/token state to produce an authentication result. The README documents HOTP/TOTP, Yubikey, SMS and emergency TAN tokens, challenge-response protocols, LDAP/AD synchronization, QR provisioning and RADIUS/web-service use. The central class and several integrations are not excerpted, so links involving their internals are documented at a high level; library dependency edges are limited to references shown in the source index or excerpts.
Main entry points: SSH2.php SSH transport · multiotp.class.php Authentication engine · RSA.php RSA operations · Base.php Cipher base
Components 28
Interfaces and integrations
- Command-line interface
multiotp.cli.header.php - Server interface
multiotp.server.php - RADIUS service
- Syslog client
contrib/MultiotpSyslog.php
Authentication domain
- Authentication engine
multiotp.class.php - User and token state
multiotp.class.php - HOTP and TOTP
multiotp.class.php - CHAP protocols
multiotp.class.php - Yubikey OTP
contrib/MultiotpYubikey.php - SMS tokens
contrib/MultiotpSms.php
Identity and provisioning
- AD and LDAP sync
contrib/MultiotpAdLdap.php - QR provisioning
contrib/MultiotpQrcode.php - XML parser
contrib/MultiotpXmlParser.php
Cryptographic libraries
- ASN.1 encoding
contrib/ASN1.php - Big integers
contrib/BigInteger.php - Cipher base
contrib/Base.php - Hash functions
contrib/Hash.php - Rijndael cipher
contrib/Rijndael.php - DES cipher
contrib/DES.php - Blowfish cipher
contrib/Blowfish.php - Triple DES cipher
contrib/TripleDES.php - Twofish cipher
contrib/Twofish.php - Random source
contrib/Random.php - RSA operations
contrib/RSA.php - X.509 certificates
contrib/X509.php - SSH transport
contrib/SSH2.php - SFTP client
contrib/SFTP.php
Other components
- Operator or client
Connections 32
- Operator or client → Command-line interface: runs command
- Command-line interface → Authentication engine: constructs engine
multiotp.cli.header.php - Operator or client → Server interface: sends request
- RADIUS service → Authentication engine: requests authentication
- Authentication engine → User and token state: reads and writes
- Authentication engine → HOTP and TOTP: checks token
- Authentication engine → CHAP protocols: checks challenge
- Authentication engine → Yubikey OTP: checks OTP
- Authentication engine → SMS tokens: uses token provider
- Authentication engine → Syslog client: logs events
- Operator or client → AD and LDAP sync: requests sync
- Authentication engine → QR provisioning: provisions token
- ASN.1 encoding → Big integers: uses arithmetic
contrib/ASN1.php - Cipher base → Hash functions: derives keys
contrib/Base.php - Rijndael cipher → Cipher base: extends cipher base
contrib/Rijndael.php - DES cipher → Cipher base: extends cipher base
contrib/DES.php - RSA operations → Big integers: uses arithmetic
contrib/RSA.php - RSA operations → Hash functions: uses hashes
contrib/RSA.php - RSA operations → Random source: uses random source
contrib/RSA.php - RSA operations → Triple DES cipher: uses cipher
contrib/RSA.php - X.509 certificates → ASN.1 encoding: parses certificates
contrib/X509.php - X.509 certificates → Big integers: uses arithmetic
contrib/X509.php - X.509 certificates → RSA operations: verifies signatures
contrib/X509.php - SSH transport → Big integers: uses arithmetic
contrib/SSH2.php - SSH transport → Random source: uses random source
contrib/SSH2.php - SSH transport → Hash functions: uses hashes
contrib/SSH2.php - SSH transport → Cipher base: uses cipher base
contrib/SSH2.php - SSH transport → Rijndael cipher: uses cipher
contrib/SSH2.php - SSH transport → Twofish cipher: uses cipher
contrib/SSH2.php - SSH transport → Blowfish cipher: uses cipher
contrib/SSH2.php - SSH transport → Triple DES cipher: uses cipher
contrib/SSH2.php - SFTP client → SSH transport: uses transport
contrib/SFTP.php