O/H Milan Obuch ??????:
On Monday 07 January 2008, Thodoris wrote:

[snip]

My installed packages are:

courier-0.54.0      Courier SMTP IMAP POP3 HTTP mail server suite
courier-authlib-base-0.59.3 Courier authentication library base
courier-authlib-mysql-0.59.3 MySQL support for the Courier
authentication library


That's OK. You should have everything necessary in there...

and by copying the webadmin binary in to the cgi-bin directory of my web
server I was supposed to see a fully functional web interface (I've seen
that in linux before) but when using the link "Password Authentication
Modules" no modules appear and I am already using the authmysql module
to authenticate users for some time now.


Just for being sure verify permissions on webadmin binary in cgi-bin directory, mine is

-r-s--x--x  1 root  wheel  3704 Mar  9  2006 webadmin

I have changed this to:
-r-sr-sr-x  1 root  wheel  3704 May 24  2007 webadmin

but I think that this is not a problem because turning it back to normal did not change the situation.
While looking into the code I found that in the script
admin-10password.pl in line 10 the function
ReadEnvVarConfigFile("authdaemonrc") is called and if I got that right
(I think ReadEnvVarConfigFile is defined in webadmin.pl line 283) this
fumction searches the file authdaemonrc in the directory
"/usr/local/etc/courier/webadmin/added/" that doesn't seem to exist for
me. Instead "authdaemonrc" is located in the courier-authlib conf
directory "/usr/local/etc/authlib" in my system.

That's correct. But you need to read a bit more of the code. Directory first mentioned is just for not yet commited changes. Actual data for running system are in "/usr/local/etc/authlib". In authdaemonrc file, there are two lines:

authmodulelist="authuserdb"
authmodulelistorig="authuserdb authvchkpw authpam authldap authmysql authpgsql"

I have commented out the authmodulelistorig by mistake and authmodulelist included everything supported now my configuration is:

authmodulelist="authmysql"
authmodulelistorig="authuserdb authpam authmysql authcustom authpipe"

but I still cannot see the modules in the web interface.
First one is for active modules, most probably should contain just authmysql in your case probably, the second one is list of available modules, should be left alone as is.

So in my case only authuserdb is listed as active, and there are six of them in 'Add authentication module:" select box. In my case, authdaemonrc file has following permissions:

-rw-------  1 courier  courier  4298 Jan  7 17:44 authdaemonrc

Is there something different in your case? Did you tweak something there?

I had:
-rw-r-----  1 root  wheel  3690 Jan  8 08:14 authdaemonrc

but I tried to change it back to 0700 with no luck still  doesn't  work.
Regards,
Milan

I have to say though that I am using the web server without ssl (I don't think this makes any difference) because I have firewalled access to a single machine. In every change that I have tried I am restarting the services both authlib and courier itself just in case.

Regards,

Thodoris

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to