Hi,<br><br>I need to implement SASL in my email client. I downloaded
Cyrus-SASL and installed it. When the client sends the "UserName" and
"Password", my server needs to verify the "UserName" and "Password" and
Authenticate it. The below are some of my doubts, Please clarify.<br>
<br>1) The "sasl2-sample-client" and "sasl2-sample-server" in the "bin"
directories and the "sample-client" and "sample-server" in "sample"
response are different. Where can I get the source code for
"sasl2-sample-server"?<br>
<br>2) Once the "Username" and "Password" is passed from client to
server, the server needs to verify the "UserName" and "Password" and
authenticate the client. How to do this in server side? Does
"sasl_checkpass" do this or can you suggest some other best way to
achieve the above? CAN YOU PROVIDE SOME CODE SNIPPETS FOR THIS?<br>
<br>3) I tried testing "sample-client" and "sample-server" and I get the below response, how to solve this?<br><br><u><b>Server Terminal:<br></b></u>
<p>[root@localhost sample]# ./sample-server -p 8000 -s rcmd -m
PLAIN<br>
Forcing use of mechanism PLAIN<br>
Sending list of 1 mechanism(s)<br>
S: UExBSU4=<br>
Waiting for client mechanism...</p>
<br><u><b>Client Terminal:<br><br></b></u>
<p>[root@localhost sample]# ./sample-client -s rcmd -p 8000 -m
PLAIN -n 127.0.0.1<br>
service=rcmd<br>
Waiting for mechanism list from server...<br>
S: UExBSU4<b>= <span> </span><span> </span>Pasted
server Response</b><br>
recieved 5 byte message<br>
Forcing use of mechanism PLAIN<br>
Choosing best mechanism from: PLAIN<br>
lt-sample-client: SASL Other: No worthy mechs found<br>
error was SASL(-4): no mechanism available: No worthy mechs found<br>
lt-sample-client: Starting SASL negotiation: no mechanism available</p><p><br></p><p>Awaiting for your reply...<br></p><p>Thanks,<br></p>Mathew
<br>