Get mod_auth_ibmdb2 at Fast, secure and Free Open Source software downloads
mod_auth(nz)_ibmdb2 - official web site
written by Helmut K. C. Tessarek

Receive mod_auth_ibmdb2 release/updates annoucements...
Your EMail:
Last mod_auth_ibmdb2 News

mod_authnz_ibmdb2 2.2.2 released
  Tue, 06 May 2014 07:57:02

new versions of mod_auth(nz)_ibmdb2 released
  Fri, 14 Sep 2012 16:52:01

win32 binaries released
  Fri, 14 Sep 2012 16:52:01

version 1.9 of mod_auth_ibmdb2 released
  Fri, 14 Sep 2012 16:52:01

version 1.23 of mod_authnz_ibmdb2 released
  Fri, 14 Sep 2012 16:52:01

Contacts to

[What is mod_auth(nz)_ibmdb2 / Features]    [next release]    [Download]    [SCM]    [Doc / FAQ]    [mod_auth_ibmdb2 Project]   

What is mod_auth(nz)_ibmdb2

mod_auth(nz)_ibmdb2 is an Apache authentication module using IBM® DB2® as the backend database for storing user and group information. The module supports several encryption methods.

mod_authnz_ibmdb2 is designed for Apache 2.2.x and later.
mod_auth_ibmdb2 is designed for Apache 2.0.x and 1.x.

I also provide UDFs and Stored Procedures to generate and validate hashes in DB2. They are compatible to the functions that are used in Apache's htpasswd utility.

Note to Apache 1.x and 2.0.x users:
Active development of mod_auth_ibmdb2 for Apache 1.x and 2.0.x has been stopped.


  • runs under Apache 2.2.x and later (mod_authnz_ibmdb2)
  • runs under Apache 1.x and Apache 2.0.x (mod_auth_ibmdb2)
  • user authentication:
    • bcrypt (APR-util ≥ 1.5.0)
    • md5
      • normal md5 hash (32 chars as in php)
      • seeded md5 value (as generated with Apache's htpasswd utility or as in /etc/shadow)
    • crypt
    • sha1 (not available in mod_auth_ibmdb2 for Apache 1.x)
    • sha256 (not available in mod_auth_ibmdb2)
    • plain text
    • no password (checks only if user exists)
  • if passwords are encrypted, the validation process checks the kind of encryption method
  • stored procedure support (not available in mod_auth_ibmdb2 for Apache 1.x)
  • support for user and group conditions (restricting result set of query)
  • caching support for users and groups
  • UDFs and SPs to generate and validate hashes in DB2
  • php scripts for importing users to DB2
  • man pages

Requirements: IBM® DB2®, Apache Portable Runtime

next release

Planned release date: Not planned any new release yet


Package Release Date Filename
mod_authnz_ibmdb2 2.2.2 1970-01-01 00:00 mod_authnz_ibmdb2-2.2.2.tar.gz
documentation 2.2 1970-01-01 00:00 documentation-2.2.pdf
db2-hash-routines 1.2 1970-01-01 00:00 db2-hash-routines-1.2.tar.gz
mod_auth_ibmdb2 2.0 1970-01-01 00:00 mod_auth_ibmdb2-2.0.tar.gz
mod_auth_ibmdb2 (Apache 1.x) 0.8.4 1970-01-01 00:00 mod_auth_ibmdb2-0.8.4.tar.gz
binary releases 1.0 1970-01-01 00:00 binary releases

Files can also be downloaded on

Git Access

The git repositories can be cloned from github with the following instruction set:
   git clone
   git clone
   git clone
You can also browse the repositories via the web:


Documentation is available as PDF in the download section.
The last documentation that includes information on mod_auth_ibmdb2 (for Apache 1.x and 2.0.x) is 1.12.

man pages

developerWorks article
    mod_auth_ibmdb2: A novel authentication method for Apache

The article shows up the steps how to compile and configure mod_auth_ibmdb2. It then explains the creation and use of the also provided UDFs for generating hashes in DB2.


Q: IBM's Websphere plugin and mod_auth(nz)_ibmdb2 seem to break each other. What can I do?
A: mod_auth(nz)_ibmdb2 has to be loaded after the Websphere plugin.

Q: Which versions of DB2 are supported?
A: All DB2 versions currently supported by IBM. I've tested the module with all versions since DB2 UDB v7.x, but older versions should work as well.

Q: What is the difference between mod_auth_ibmdb2 and mod_authnz_ibmdb2?
A: mod_authnz_ibmdb2 is based on the new authentication backend provider scheme of Apache 2.2. This module will only work for Apache 2.2.x and later. mod_auth_ibmdb2 works for Apache 2.0.x and 1.x.

Q: What platforms are supported?
A: All POSIX platforms. I've compiled and tested the module on Linux and AIX. Since the modules are using the APR libraries now, they can be compiled on Windows as well. Binary releases for win32 can be downloaded in the download section.

Q: Why isn't there a binary release for .....?
A: I don't have a development environment for every operating system. Furthermore I don't think that binary releases make sense for Unix style operating systems.

Q: What is the package db2-hash-routines for?
A: This package contains User Defined Functions and Stored Procedures to generate and validate hashes in DB2.

Q: What is the difference between db2-hash-routines and db2-auth-udfs?
A: db2-hash-routines is the successor of db2-auth-udfs and provides additional stored procedures and a validate routine.

Q: How do I get support?
A: Please submit support requests at the Support Request Tracker (hosted by sourceforge).

Q: How do I submit bugs?
A: Please submit bugs at the Bug Tracker (hosted by sourceforge).

Q: How do I submit a feature request?
A: Please submit feature requests at the Feature Request Tracker (hosted by sourceforge).


Project info @ sourceforge

If you want to read (and submit) a support request
Visit the mod_auth_ibmdb2 Support Tracker.
If you want to submit a feature request
Visit the mod_auth_ibmdb2 Feature Request Tracker.
If you want to submit a bug
Visit the mod_auth_ibmdb2 Bug Tracker.

mod_auth(nz)_ibmdb2 by Helmut K. C. Tessarek
August 10 2014