added hint for CRYPT problem

This commit is contained in:
Roland Gruber 2004-05-26 17:17:44 +00:00
parent 08177ee6c4
commit 9f40467028
2 changed files with 23 additions and 3 deletions

View File

@ -59,6 +59,11 @@ things to get it to work:
Net::SSH::Perl successfully installed. Net::SSH::Perl successfully installed.
Perl quota module successfully installed. Perl quota module successfully installed.
If you have not seen any error lamdaemon.pl should be set up successfully. If you have not seen any error lamdaemon.pl should be set up successfully.
!!! Attention !!!
Your password in LDAP has to be hashed with CRYPT. If you use something like SSHA
you will probably get "Access denied.".
Now everything should work fine. Now everything should work fine.

View File

@ -16,24 +16,32 @@ things to get it to work:
and add the following line: and add the following line:
$admin All= NOPASSWD: $path $admin All= NOPASSWD: $path
$admin is the adminuser from LAM and $path $admin is the adminuser from LAM and $path
is the path to lamdaemon.pl e.g. $admin All= NOPASSWD: /srv/www/htdocs/lam/lib/lamdaemon.pl is the path to lamdaemon.pl e.g. "$admin All= NOPASSWD: /srv/www/htdocs/lam/lib/lamdaemon.pl"
At the moment the password is a paramteter of lamdaemon.pl At the moment the password is a paramteter of lamdaemon.pl
therefore you should disable logging so the password does not therefore you should disable logging so the password does not
appear in any logfile. appear in any logfile.
This can be done by adding the following line to /etc/sudoers: This can be done by adding the following line to /etc/sudoers:
Defaults:$admin !syslog Defaults:$admin !syslog
3. Set up Perl 3. Set up Perl
We need some external Perl modules, Quota and Net::SSH::Perl We need some external Perl modules, Quota and Net::SSH::Perl
To install them, run: To install them, run:
perl -MCPAN -e shell perl -MCPAN -e shell
install Quota install Quota
install Net::SSH::Perl install Net::SSH::Perl
If your Perl executable is not located in /usr/bin/perl you will have to edit
the path in the first line of lamdaemon.pl.
4. Test lamdaemon.pl 4. Test lamdaemon.pl
I've installed a test-function in lamdaemon.pl. Please run lamdaemon.pl There is a test-function in lamdaemon.pl. Please run lamdaemon.pl
with the following attributes to test it: with the following parameters to test it:
lamdaemon.pl $ssh-server $lam_path_on_host $admin-username $admin-password *test lamdaemon.pl $ssh-server $lam_path_on_host $admin-username $admin-password *test
$ssh-server is the remote host lamdaemon.pl should be run on $ssh-server is the remote host lamdaemon.pl should be run on
$lam_path_on_host is the path to lamdaemon.pl on remote host $lam_path_on_host is the path to lamdaemon.pl on remote host
$admin-username is the name of the user which is allowed to run lamdaemon.pl $admin-username is the name of the user which is allowed to run lamdaemon.pl
@ -47,9 +55,16 @@ things to get it to work:
127.0.0.1 /srv/www/htdocs/lam/lib/lamdaemon.pl root secret *test 127.0.0.1 /srv/www/htdocs/lam/lib/lamdaemon.pl root secret *test
You should get the following response: You should get the following response:
Net::SSH::Perl successfully installed. Net::SSH::Perl successfully installed.
Perl quota module successfully installed. Perl quota module successfully installed.
If you have not seen any error lamdaemon.pl should be set up successfully. If you have not seen any error lamdaemon.pl should be set up successfully.
!!! Attention !!!
Your password in LDAP has to be hashed with CRYPT. If you use something like SSHA
you will probably get "Access denied.".
Now everything should work fine. Now everything should work fine.