This is a discussion on Re: [courier-users] FreeBSD webadmin no auth modules available within the Courier-Imap forums, part of the Mail Servers and Related category; This is a multi-part message in MIME format. --===============0748241556== Content-Type: multipart/alternative; boundary="------------010309030808000803030207" This is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============0748241556== Content-Type: multipart/alternative; boundary="------------010309030808000803030207" This is a multi-part message in MIME format. --------------010309030808000803030207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010309030808000803030207 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <br> O/H Milan Obuch έγραψε: <blockquote cite="mid:200801071754.48816.courier-users@dino.sk" type="cite"> <pre wrap="">On Monday 07 January 2008, Thodoris wrote: [snip] </pre> <blockquote type="cite"> <pre wrap="">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 </pre> </blockquote> <pre wrap=""><!----> That's OK. You should have everything necessary in there... </pre> <blockquote type="cite"> <pre wrap="">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. </pre> </blockquote> <pre wrap=""><!----> 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 </pre> </blockquote> I have changed this to:<br> -r-sr-sr-x 1 root wheel 3704 May 24 2007 webadmin<br> <br> but I think that this is not a problem because turning it back to normal did not change the situation.<br> <blockquote cite="mid:200801071754.48816.courier-users@dino.sk" type="cite"> <pre wrap=""></pre> <blockquote type="cite"> <pre wrap="">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. </pre> </blockquote> <pre wrap=""><!----> 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" </pre> </blockquote> I have commented out the authmodulelistorig by mistake and authmodulelist included everything supported now my configuration is:<br> <br> authmodulelist="authmysql"<br> authmodulelistorig="authuserdb authpam authmysql authcustom authpipe"<br> <br> but I still cannot see the modules in the web interface.<br> <blockquote cite="mid:200801071754.48816.courier-users@dino.sk" type="cite"> <pre wrap="">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? </pre> </blockquote> I had:<br> -rw-r----- 1 root wheel 3690 Jan 8 08:14 authdaemonrc<br> <br> but I tried to change it back to 0700 with no luck still doesn't work. <br> <blockquote cite="mid:200801071754.48816.courier-users@dino.sk" type="cite"> <pre wrap="">Regards, Milan </pre> </blockquote> 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.<br> <br> Regards,<br> <pre class="moz-signature" cols="72">Thodoris</pre> </body> </html> --------------010309030808000803030207-- --===============0748241556== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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;164216...et/marketplace --===============0748241556== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users --===============0748241556==-- |