SASL authentication fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
Invalid
|
Undecided
|
Unassigned | ||
libmemcached (Debian) |
New
|
Unknown
|
Bug Description
SASL authentication doesn't work.
When connecting to a server using SASL, we have the following callstack :
- memcached_connect
- memcached_
- memcached_response
- _read_one_response
in function _read_one_response, during SASL authentication, the rc value is set to MEMCACHED_
This value is not considered as a success by memcached_fatal which result in closing the connection to memcached, preventing the authentication to complete properly.
the memcached_fatal function should look like this :
static inline bool memcached_
{
return (
rc != MEMCACHED_BUFFERED &&
rc != MEMCACHED_
rc != MEMCACHED_
rc != MEMCACHED_DELETED &&
rc != MEMCACHED_E2BIG &&
rc != MEMCACHED_END &&
rc != MEMCACHED_ITEM &&
rc != MEMCACHED_ERROR &&
rc != MEMCACHED_NOTFOUND &&
rc != MEMCACHED_NOTSTORED &&
rc != MEMCACHED_
rc != MEMCACHED_STAT &&
rc != MEMCACHED_STORED &&
rc != MEMCACHED_SUCCESS &&
rc != MEMCACHED_VALUE &&
rc != MEMCACHED_
}
affects: | debian → libmemcached (Debian) |
Changed in libmemcached (Debian): | |
status: | Unknown → New |
Changed in libmemcached: | |
status: | New → Invalid |