news News
software Software
+ emacs configuration
+ latex templates
+ libdatamining
+ otp-wrapper
+ libneuralnet
+ libsocket
+ cross compilation
+ usefull C++ libs
people People
about About
cvs Documentation
 
Login
Password
Use SSL
Designed by Initd.org

Valid XHTML 1.1

 
IMAP Wrapper for use OTP with standard clients

Description

Happycoders otp-wrapper is a multi-threaded IMAP wrapper that replaces LOGIN authenticate method by an OTP one. This wrapper keep a persistent connection with the IMAP server during a few minutes after the last action (given in the configuration file). This wrapper allow you to use you favorite webmail (squirrelmail, IMP, ...) with a OTP authentication. We have also implemented a new IMAP command (OTP-LOGOUT) to force wrapper to close the persistent IMAP server connection. We have created a small patch for squirrelmail 1.4.3 to send (OTP-LOGOUT) command when you signout.
This software is released under the term of the GNU GPL licence.

Features

  • Multi users
  • You can add banned IPs list
  • You can allow only some IPs
  • You can disable some login
  • You can limit the number of thread
  • Possibility to close a persistent connection immediately with OTP-LOGOUT command or wait a timeout of X minutes after the last command

Example of configuration file :

#
# This is a sample configuration file for otp-wrapper
#

# Give the Tcp port to bind
Port = 5000

# Maximum number of clients
MaxClient = 3

# Specify a Timeout (0 = disabled)
Timeout = 30

# Give the OTP server to Bind
OTPServerHost = localhost
OTPServerPort = 143

# Give the delay of otp password validity (in minutes)
OTPValidity = 2

# Give disabled user (space separated list)
DisabledUsers = "root guest"

# Give list of banned ips
# (space separated list)
BannedIps = "10.3.3.2"

# Give list of allowed ips (only theses adresses will be allowed)
# (space separated list)
AllowedIps = "127.0.0.1"

Compatibility

otp-wrapper has been tested and found to work ok under :
  • GNU/Linux (gcc 2.95 and 3.x)
and with :
  • Cyrus IMAPD server 2.1.x
  • Cyrus IMAPD server 2.2.x
Otp-wrapper probably works under all recent unix systems with Posix Thread implementation and with other IMAP servers that handle OTP Authentication.

Installation

There is different way to install otp-wrapper on your system :
  • get the last release : otp-wrapper-0.3.tar.gz, You will also need to install libsocket 1.6
  • get the debian packages : otp-wrapper add this line to /etc/apt/sources.list for Debian/unstable:
        deb http://debian.speedblue.org ./
    
    or add this line to /etc/apt/sources.list for Debian/stable:
        deb http://debian.speedblue.org/stable ./
    
 
(c) 2002, 2003, 2004, 2005, 2006 Happycoders