1MEMCACHED_SET_SASL_CALLBACKS(3) libmemcached MEMCACHED_SET_SASL_CALLBACKS(3)
2
3
4
6 memcached_set_sasl_callbacks - libmemcached Documentation
7
9 #include <libmemcached/memcached_pool.h>
10
11 void memcached_set_sasl_callbacks(memcached_st *ptr, const sasl_call‐
12 back_t *callbacks)
13
14 const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st *ptr)
15
16 memcached_return_t memcached_set_sasl_auth_data(memcached_st *ptr,
17 const char *username, const char *password)
18
19 memcached_return_t memcached_destroy_sasl_auth_data(memcached_st *ptr)
20
21 Compile and link with -lmemcached
22
24 libmemcached(3) allows you to plug in your own callbacks function used
25 by libsasl to perform SASL authentication.
26
27 Please note that SASL requires the memcached binary protocol, and you
28 have to specify the callbacks before you connect to the server.
29
30 memcached_set_sasl_auth_data() is a helper function defining the basic
31 functionality for you, but it will store the username and password in
32 memory. If you choose to use this method you have to call
33 memcached_destroy_sasl_auth_data before calling memcached_free to avoid
34 a memory leak. You should NOT call memcached_destroy_sasl_auth_data if
35 you specify your own callback function with
36 memcached_set_sasl_callbacks().
37
39 memcached_get_sasl_callbacks() returns the callbacks currently used by
40 this memcached handle. memcached_set_sasl_auth_data() returns MEM‐
41 CACHED_SUCCESS upon success.
42
44 To find out more information please check: http://libmemcached.org/
45
47 Brian Aker, <brian@tangent.org>
48
49 Trond Norbye, <trond.norbye@gmail.com>
50
52 memcached(1) libmemcached(3) memcached_strerror(3)
53
55 Brian Aker
56
58 2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
59
60
61
62
631.0.18 February 09, 2014MEMCACHED_SET_SASL_CALLBACKS(3)