精华内容
下载资源
问答
  • SASL

    2021-01-09 21:29:58
    <code>Notice -- You need to identify via SASL to use this server The google gods led me to <a href="https://freenode.net/sasl/">this</a> page. Is this something shout already supports?</p><p>该提问...
  • sasl-dist:Sasl分布-源码

    2021-03-19 00:53:54
    sasl-dist:Sasl分布
  • SASL Support

    2020-11-28 00:55:25
    <div><p>Just wondering if there were any plans on supporting SASL authentication. The use case for this is heroku's memcache deployment requires SASL to work. Thanks for your time.</p><p>该提问...
  • SASL authentication

    2021-01-02 23:40:22
    sasl_password: password_hidden_for_security </code></pre> <p>Only PLAIN authenication is implemented. I think it is sufficient for most users. <p>Fix #90 <p>I have only tested it on freenode.</p><p...
  • For obvious reason - I already have Cyrus SASL library as a dependency and would like to avoid having two libraries for the same thing. There is also a precedent - SSL (crypto) functionality can be ...
  • SASL Authentication

    2020-12-02 22:16:33
    Is it possible to use kafka-webview with a cluster with a SASL authenticaton? In simple console consumer I can do this by just passing jaas conf(with login/password) file as JVM argument like <p>...
  • SASL Refacturing

    2020-12-08 18:11:05
    <div><p>This pull request clean up the sasl authentication. <code>Sasl.js</code> was refactured and all auth-methods were separated into separate files. Additionally the server side component is now ...
  • SASL auth

    2020-12-02 00:46:36
    <div><p>Implementing SASL auth for #46 </p><p>该提问来源于开源项目:BotBotMe/botbot-bot</p></div>
  • SASL support

    2020-12-27 03:13:42
    <div><p>libmemcached can be built with SASL support. Expose it when it's supported.</p><p>该提问来源于开源项目:lericson/pylibmc</p></div>
  • %3|1536492506.480|ERROR|rdkafka#producer-12| [thrd:sasl_plaintext://kafka3.dataak.dev:9096/bootstrap]: sasl_plaintext://kafka3.dataak.dev:9096/bootstrap: Failed to initialize SASL authentication: SASL...
  • sasl kerberos

    2020-11-27 15:24:55
    <p>Everything is good and we can connect to Kafka with Python confluent kafka and setting sasl.kerberos property. <p>But when I set these configs for connecting to Kafka with kafka-...
  • Load SASL and a properly configured services daemon such as Atheme. Link services to the network and then delink it. <p>Attempt to log in via SASL. Once you send the SASL commands you are not able to ...
  • sasl mechanisms?

    2020-12-09 05:18:52
    in the case where the sasl mechanism relies on external async APIs (for example using a hardware TPM to sign a SASL challenge key with a secret stored in the hardware), how would that work?...
  • Add SASL authentication

    2020-11-22 06:11:51
    <div><p>This patch implements SASL authentication (only GSSAPI was tested). SASL authentication is required for secure clusters, specifically the ones that use Kerberos. In Hadoop SASL is implemented ...
  • sasl在很多场景中都有用到,如xmpp,pop3等等。详细协议可参见:publicclassAuthMain {/***@paramargs*@throwsSaslException*/publicstaticvoidmain(String[] args)throwsSaslException {Map props =newTreeMap();...

    sasl在很多场景中都有用到,如xmpp,pop3等等。详细协议可参见:

    publicclassAuthMain {

    /**

    *@paramargs

    *@throwsSaslException

    */

    publicstaticvoidmain(String[] args)throwsSaslException {

    Map props =newTreeMap();

    props.put(Sasl.QOP,"auth");

    SaslServer ss = Sasl.createSaslServer("DIGEST-MD5","xmpp","java.com",

    props,newServerCallbackHandler());

    byte[] token =newbyte[0];

    byte[] challenge

    = ss.evaluateResponse(token);

    SaslClient sc = Sasl.createSaslClient(newString[] {"DIGEST-MD5"},

    "tony","xmpp","java.com",null,newClientCallbackHandler());

    byteresponse[];

    if(challenge

    !=null) {

    response = sc.evaluateChallenge(challenge);

    }else{

    response = sc.evaluateChallenge(null);

    }

    ss.evaluateResponse(response);

    if(ss.isComplete()) {

    System.out.println("auth

    success");

    }

    }

    }

    classClientCallbackHandlerimplementsCallbackHandler {

    publicvoidhandle(Callback[] callbacks)throwsIOException,

    UnsupportedCallbackException {

    for(inti = 0; i < callbacks.length; i++) {

    if(callbacks[i]instanceofNameCallback) {

    NameCallback ncb = (NameCallback) callbacks[i];

    ncb.setName("tony");

    }elseif(callbacks[i]instanceofPasswordCallback) {

    PasswordCallback pcb = (PasswordCallback) callbacks[i];

    pcb.setPassword("admin1".toCharArray());

    }elseif(callbacks[i]instanceofRealmCallback) {

    RealmCallback rcb = (RealmCallback) callbacks[i];

    rcb.setText("java.com");

    }else{

    thrownewUnsupportedCallbackException(callbacks[i]);

    }

    }

    }

    }

    classServerCallbackHandlerimplementsCallbackHandler {

    publicServerCallbackHandler() {

    }

    publicvoidhandle(finalCallback[] callbacks)throwsIOException,

    UnsupportedCallbackException {

    for(Callback callback : callbacks) {

    if(callbackinstanceofRealmCallback) {

    //do your

    business

    }elseif(callbackinstanceofNameCallback) {

    //do your

    business

    }elseif(callbackinstanceofPasswordCallback) {

    ((PasswordCallback) callback).setPassword("admin1"

    .toCharArray());

    }elseif(callbackinstanceofAuthorizeCallback) {

    AuthorizeCallback authCallback = ((AuthorizeCallback)

    callback);

    authCallback.setAuthorized(true);

    }else{

    System.out.println(callback.getClass().getName());

    thrownewUnsupportedCallbackException(callback,

    "Unrecognized

    Callback");

    }

    }

    }

    }

    注意这里只是基本的api如何使用,具体使用(根据自己系统的业务)要自己重新实现两个callbackhandler两个类,里面的用户名,密码,以及realm信息则要根据具体逻辑来写,比如是从数据库系统来,还是文件系统来,或者是SSO认证。

    展开全文
  • Use Java SASL libraries? http://docs.oracle.com/javase/6/docs/technotes/guides/security/sasl/sasl-refguid e.html I'm not too familiar with SASL, so hopefully I could get a little bit of help ...
  • <div><p>Ideally, I believe all Bind methods should be async (or at least have an async variant), but for implementing some custom based Sasl clients which acts asynchronously (aka receive data to feed...
  • - https://docs.confluent.io/current/kafka/authentication_sasl/authentication_sasl_scram.html#zk which suggests to use SASL/DIGEST-MD5</p> <p>Can we add orchestration for these?</p><p>该提问来源于开源...
  • sasl.mechanisms: sasl sasl.username: sasl.password: <p>can see this :https://github.com/edenhill/librdkafka/wiki/Using-SASL-with-librdkafka</p> <p>php-rdkafka can use this ?? ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 5,546
精华内容 2,218
热门标签
关键字:

sasl