Skip to content

Commit c8e9d2a

Browse files
authored
Fix up sasl_producer usage (#825)
1 parent ab59950 commit c8e9d2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/sasl_producer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ def main(args):
114114
parser.add_argument('-d', dest="delimiter", default="|",
115115
help="Key-Value delimiter. Defaults to '|'"),
116116
parser.add_argument('-m', dest="sasl_mechanism", default='PLAIN',
117+
choices=['GSSAPI', 'PLAIN',
118+
'SCRAM-SHA-512', 'SCRAM-SHA-256'],
117119
help="SASL mechanism to use for authentication."
118120
"Defaults to PLAIN")
119121
parser.add_argument('--tls', dest="enab_tls", default=False)
120122
parser.add_argument('-u', dest="user_principal", required=True,
121123
help="Username")
122124
parser.add_argument('-s', dest="user_secret", required=True,
123-
help="Password(ignored on Windows) for PLAIN and SCRAM,"
124-
" or path to keytab if GSSAPI.")
125+
help="Password for PLAIN and SCRAM, or path to"
126+
" keytab (ignored on Windows) if GSSAPI.")
125127

126128
main(parser.parse_args())

0 commit comments

Comments
 (0)