[Freeipa-devel] [PATCH] basic connection pool and user search

Rob Crittenden rcritten at redhat.com
Mon Aug 13 20:38:57 UTC 2007


I added the shell of an LDAP connection pool. Since any one connection 
only uses one LDAP handle at a time and we run in Apache multi-process 
this basically creates one persistent connection per Apache process.

This also adds a user search API: find_users(riteria, attrs)

Right now it just searches on uid but I suspect we'll expand it to 
search on other stuff at some point.

This was quite funky to do because I wanted to pass in the list of attrs 
to return. Apparently the XML-RPC call combines all arguments into a 
single tuple that gets passed. So this makes it different than when 
calling things directly (where each argument is separate). I had to do a 
bit of hoop-jumping to get it to work. I fully expect someone to say 
"Er, no, you want to do it this way..."

And finally, now everything is proxied except for the initial user 
principle lookup.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search.patch
Type: text/x-patch
Size: 14117 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070813/850b2954/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070813/850b2954/attachment-0001.bin>


More information about the Freeipa-devel mailing list