Re: sasl problem (sigh)

2004-07-21 Thread Ian Hunter
>> Oh, go ahead and flame away if this is not an appropriate forum for
>> saslauthd config problems, but after you've torched me, refer me to the
>> right place :)
>
>You are close, I guess cyrus-sasl would be correct, not info-cyrus :)

I'll hop over there and ask again, thanks...

>> I am running Redhat 9 with cyrus-sasl-2.1.18-5 that I installed from an
>> RPM.
>
>Which rpm from where? The one I provide from here
>http://www.invoca.ch/pub/packages/cyrus-sasl/ ?

I forget where I downloaded it, most likely rpmfind or freshrpms or some
such.

>> Jul 20 14:57:29 charlie logger: connect(15, {sa_family=AF_UNIX,
>> path="/var/run/saslauthd/mux"}, 110) = 0
>> Jul 20 14:57:29 charlie logger: write(15, "ihunter\0noyb\0", 17)= 17
>> Jul 20 14:57:29 charlie logger: read(15, "\0\3NO ", 1023)   =
>> 5
>
>Isn't the above postfix code? Are you sure you have a correct postfix
>installed?

That is indeed the call from postfix to saslauthd, but it is submittingthe
correct information and saslauthd responds negatively where it should
respond positively.  Myu troubleshooting up to this point has been working
at verifying connectivity between postfix's smtpd process (and it's
children) and the saslauthd socket.  That is, as shown by the above, not the
problem.

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sasl problem (sigh)

2004-07-20 Thread Ian Hunter
I was utterly convinced this was a postfix issue, but now I'm utterly
convinced this is a saslauthd issue.

Oh, go ahead and flame away if this is not an appropriate forum for
saslauthd config problems, but after you've torched me, refer me to the
right place :)

I am running Redhat 9 with cyrus-sasl-2.1.18-5 that I installed from an RPM.
I can make testsaslauthd work every time, hence my prior belief that this
was a postfix issue.  My problem is that when the postfix smtpd daemon makes
to call to the sasl library and and it connects to the saslauthd socket at
/var/run/saslauthd/mux, and submits correct authentication parameters, it
gets a "NO" when testsaslauthd from the command line gets an "OK."

As I said, testsaslauthd from the command line is working peachy, and the
way I know so much about the connections on behalf of the postfix smtpd
daemon is I ran an strace, and got this stuff:

First, happy stuff:

[EMAIL PROTECTED] root]# testsaslauthd -u ihunter -p noyb -f
/var/run/saslauthd/mux
0: OK "Success."

Now, unhappy stuff:

Jul 20 14:57:29 charlie logger: connect(15, {sa_family=AF_UNIX,
path="/var/run/saslauthd/mux"}, 110) = 0
Jul 20 14:57:29 charlie logger: write(15, "ihunter\0noyb\0", 17)= 17
Jul 20 14:57:29 charlie logger: read(15, "\0\3NO ", 1023)   = 5

(if you're checking the lengths of strings, I changed my password to "none
of your business" above)

Help?

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html