[sork] passwd module

Cliff Green green@UMDNJ.EDU
Thu Oct 24 19:57:09 2002


Quoting Tim Gorter <email@teletechnics.com>:

> Basically have a look at the files in the passwd/lib/Driver directory,
> and see how those drivers there are made. You will need to place some
> settings in the conf.php file (per se adjust the conf.xml) and that
> more or less is it. That is if you do not need any changes in the UI
> or similar.
> 
> have fun,
> tim.

Okay, I'll bite...  I'm currently trying to make an ssh driver;  I've started by
using the smbpasswd driver as a model, but there's no matching entry in
backends.php (cvs HEAD) to use as a model, and I'm just too lazy (!) right now
to pass up the opportunity to ask some questions about this and ask for advice
or opinions.  The following is what I'm starting with:

$backends['ssh'] = array(
    'name' => 'SSH server',
    'preferred' => '',
    'password policy' => array(
        'minLength' => 6,
        'maxLength' => 8,
        'minNumeric' => 1
    ),
    'driver' => 'ssh',
    'params' => array(
        'path' => '/usr/local/bin/ssh',
        'command' => 'passwd'
    )
);

I'm still not sure if the 'preferred' notion has relevance here, and if so, how
to set it up.  I'm also assuming that whatever server used for authenticating
will be used for password change attempts - I think that should be valid, but
I'm not sure if I need to do anything about it.

FWIW, we've successfully built a perl cgi and expect app to do this, but would
prefer to have it as a horde module.

c
-- 
Cliff Green
Academic Computing Services - UMDNJ
Signature under NDA