BSD Ports

mail/qmail-activedir 0.17_3 FreeBSD

Programs to allow qmail to authenticate users through a MS ad

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
mail
Package size
20.1 KiB, 67.7 KiB installed

Description

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

In the other systems

SystemPortVersion
FreeBSDmail/qmail-activedir0.17_3
DragonFlymail/qmail-activedir0.17_3
HardenedBSDmail/qmail-activedir0.17_3
GhostBSDmail/qmail-activedir0.17_3

Install

Binary package:

pkg install qmail-activedir

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	qmail-activedir>0:mail/qmail-activedir

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.17_30.17_30.17_30.17_30.17_3
FreeBSD:14:quarterly0.17_30.17_3n/a0.17_30.17_3
FreeBSD:15:latest0.17_30.17_3n/a0.17_30.17_3
FreeBSD:15:quarterly0.17_30.17_3n/an/an/a
FreeBSD:16:latest0.17_30.17_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Run dependencies 3

No port depends on this one.

Configuration

Options name: mail_qmail-activedir

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
ldap qmail:run
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

Files

pkg-plist 8
  • share/doc/qmail-activedir/INSTALL
  • share/doc/qmail-activedir/README
  • @mode 700
  • bin/checkadpassword
  • bin/create_alias_files
  • @mode 711
  • @group qmail
  • bin/qmail-adgetpw
distinfo 1
FileSizeSHA256
qmail-activedir-0.17.tar.gz13867aa7427bd2480f547be1ce5f94754212bfa5fb91bc4e2f64b09168124caeb523b
Master sites 1
  • http://fo2k.com/qmail-activedir/

Commit history 0

No commits in the history this site was built from.