help-gsasl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pass hex salted password on gsasl command line


From: Manvendra Bhangui
Subject: pass hex salted password on gsasl command line
Date: Wed, 2 Nov 2022 00:16:36 +0530

Hi,

I have been using the gsasl utility for most of my testing with SCRAM passwords. During testing I noticed that there isn't a way to pass the hex salted password. I did the following change to src/callback.c and now I can use hex salted passwords

diff -Naur gsasl-2.2.0.orig/src/callbacks.c gsasl-2.2.0/src/callbacks.c
--- gsasl-2.2.0.orig/src/callbacks.c    2022-08-20 19:23:21.000000000 +0530
+++ gsasl-2.2.0/src/callbacks.c 2022-11-02 00:04:51.079193609 +0530
@@ -199,6 +199,10 @@
       break;

     case GSASL_SCRAM_SALTED_PASSWORD:
+      if (args_info.password_arg == NULL)
+   args_info.password_arg = readutf8pass ("Enter Hex salted password: ");
+
+      rc = gsasl_property_set (sctx, GSASL_SCRAM_SALTED_PASSWORD, args_info.password_arg);
       break;

     case GSASL_SCRAM_ITER:


--
Regards Manvendra - http://www.indimail.org
GPG Pub Key
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC7CBC760014D250C

reply via email to

[Prev in Thread] Current Thread [Next in Thread]