testsaslauthd -u '[email protected]' -p secret : 0: NO "authentication failed"

"romain7426 via SASL" <[email protected]> Tue, 8 Feb 2022 13:21:52 -0500
Newsgroups gmane.comp.security.cyrus.sasl
Message-ID <[email protected]>
--16443445121.AdceE2633.48455
Date: Tue, 8 Feb 2022 13:21:52 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hey there,=20

I have an authentication issue for '[email protected]':=20

<<
$ =C2=A0sasldblistusers2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0
[email protected]: userPassword
[email protected]: userPassword
[email protected]: cmusaslsecretOTP
[email protected]: cmusaslsecretOTP

$ testsaslauthd -u 'jane'=C2=A0 -p secret=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0
0: OK "Success."

$ echo 'secret' | doas saslpasswd2 -p -c '[email protected]'

$ sasldblistusers2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
[email protected]: userPassword
[email protected]: userPassword
[email protected]: cmusaslsecretOTP
[email protected]: cmusaslsecretOTP
[email protected]: cmusaslsecretOTP
[email protected]: userPassword

$ testsaslauthd -u '[email protected]'=C2=A0 -p secret
0: NO "authentication failed"

$ tail -1 /var/log/authlog=C2=A0
Feb=C2=A0 8 18:16:14 homebox saslauthd[68225]:=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : aut=
h failure: [[email protected]] [service=3Dimap] [realm=3D] [mech=3Dsas=
ldb] [reason=3DUnknown]
=C2=A0
How is '[email protected]' supposed to be authenticated?=20
=C2=A0
Thanks a lot for your help!




------------------------------------------
Cyrus: SASL
Permalink: https://cyrus.topicbox.com/groups/sasl/T62f7d8a94a7c45a4-Mf30401=
4841154eb6e6fd75d0
Delivery options: https://cyrus.topicbox.com/groups/sasl/subscription

--16443445121.AdceE2633.48455
Date: Tue, 8 Feb 2022 13:21:52 -0500
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html><html><html><body><div>Hey there, <br /></div><div><br /></div><div>I=
 have an authentication issue for &#39;<a href=3D"mailto:[email protected]">j=
[email protected]</a>&#39;: </div><div><br /></div><div>&lt;&lt;<br /></div><d=
iv>$ &nbsp;sasldblistusers2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;<br /></div><div><a href=3D"mailto:[email protected]">jdoe@homeb=
ox.my.domain</a>: userPassword<br /></div><div><a href=3D"mailto:jane@homeb=
ox.my.domain">[email protected]</a>: userPassword<br /></div><div><a h=
ref=3D"mailto:[email protected]">[email protected]</a>: cmusaslse=
cretOTP<br /></div><div><a href=3D"mailto:[email protected]">jane@home=
box.my.domain</a>: cmusaslsecretOTP<br /></div><div><br /></div><div>$ test=
saslauthd -u &#39;jane&#39;&nbsp; -p secret&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></div><div>0: OK &quot;Success.&quot;<br =
/></div><div><br /></div><div>$ echo &#39;secret&#39; | doas saslpasswd2 -p=
 -c &#39;<a href=3D"mailto:[email protected]">[email protected]</a>&#39;<br /><=
/div><div><br /></div><div>$ sasldblistusers2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></d=
iv><div><a href=3D"mailto:[email protected]">[email protected]</a=
>: userPassword<br /></div><div><a href=3D"mailto:[email protected]">j=
[email protected]</a>: userPassword<br /></div><div><a href=3D"mailto:j=
[email protected]">[email protected]</a>: cmusaslsecretOTP<br /></div><div><a hr=
ef=3D"mailto:[email protected]">[email protected]</a>: cmusaslsec=
retOTP<br /></div><div><a href=3D"mailto:[email protected]">jane@homeb=
ox.my.domain</a>: cmusaslsecretOTP<br /></div><div><a href=3D"mailto:joe@ex=
ample.net">[email protected]</a>: userPassword<br /></div><div><br /></div><d=
iv>$ testsaslauthd -u &#39;<a href=3D"mailto:[email protected]">[email protected]=
et</a>&#39;&nbsp; -p secret<br /></div><div>0: NO &quot;authentication fail=
ed&quot;<br /></div><div><br /></div><div>$ tail -1 /var/log/authlog&nbsp;<=
br /></div><div>Feb&nbsp; 8 18:16:14 homebox saslauthd[68225]:&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; : auth failure: [user=3D<a href=3D"mailto:[email protected]">joe@exa=
mple.net</a>] [service=3Dimap] [realm=3D] [mech=3Dsasldb] [reason=3DUnknown=
]<br /></div><div>&gt;&gt;<br /></div><div>&nbsp;<br /></div><div>How is &#=
39;<a href=3D"mailto:[email protected]">[email protected]</a>&#39; supposed to =
be authenticated? <br /></div><div>&nbsp;<br /></div><div>Thanks a lot for =
your help!<br /></div><div><br /></div><div><br /></div><div><br /></div><d=
iv><br /></div><div id=3D"topicbox-footer" style=3D"margin:10px 0 0;border-=
top:1px solid #ddd;border-color:rgba(0,0,0,.15);padding:7px 0;">

<strong><a href=3D"https://cyrus.topicbox.com/latest" style=3D"color:inheri=
t;text-decoration:none">Cyrus</a></strong>
  / SASL / see
<a href=3D"https://cyrus.topicbox.com/groups/sasl">discussions</a>
  +
<a href=3D"https://cyrus.topicbox.com/groups/sasl/members">participants</a>
  +
<a href=3D"https://cyrus.topicbox.com/groups/sasl/subscription">delivery&nb=
sp;options</a>
<a href=3D"https://cyrus.topicbox.com/groups/sasl/T62f7d8a94a7c45a4-Mf30401=
4841154eb6e6fd75d0" style=3D"float:right">Permalink</a>
</div>
</body></html></html></html>=

--16443445121.AdceE2633.48455--