[Ruby] Per user IO connections in Rails?
Atom Powers
atom.powers at gmail.com
Wed May 21 15:15:15 PDT 2008
I'm stumped.
I have a rails app that authenticates a user to ldap and uses that
connection to do searches, updates, etc.
It works well for one person, but because the only way I know of to store
the ldap connection is globally, as soon as another person logs in it
overwrites the connection with a new one with the new user's binding. (I use
the binding to determine the amount of access the user has to the directory,
using openldap acls.)
So, how can I store the ldap connection in a per-user way?
I can't use session[] because the connection contains IO objects.
And my ruby/rails is weak.
--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
More information about the Ruby
mailing list