Steve Charmer writes:

« HTML content follows »

Hello again,
I am using courier-imapd-ssl on Ubuntu


I want to debug a user authentication by viewing the password being sent


I have read 

    <URL:https://www.courier- mta.org/authlib/README.authdebug.html>https://www.courier- mta.org/authlib/README.authdebug.html

to edit 
    /usr/local/etc/authdaemonrc:
but, I have no file there

Each Linux distribution configures packages according to its own conventions.

The documentation on the web defaults to the default package configuration, and you'll need to check where your Linux distribution installs the package and how it gets configured.


in /var/log/mail.log
 imapd-ssl: Connection, ip=[::ffff:104.xxx.xxx.xxx]
lemp-dev authdaemond: received auth request, service=imap, authtype=login
lemp-dev authdaemond: authuserdb: trying this module
lemp-dev authdaemond: userdb: opened /etc/courier/userdb.dat



Is this showing that I am indeed using authdaemond to process the login request?

Yes, and its configuration files are stored in /etc/courier

I edited /etc/courier/authdaemonrc
set DEBUG_LOGIN=2
(as the above webpage said that would show the pwd)
save the file


authmodulelist="authuserdb authpam"
daemons=5
authdaemonvar=/var/run/courier/authdaemon/socket
DEBUG_LOGIN=2
DEFAULTOPTIONS=""
LOGGEROPTS=""



and following the instructions in that webpage
I stopped authdaemond
then attempted to start it manually 
   authdaemond >/home/user/authdaemond.log 2>&1



but that log file shows only
   Unknown option '-'


I do not see any hyphen character in the conf file

There are two executables in the courier-authlib package that are named authdaemond.

The first executable is usually installed somewhere that's not in the default PATH, typically /usr/libexec/courier-authlib/authdaemond or /usr/local/libexec/courier-authlib/authdaemond. That's the binary that the documentation you read is referring to.

The second executable is installed in your default PATH, /usr/sbin/authdaemond usually. It's a shell script that does a few things, and then runs the first executable.

You ran the second shell script instead of the binary executable.

Note, though, that if you already have authdaemond running then starting the executable again is not going to work.

Attachment: pgp0TFSzwQaI6.pgp
Description: PGP signature

_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to