--- dynalogin-0.9.14.orig/libdynalogin/dynalogin.c +++ dynalogin-0.9.14/libdynalogin/dynalogin.c @@ -141,7 +141,7 @@ return -1; } - return strcmp(pvt->code, test_str); + return abs(strcmp(pvt->code, test_str)); } dynalogin_result_t dynalogin_authenticate --- dynalogin-0.9.14.orig/libdynalogin/hotpdigest.c +++ dynalogin-0.9.14/libdynalogin/hotpdigest.c @@ -11,6 +11,7 @@ #include "hotpdigest.h" #include /* For snprintf, getline. */ +#include #include /* For strverscmp. */ #include "gc.h" @@ -104,7 +105,7 @@ } make_hex_string(_response_raw, _response, GC_MD5_DIGEST_SIZE); - return strcmp (pvt->response, _response); + return abs(strcmp (pvt->response, _response)); } --- dynalogin-0.9.14.orig/debian/watch +++ dynalogin-0.9.14/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/dynalogin/dynalogin-(.+)\.tar\.gz --- dynalogin-0.9.14.orig/debian/libdynalogin-1-0.docs +++ dynalogin-0.9.14/debian/libdynalogin-1-0.docs @@ -0,0 +1,2 @@ +doc/gnulib-notes.txt +doc/odbc/* --- dynalogin-0.9.14.orig/debian/dynalogin-server.README.Debian +++ dynalogin-0.9.14/debian/dynalogin-server.README.Debian @@ -0,0 +1,26 @@ +dynalogin on Debian +------------------- + + This is the initial packaging of dynalogin for Debian. + + The administrator must create the database manually (if database is + used) and configure the UNIX ODBC properties files in /etc + + => see /usr/share/doc/libdynalogin0/odbc for schema and sample ODBC ini file + + For example, + + apt-get install unixodbc-dev libmyodbc mysql-server + + and then follow all the steps in + + /usr/share/doc/libdynalogin-1-0/odbc/README.mysql + + Config location, by default, is /etc/dynalogind.conf + + Debian is the primary development and test platform for dynalogin + + Please see the web page and wiki for more detailed documentation: + + http://www.dynalogin.org + --- dynalogin-0.9.14.orig/debian/simpleid-store-dynalogin.install +++ dynalogin-0.9.14/debian/simpleid-store-dynalogin.install @@ -0,0 +1,4 @@ +simpleid/example-dynalogin.identity.dist usr/share/simpleid/sample +simpleid/dynalogin-filesystem.store.inc usr/share/simpleid/www +simpleid/dynalogin-filesystem.store.config.php etc/simpleid +simpleid/README.txt usr/share/doc/simpleid-store-dynalogin --- dynalogin-0.9.14.orig/debian/changelog +++ dynalogin-0.9.14/debian/changelog @@ -0,0 +1,14 @@ +dynalogin (0.9.14-2) unstable; urgency=low + + * Correct behavior of oath_callback (Closes: #699856) + * Tweak title and description text + * Update control file for migration from collab-maint to pkg-auth + * Remove deprecated DM-Upload-Allowed + + -- Daniel Pocock Tue, 05 Feb 2013 23:25:37 +0100 + +dynalogin (0.9.14-1) unstable; urgency=low + + * Initial packaging. (Closes: #665831). + + -- Daniel Pocock Sat, 10 Mar 2012 10:30:00 +0100 --- dynalogin-0.9.14.orig/debian/libdynalogin-1-0.install +++ dynalogin-0.9.14/debian/libdynalogin-1-0.install @@ -0,0 +1,2 @@ +usr/lib*/libdynalogin-1.so* +usr/lib*/dynalogin/*.so --- dynalogin-0.9.14.orig/debian/control +++ dynalogin-0.9.14/debian/control @@ -0,0 +1,83 @@ +Source: dynalogin +Section: admin +Priority: optional +Maintainer: Debian Authentication Maintainers +Uploaders: Daniel Pocock +Build-Depends: cdbs, debhelper (>= 8.0.0), libapr1-dev, liboath-dev, unixodbc-dev, autotools-dev, pkg-config +Homepage: http://www.dynalogin.org/ +Standards-Version: 3.9.3 +Vcs-Git: git://git.debian.org/pkg-auth/dynalogin.git +Vcs-Browser: http://git.debian.org/?p=pkg-auth/dynalogin.git;a=summary + +Package: libdynalogin-1-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: two-factor HOTP authentication - implementation libs + dynalogin is a two-factor authentication framework based on the HOTP + (Open Authentication) algorithm. Dynalogin can store credentials in + any database supported by UNIXODBC, which makes the solution + robust and scalable. It can also store credentials in flat files + if desired. dynalogin has been successfully integrated in solutions + for OpenID, making it possible to use two-factor authentication with + hundreds of other web applications and public web sites. There is a + dynalogin soft-token for Android. + . + This library is used by a dynalogin authentication server or any other + software component that wants to implement the HOTP algorithm internally. + The package also includes various storage modules (file storage + and UNIXODBC) for retaining the user credentials and algorithm data. + +Package: dynalogin-server +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: two-factor HOTP authentication - server daemon + dynalogin is a two-factor authentication framework based on the HOTP + (Open Authentication) algorithm. Dynalogin can store credentials in + any database supported by UNIXODBC, which makes the solution + robust and scalable. It can also store credentials in flat files + if desired. dynalogin has been successfully integrated in solutions + for OpenID, making it possible to use two-factor authentication with + hundreds of other web applications and public web sites. There is a + dynalogin soft-token for Android. + . + This package provides dynalogind, the server daemon for a dynalogin + two-factor authentication server. + +Package: dynalogin-client-php +Section: web +Architecture: all +Depends: ${misc:Depends} +Description: two-factor HOTP authentication - PHP client + dynalogin is a two-factor authentication framework based on the HOTP + (Open Authentication) algorithm. Dynalogin can store credentials in + any database supported by UNIXODBC, which makes the solution + robust and scalable. It can also store credentials in flat files + if desired. dynalogin has been successfully integrated in solutions + for OpenID, making it possible to use two-factor authentication with + hundreds of other web applications and public web sites. There is a + dynalogin soft-token for Android. + . + This package provides a PHP client for the dynalogin server. It allows + PHP applications to validate a user login attempt. It is intended as a + foundation for login forms, OpenID providers and similar code. + +Package: simpleid-store-dynalogin +Section: web +Architecture: all +Depends: ${misc:Depends}, simpleid, dynalogin-client-php +Description: two-factor HOTP authentication - OpenID provider + dynalogin is a two-factor authentication framework based on the HOTP + (Open Authentication) algorithm. Dynalogin can store credentials in + any database supported by UNIXODBC, which makes the solution + robust and scalable. It can also store credentials in flat files + if desired. dynalogin has been successfully integrated in solutions + for OpenID, making it possible to use two-factor authentication with + hundreds of other web applications and public web sites. There is a + dynalogin soft-token for Android. + . + This package provides a datastore extension for the OpenID provider + SimpleID, which is implemented entirely in PHP and has minimal other + dependencies. The extension allows SimpleID users (configured in flat + files) to authenticate against a dynalogin server. + --- dynalogin-0.9.14.orig/debian/simpleid-store-dynalogin.README.Debian +++ dynalogin-0.9.14/debian/simpleid-store-dynalogin.README.Debian @@ -0,0 +1,31 @@ + + +Quickstart +---------- + +This package should have installed all the files in the right places + +You just need to edit your server hostname/port in: + + /etc/simpleid/dynalogin-filesystem.store.config.php + +and create/edit your user identities. + +A sample dynalogin identity file is located in: + + /usr/share/simpleid/sample/example-dynalogin.identity.dist + +It should be copied to: + + /var/lib/simpleid/identities/.identity + +and then modified to suit your requirements. In particular, you must +set these new parameters for each user who exists in dynalogin: + + auth_method="DYNALOGIN" + dynalogin_user="whatever" + +where the `dynalogin_user' value should match the username stored +in the dynalogin database (for example, if you want to log in +as `daniel', but your dynalogin database expects `daniel@example.org') + --- dynalogin-0.9.14.orig/debian/simpleid-store-dynalogin.dirs +++ dynalogin-0.9.14/debian/simpleid-store-dynalogin.dirs @@ -0,0 +1,3 @@ +usr/share/simpleid/sample +usr/share/simpleid/www +etc/simpleid --- dynalogin-0.9.14.orig/debian/simpleid-store-dynalogin.links +++ dynalogin-0.9.14/debian/simpleid-store-dynalogin.links @@ -0,0 +1 @@ +etc/simpleid/dynalogin-filesystem.store.config.php usr/share/simpleid/www/dynalogin-filesystem.store.config.php --- dynalogin-0.9.14.orig/debian/dynalogind.conf +++ dynalogin-0.9.14/debian/dynalogind.conf @@ -0,0 +1,28 @@ +; configuration file for dynalogin +; +; lines beginning with ; are ignored +; +; set the address and port where the dynalogind server listens for +; validation requests: +dynalogind.bind_addr=0.0.0.0 +dynalogind.bind_port=9050 + +; set the backend datasource +; +; for testing, in-memory datasource with one user, +; +; name = testuser, secret = abc123 +;dynalogin.datasource=example_ds +; +; filesystem datasource +; default file is $(LOCALSTATEDIR)/dynalogin-passwd +;dynalogin.datasource=fs_ds +; +; ODBC datasource +; looks for an ODBC datasource named `dynalogin', no other configuration +; is specified in this config file +dynalogin.datasource=odbc_ds + +; Whether the dynalogind process should detach (1) or stay on the console (0) +dynalogind.detach=1 + --- dynalogin-0.9.14.orig/debian/simpleid-store-dynalogin.docs +++ dynalogin-0.9.14/debian/simpleid-store-dynalogin.docs @@ -0,0 +1 @@ +simpleid/README.txt --- dynalogin-0.9.14.orig/debian/rules +++ dynalogin-0.9.14/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +CFLAGS = `apr-1-config --cflags --cppflags --includes` -I/usr/include/liboath + +DEB_DH_STRIP_ARGS = +DEB_MAKE_CHECK_TARGET = VERBOSE=t check + +install/libdynalogin-1-0:: + mkdir -p debian/libdynalogin-1-0/usr/share/doc/libdynalogin-1-0/odbc + cp libdynalogin/datasources/odbc/*sample debian/libdynalogin-1-0/usr/share/doc/libdynalogin-1-0/odbc + cp libdynalogin/datasources/odbc/README* debian/libdynalogin-1-0/usr/share/doc/libdynalogin-1-0/odbc + cp libdynalogin/datasources/odbc/schema* debian/libdynalogin-1-0/usr/share/doc/libdynalogin-1-0/odbc + +install/dynalogin-client-php:: + mkdir -p debian/dynalogin-client-php/usr/share/dynalogin-client-php + cp php/dynalogin.php debian/dynalogin-client-php/usr/share/dynalogin-client-php + +install/dynalogin-server:: + mkdir -p debian/dynalogin-server/etc + cp debian/dynalogind.conf debian/dynalogin-server/etc + --- dynalogin-0.9.14.orig/debian/dynalogin-server.manpages +++ dynalogin-0.9.14/debian/dynalogin-server.manpages @@ -0,0 +1 @@ +dynalogind/dynalogind.1 --- dynalogin-0.9.14.orig/debian/dynalogin-server.install +++ dynalogin-0.9.14/debian/dynalogin-server.install @@ -0,0 +1 @@ +usr/sbin/dynalogind --- dynalogin-0.9.14.orig/debian/dynalogin-server.docs +++ dynalogin-0.9.14/debian/dynalogin-server.docs @@ -0,0 +1,4 @@ +doc/Protocol.txt +doc/README.txt +doc/TESTING.txt +doc/BUILD.txt --- dynalogin-0.9.14.orig/debian/compat +++ dynalogin-0.9.14/debian/compat @@ -0,0 +1 @@ +7 --- dynalogin-0.9.14.orig/debian/libdynalogin-1-0.README.Debian +++ dynalogin-0.9.14/debian/libdynalogin-1-0.README.Debian @@ -0,0 +1,9 @@ +dynalogin on Debian +------------------- + +This package contains the library implementing the server-side +functionality. + +For server documentation, please see documents installed under: + + /usr/share/doc/dynalogin-server/ --- dynalogin-0.9.14.orig/debian/docs +++ dynalogin-0.9.14/debian/docs @@ -0,0 +1 @@ +doc/* --- dynalogin-0.9.14.orig/debian/dynalogin-server.init +++ dynalogin-0.9.14/debian/dynalogin-server.init @@ -0,0 +1,47 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: dynalogin-server +# Required-Start: $network $named $remote_fs $syslog +# Required-Stop: $network $named $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Enable dynalogin +# Description: Enable the TCP socket for handling dynalogin auth. +### END INIT INFO +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/dynalogind +NAME=dynalogind +DESC="dynalogin server daemon" + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet -m --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --oknodo --name $NAME \ + 2>&1 > /dev/null + echo "$NAME." + ;; + reload) + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- dynalogin-0.9.14.orig/debian/copyright +++ dynalogin-0.9.14/debian/copyright @@ -0,0 +1,25 @@ + +Copyright 2010-2012 Daniel Pocock + +Software package: dynalogin + +Version: all + +License: GNU General Public License v3 + +Copyright owner: Copyright (C) 2010-2012 Daniel Pocock + +Code from third parties: + libdynalogin/lib/* from gnulib (LGPL v2 or later) + Copyright (C) 1998-2006 Free Software Foundation, Inc. + +Debian packaging copyright: + Copyright (C) 2010-2012 Daniel Pocock + The Debian packaging is licensed under the GPL v3 + +The full text of the GPL v3 can be found in /usr/share/common-licenses/GPL-3 +on your Debian system + +The full text of the LGPL v2 can be found in /usr/share/common-licenses/LGPL-2 +on your Debian system + --- dynalogin-0.9.14.orig/debian/source/format +++ dynalogin-0.9.14/debian/source/format @@ -0,0 +1 @@ +1.0 --- dynalogin-0.9.14.orig/debian/source/options +++ dynalogin-0.9.14/debian/source/options @@ -0,0 +1,3 @@ +extend-diff-ignore = "^contrib/" +extend-diff-ignore = "Makefile.in$" +extend-diff-ignore = "cdbs-config_list$"