sevenmine / mod-authn-otp

Automatically exported from code.google.com/p/mod-authn-otp
Apache License 2.0
0 stars 0 forks source link

Unknown Authn provider: OTP failed! #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

wenn I start apache, I see this error:

"Unknown Authn provider: OTP  failed!"

mod_authn_otp is installed, vers. mod_authn_otp-1.1.1:

/usr/lib/apache2/modules/mod_authn_otp.so

My /etc/apache2/sites-available/default looks like this.

        Alias /webdav "/home/ftp"
        <Directory "/home/ftp">
        DAV on
        AuthType Basic
        AuthName "WebDAV"
        AuthBasicProvider OTP
        OTPAuthUsersFile /etc/apache2/otp/userfile
        Require valid-user
        Options +Indexes
        Allow from all
        </Directory>

System is Debian 5 Lenny, apache 2.2.9-10+lenny8  

Thanks in advance!

Stan

Original issue reported on code.google.com by stask...@gmail.com on 17 Sep 2010 at 2:54

GoogleCodeExporter commented 9 years ago
You probably forgot to configure Apache to load the mod_authn_otp module.

See http://httpd.apache.org/docs/2.2/mod/mod_so.html#loadmodule or whatever 
mechanism Debian uses to configure Apache modules.

Original comment by archie.c...@gmail.com on 17 Sep 2010 at 5:55

GoogleCodeExporter commented 9 years ago
Thanks, but I can't load this module anyway.

cat /etc/apache2/mods-available/authn_otp.load
LoadModule mod_authn_otp /usr/lib/apache2/modules/mod_authn_otp.so

then
/etc/init.d/apache2 restart

Can't locate API module structure `mod_authn_otp' in file 
/usr/lib/apache2/modules/mod_authn_otp.so: 
/usr/lib/apache2/modules/mod_authn_otp.so: undefined symbol: mod_authn_otp 
failed!

no matter what is written instead of "mod_authn_otp" in authn_otp.load
The modul is enabled.

Stan

Original comment by stask...@gmail.com on 22 Sep 2010 at 1:15

GoogleCodeExporter commented 9 years ago
Looks like there is some kind of problem with the way the module gets built 
and/or installed on Debian. I'm sorry I can't help as I don't know much about 
Debian... see if you can find someone who does and update this issue with any 
fixes to the build process. Thanks.

Original comment by archie.c...@gmail.com on 22 Sep 2010 at 1:34

GoogleCodeExporter commented 9 years ago
I have exactly the same problem.
running ubuntu 10.04 x64

Original comment by r.vlooth...@gmail.com on 24 Sep 2010 at 11:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Try to write in "/etc/apache2/mods-available/authn_otp.load"

LoadModule authn_otp_module /usr/lib/apache2/modules/mod_authn_otp.so

Path to the module must be of course yours.

Its works for me on Debian with self-compiled Apache.

Stan

Original comment by stask...@gmail.com on 24 Sep 2010 at 11:57

GoogleCodeExporter commented 9 years ago
Also: see if there is the "a2enmod" program on Debian. This program ships with 
Apache on some systems and is used to enable modules.

Original comment by archie.c...@gmail.com on 24 Sep 2010 at 2:22

GoogleCodeExporter commented 9 years ago
I've the same problem, under centos 6/64

Starting httpd: httpd: Syntax error on line 219 of /etc/httpd/conf/httpd.conf: 
Can't locate API module structure `mod_authn_otp' in file 
/etc/httpd/modules/mod_authn_otp.so: /etc/httpd/modules/mod_authn_otp.so: 
undefined symbol: mod_authn_otp

:(

could someone please help me sorting it out?

Original comment by cedi...@gmail.com on 21 Nov 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Comment 6 works here thanks Stan, problem was the spelling in the load module. 
Needs to be authn_otp_module not mod_authn_otp.

Works Apache2 Hardy

vi /etc/apache2/mods-available/mod_authn_otp.load

LoadModule authn_otp_module /usr/lib/apache2/modules/mod_authn_otp.so

:wq #to save

ln -s /etc/apache2/mods-available/mod_authn_otp.load 
/etc/apache2/mods-enabled/mod_authn_otp.load

Or you can use a2enmod as well to do the linking

Original comment by ja...@zenoxlaw.com on 28 Feb 2012 at 5:27

GoogleCodeExporter commented 9 years ago
Issue 15 has been merged into this issue.

Original comment by archie.c...@gmail.com on 28 Feb 2012 at 5:49