Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SASL support for session handler #47

Closed
orensol opened this issue Dec 24, 2012 · 27 comments
Closed

SASL support for session handler #47

orensol opened this issue Dec 24, 2012 · 27 comments

Comments

@orensol
Copy link

orensol commented Dec 24, 2012

Hi,

There is (a rather undocumented) support for SASL in the client, but not in the session handler.

I think it will be useful to add SASL support for session handler. This way cloud based Memcached services which require SASL (like Northscale, Memcachier...) can be used as session storages.

@zekenie
Copy link

zekenie commented Feb 17, 2013

1+

@gabriel-samfira
Copy link

👍

@martijngastkemper
Copy link

1+

@mkoppanen
Copy link
Member

Ok, will work on this tomorrow. Is this still relevant?

@gabriel-samfira
Copy link

yes :)

@mkoppanen
Copy link
Member

Ok, session sasl support is in master. Let me know if it works.

@aiso-net
Copy link

Can you show us example .ini settings that allows you to use php sessions in memcached with SASL?

@mkoppanen
Copy link
Member

Try:

memcached.use_sasl = On
memcached.sess_sasl_username = <yourusername>
memcached.sess_sasl_password = <yourpassword>

Let me know how it goes.

@aiso-net
Copy link

I have that via the CloudLinux php selector and I see sasl_on in phpinfo but not username and password, and I'm getting a denied error in my php session test file, as well as auth failed error in the memcached server log file. I have a memcached test file with the same ip, port, username, and password as the memcached ini settings and it works fine.

@mkoppanen
Copy link
Member

Which version is it? I added these settings in the latest beta release.

@aiso-net
Copy link

Ya, that would be it, thanks. Cloudlinux php selector has:

memcached support enabled
Version 2.1.0
libmemcached version 1.0.15

I have asked them to upgrade their rpms.

Do I need to have set memcached.sess_binary=On as well?

@mkoppanen
Copy link
Member

memcached.sess_binary=On should not make difference. If you turn on Sasl for sessions the binary protocol is turned on automatically.

@aiso-net
Copy link

Thanks, do you know when the current beta version that supports SASL will go into stable?

@mkoppanen
Copy link
Member

We released beta1 after large amount of changes so there has to be a small grace period to allow users to test. This far there has been no bug reports so I will most likely push out stable during the christmas break.

@aiso-net
Copy link

aiso-net commented Jan 6, 2014

Any update on when you will be pushing that beta to live? Cloudlinux wont compile it into an rpm for use on our servers as long as its in beta. Thanks!

@mkoppanen
Copy link
Member

Hi, there is one open bug #116 which seems troublesome. Trying to see if that can be sorted before release.

@aiso-net
Copy link

Do you think bug #116 is fixed now ?

@mkoppanen
Copy link
Member

#126 has cropped up since

@aiso-net
Copy link

Any update on a release date for the stable release, got some clients waiting for our service and it depends on this. Thanks for your hard work!

@mkoppanen
Copy link
Member

I've been wanting to work on this for a while, but work life got on to way. I am pushing RC1 out now, if everything seems ok with that we can aim to release around 8th or 9th March.

@mkoppanen
Copy link
Member

I haven't had any feedback whether this feature actually works in the real world. It would be nice to get some feedback on RC1 if you have hardware to test on.

@aiso-net
Copy link

aiso-net commented Mar 5, 2014

Ya I can test as soon as you release RC1 and let you know how it works, yet I dont see RC1 yet at http://pecl.php.net/package/memcached

@aiso-net
Copy link

Any updates?

@aiso-net
Copy link

I see RC1 on the site now, I will have the cloudlinux guys package it up and I will get it installed and tested and let you know within the next week.

@dhruvbhatia7
Copy link

Hi,
I'm trying to get memcached based sessions to work, and I'm new to memcached. I am using MemcacheSASL. I have session.save_handler=memcached (i've tried memcache also) in my php.ini file. It is not able to find either of these. Do I need to specify something else instead of memcached/memcache as the handler?

I apologize if this is a really obvious and stupid question. Just trying to get my project to work soon :)
Thanks,
Dhruv

@mkoppanen
Copy link
Member

I don't really know anything about MemcacheSASL, Is it a library?

@mkoppanen
Copy link
Member

Closing this as no feedback. Reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants