BSD Ports

mail/qmail-activedir 0.17_3 DragonFly

Programs to allow qmail to authenticate users through a MS ad

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
mail
Package size
18.7 KiB, 66.1 KiB installed

Description

A few programs to allow qmail to authenticate users through a Microsoft Active Directory.

In the other systems

The newest version among them is 0.17, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlymail/qmail-activedir0.17_3 newestnone known-[email protected]-
FreeBSDmail/qmail-activedir0.17_3 newestnone known-[email protected]-
HardenedBSDmail/qmail-activedir0.17_3 newestno data-[email protected]-
GhostBSDmail/qmail-activedir0.17_3 newestno data-[email protected]-

Install

Binary package:

pkg install qmail-activedir

From DPorts:

cd /usr/dports/mail/qmail-activedir && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

You have installed the qmail-activedir.

Now you need follow this steps:

1) create the control files.

2.a) Test

# /var/qmail/bin/qmail-popup blah /usr/local/bin/checkadpassword id

Put in a valid username and password and it should give you the results of id.
Do the same with pwd to make sure that the user, group and directory are
correct.

Do it again with an invalid username and password to verify that it will
actually reject failures.

Check the auth log to verify that the failure occurred.

2.b) Test some more

Next test the ad_getpw:

# /usr/local/bin/ad_getpw user
It should return the user, uid, gid, homedir, separated by NULL character

2.c) Just using create_alias_files will let you know if it works...
Do /usr/local/bin/create_alias_files -h for more info.

3) Copy the original someplace and rename:
# mv /var/qmail/bin/qmail-getpw /var/qmail/bin/qmail-getpw_old
# cp /usr/local/bin/qmail-adgetpw /var/qmail/bin/qmail-getpw

4) Update your qmail pop scripts (run file) like this:
...
/var/qmail/bin/qmail-popup "${POPUPHOST-`sed 1q /var/qmail/control/me`}" \
/usr/local/checkadpassword \
/var/qmail/bin/qmail-pop3d "${MAILDIRNAME-Maildir}"
...

and restart.  Run some trial tests.

For more information you should read /usr/local/share/doc/qmail-activedir/README.

===>   NOTICE:

The qmail-activedir port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing