This is tricky. I am assuming you can handle a lot of open ldap connections? Well if you get a burst of traffic it is going to open a ton of connections and hang on to them. If it where me I would probably associate the connections with the session id and a timestamp. Write a TG scheduled process close connections that timed out.
Don't remember the python ldap api very well but I thought you could rebind an ldap connection. If this was the case I would look at just having a connection pool and rebinding the connection time you need it for a user.
Hope something there was helpful.
lateef
On 7/6/06, Ulysses Almeida <[EMAIL PROTECTED]
> wrote:
Hi...
I'm using soldapprovider from andy.kilner
( http://trac.turbogears.org/turbogears/attachment/wiki/IdentityManagement/soldapprovider.patch)
and it's working fine (I just modify to use mail instead of uid to
validate auth). After validate the user I'd like to persist ldap
connection to use on addressbook module I pretend to write. How can I
persist the ldap connection from soldapprovider thru user session?
Thanks in advance!
--
- Ulysses Almeida
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

