]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding debug line about MD5
authorJean-Marc Pigeon <jmp@safe.c>
Thu, 27 Nov 2025 15:57:39 +0000 (10:57 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Thu, 27 Nov 2025 15:57:39 +0000 (10:57 -0500)
Makefile.dbg
data-feed/feed011.tst [new file with mode: 0644]
lib/lvleml.c

index 727feb4a6aea3f86d76f97bcc995c4fcbcb386af..d2b593209cc3088416af3be26ad8bfef531a9aa4 100644 (file)
@@ -79,7 +79,6 @@ onefeed       :  debug
           @                                            \
                 bin-utils/feeder                       \
                        -f                              \
-                       -d 9                            \
                        -c ./conf/$(APPNAME).conf.dvl   \
                        $(TESTIP)                       \
                        $(TESTPORT)                     \
diff --git a/data-feed/feed011.tst b/data-feed/feed011.tst
new file mode 100644 (file)
index 0000000..83af9e1
--- /dev/null
@@ -0,0 +1,27 @@
+T:(feed011) Checkin authentication mode is AUTH DISGEST-MDr5
+C:CONNECT
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
+S:AUTH DIGEST-MD5
+R:334 cmVhbG09Im1haWxsZXVyLWVtYWlsIixub25jZT0iU1ZReVpRPT0iLHFvcD1hdXRoLGFsZ29yaXRobT1tZDUtc2VzcyxjaGFyc2V0PXV0Zi04
+S:AUTH PLAIN YXV0aGlkXDB3ZWJtYXN0ZXJAZXhhbXBsZS5jb21cMG1haWxsZXVy
+R:235 5.7.5 Authentication successful
+S:AUTH LOGIN
+#requesting Username:
+R:334 VXNlcm5hbWU6
+#sending 'webmaster@example.com' as B64
+S:d2VibWFzdGVyQGV4YW1wbGUuY29t
+#requesting Password:
+R:334 UGFzc3dvcmQ6
+#sending 'mailleur' as B64
+S:bWFpbGxldXI=
+R:235 5.7.5 Authentication successful
+S:AUTH PLAIN AHVzZXIxQG1haWxwb3N0Zy5leGFtcGxlLmNvbQBtYWlsbGV1cg==
+R:504 5.7.4 authentication failed
+#\0bigre_bigre\0nouser
+S:AUTH PLAIN XDBiaWdyZV9iaWdyZVwwbm91c2Vy
+R:504 5.7.4 authentication failed
+#\0postmaster@example.com\0nopasswd
+S:AUTH PLAIN XDBwb3N0bWFzdGVyQGV4YW1wbGUuY29tXDBub3Bhc3N3ZA==
+R:504 5.7.4 authentication failed
+S:QUIT
+R:221 2.0.0 Bye, closing connection...
index daf850e456c9c3f46b10f27b9b5703de28064ab0..e1dda7e919bfe127d01761025911488d1f713377 100644 (file)
@@ -658,6 +658,7 @@ while (proceed==true) {
       char *b64;
 
       b64=cnv_setb64(challenge);
+      (void) rou_alert(0,"JMPDBG md5 send=<%d %s>",SENDB64,b64);
       (void) eml_transmit(contact,true,"%d %s",SENDB64,b64);
       b64=rou_freestr(b64);
       }
@@ -670,6 +671,7 @@ while (proceed==true) {
         if (strcasecmp(line,"QUIT")!=0) {
           char *res;
 
+          (void) rou_alert(0,"JMPDBG md5 received=<%s>",line);
           res=cnv_getb64(line);
           (void) rou_alert(2,"%s received=<%s>",OPEP,res);
           (void) snprintf(answer,sizeof(answer),"%s",res);
@@ -880,7 +882,7 @@ while (proceed==true) {
         fmt=DISP"Auth Rejected status='%d' for user=<%s> pass=<%s>";
         (void) log_fprintlog(contact->logptr,true,fmt,BADAUTH,auth,rmtpass);
         (void) sleep(2);
-        (void) eml_note(contact,NULL,"user <%s> pass=<%s<bad authentication",
+        (void) eml_note(contact,NULL,"user <%s> pass=<%sbad authentication",
                                       auth,rmtpass);
         (void) eml_transmit(contact,true,"%d 5.7.4 wrong authentication",BADAUTH);
         contact->credit-=1;