Next Previous Contents

3.1 From scratch

Well, the code is ansi C, it is quite simple, and as long as you have a POSIX operative system and an ansi C compiler with make, it should be as simple as

  # make
However, you must copy the resulting binary (authmkhome) in the right directory by hand. The right directory is that used by courier to store other authentication modules. You may find it using ``locate'' or trying to remember the parameters you used to configure courier. On my system, the ``right'' directory is /usr/lib/courier/authlib. Another possibility is to use ``courier-configure'' and append a ``/authlib'' to the ``libexecdir'' variable.

As you probably already know, there is no configure script since authmkhome is just a few lines, and it would take more effort to write a configure.ac file than to rewrite authmkhome in another language. The only configurable parameter is ``STD_CREATOR''. It indicates the path of the default script to execute to create home directories and it is set by default to ``/usr/sbin/authmkhome-creator''. You can change it by modifying authmkhome.h or by calling make with something like:

  # DEFS='-DSTD_CREATOR=\"/fuffa-path/fuffa-creator.sh\"' make
where ``/fuffa_path/fuffa-creator.sh'' is the full path of a creator script.


Next Previous Contents