sasl

Kafka “Login module not specified in JAAS config”

我与影子孤独终老i 提交于 2019-11-30 02:54:41
问题 I have a problem communicating with Kafka secured with sasl using console scripts. Kafka is secured with sasl , listener is SASL_PLAINTEXT and mechanism is PLAIN . What I did: I tried listing some data using one of kafka scripts: bin/kafka-consumer-groups.sh --bootstrap-server (address) --list However I get WARN Bootstrap broker (address) disconnected (org.apache.kafka.clients.NetworkClient) and command fails, which is understandable because it's secured with sasl. So I tried how to add

Security & Authentication: SSL vs SASL

怎甘沉沦 提交于 2019-11-29 19:31:55
My understanding is that SSL combines an encryption algorithm (like AES, DES, etc.) with a key exchange method (like Diffier-Hellman) to provide secure encryption and identification services between two endpoints on an un-secure network (like the Internet). My understanding is that SASL is an MD5/Kerberos protocol that pretty much does the same thing. So my question: what are the pros/cons to choosing both and what scenarios make either more preferable? Basically, I'm looking for some guidelines to follow when choosing SSL or to go with SASL instead. Thanks in advance! Bruno It's quite

Memcache connects but doesn't respond to any command

本小妞迷上赌 提交于 2019-11-29 15:43:28
问题 Setup: Apache; PHP 5.2.9; libevent (for memcached it's required) version 1.3; memcached server version 1.2.2 (tried 1.4.5, 1.4.0, now downgraded to 1.2.2, no difference); memcached php pecl module version 2.2.6. Problem: Similar to unresolved problems cannot store values into memcache and Super strange PHP error None of those threads had resolved issue and none of the authors of questions followed recommendations given. I followed them all, and it still doesn't work. Memcache code doesn't

Can Kafka be provided with custom LoginModule to support LDAP?

北战南征 提交于 2019-11-29 11:16:12
Kafka can be configured to use several authentication mechanisms: plaintext username/password, Kerberos or SSL. The first 2 use SASL, where there is a JAAS config file required. For the plain text auth method, the config looks like (taken from the documentation ): KafkaServer { org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="admin-secret" user_admin="admin-secret" user_alice="alice-secret"; }; I want to authenticate if possible using LDAP. My question is this: if I replace the PlainLoginModule with a class that implements LoginModule and place this

Hadoop: Python client driver for HiveServer2 fails to install

雨燕双飞 提交于 2019-11-28 20:39:06
I am trying to install a Python client driver for HiveServer2: https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-PythonClientDriver Installations says that: "A Python client driver for HiveServer2 is available at https://github.com/BradRuderman/pyhs2 It includes all the required packages such as SASL and Thrift wrappers ". Yet, running pip install pyhs2 fails on SASL compilation (see below). I have Hadoop 2.2.0 installed and working on localhost. Please help, to install Python client. [root@localhost /]# pip install pyhs2 Requirement already satisfied

XMPP SASL SCRAM-SHA1 Authentication

杀马特。学长 韩版系。学妹 提交于 2019-11-28 17:39:32
Recently, I was able to get MD5 authentication working for XMPP streams in Swift IOS following the instructions on the following two websites (I used the CC-MD5 function of Apple's CommonCrypto C library for the actual hashing): http://wiki.xmpp.org/web/SASLandDIGEST-MD5 http://www.deusty.com/2007/09/example-please.html I'm searching for a similar explanation for how to get other hashed SASL authentication schemes working, especially SCRAM-SHA1. I have found the official RFC5802 document but I'm having a lot of trouble understanding it (it is not specific to XMPP either). I would appreciate a

Mac OS X 10.10 Yosemite Postfix SASL authentication failed

守給你的承諾、 提交于 2019-11-28 16:23:10
I followed the step described in the link below to setup my mac to send out email. http://www.anujgakhar.com/2011/12/09/using-macosx-lion-command-line-mail-with-gmail-as-smtp/ It was working fine on my Mac OS X 10.9. But after I upgraded to OS X 10.10. The mail.log showed the following error. What is the problem? Oct 19 00:28:22 paullam-macbook-pro.local postfix/smtp[30383]: 6B47B8AD4E8: SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.68.109]: generic failure Oct 19 00:28:24 paullam-macbook-pro.local postfix/smtp[30383]: 6B47B8AD4E8: to=<zzpaul@gmail.com>, relay

Unable to install sasl-0.1.3 python package on windows machine

核能气质少年 提交于 2019-11-28 08:33:26
I am trying to install sasl-0.1.3 python package on windows 7 (64 bit machine). It is fialing wiht C1083 fatal error. Looks like saslwrapper.cpp is unable to include sasl/sasl.h library in c++ module. Please help me in resolving the issue. Let me know if you need more details. I installed python 2.7 on my machine. The easier way I find to install sasl on windows 7 is to use the pre-compiled version from here : http://www.lfd.uci.edu/~gohlke/pythonlibs/ There is a direct link to the sasl librairies here : http://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl just pick the one you need. Then you

Kafka SASL zookeeper authentication

你说的曾经没有我的故事 提交于 2019-11-28 06:29:09
I am facing the following error while enabling SASL on Zookeeper and broker authentication. [2017-04-18 15:54:10,476] DEBUG Size of client SASL token: 0 (org.apache.zookeeper.server.ZooKeeperServer) [2017-04-18 15:54:10,476] ERROR cnxn.saslServer is null: cnxn object did not initialize its saslServer properly. (org.apache.zookeeper.server. ZooKeeperServer) [2017-04-18 15:54:10,478] ERROR SASL authentication failed using login context 'Client'. (org.apache.zookeeper.client.ZooKeeperSaslClient) [2017-04-18 15:54:10,478] DEBUG Received event: WatchedEvent state:AuthFailed type:None path:null (org

SMTP and OAuth 2

天涯浪子 提交于 2019-11-27 19:30:34
Does .NET support SMTP authentication via OAuth protocol? Basically, I would like to be able to send emails on users' behalves using OAuth access tokens. However, I couldn't find a support for this in the .NET framework. Google provides some samples for this in other environments but not .NET. System.Net.Mail does not support OAuth or OAuth2. However, you can use MailKit 's (note: only supports OAuth2) SmtpClient to send messages as long as you have the user's OAuth access token (MailKit does not have code that will fetch the OAuth token, but it can use it if you have it). The first thing you