Re: [MRBS-general] NIS Authentication
Brought to you by:
jberanek
From: John B. <jo...@re...> - 2006-06-26 12:03:05
|
John Beranek wrote: > Nils Wiese wrote: >> Hi all, >> >> we have a central NIS server at our network and I want to use NIS >> authentication for MRBS also. Is there a short instruction somewhere, >> how to implement this? I just found some useless information at the >> manuel (..."Details?") > Maybe someone could contribute an alternative NIS/PAM/... authentication > plugin for Unix users. Failing that, I could have a look at the > possible solutions... If you're OK running a Perl script for authentication (with the 'auth_ext' authentication method for MRBS) and with installing a few Perl modules (perl -MCPAN -e "install Authen::Simple::NIS") you could use this simple Perl script: --------------------------------------------------------------------- #!/usr/bin/perl use Authen::Simple::NIS; my $username = shift; my $password = shift; my $nis = Authen::Simple::NIS->new; if ($nis->authenticate($username, $password)) { # success return 0; } else { return 1; } ---------------------------------------------------------------------- and the following in config.inc.php: $auth["type"] = "ext"; $auth["prog"] = "../nisauth.pl"; # Or wherever you put the script $auth["params"] = "#USERNAME# #PASSWORD#"; John. -- John Beranek To generalise is to be an idiot. http://redux.org.uk/ -- William Blake |