On 29 Mar 2010, at 14:06, Leilani Tubungbanua wrote: > Hi Mr. Barr, > > I have read your CPAN documentation for Net::LDAP. I do have few questions > whose answers I can not find in the documentation. Hopefully you are the > right person to ask these: > > 1. Using the Net::LDAP or related modules, how can we extract the etime > (elapsed operation time) for each LDAP operation?
Call time() before sending the operation, and time() after blocking for the return. You probably want finer-grained versions than time(), but you get the idea. > 2. If the LDAP server being queried is behind a proxy firewall, how do > we define the proxy server? I am not sure that the Control OID > “LDAP_CONTROL_PROXYAUTHENTICATION (2.16.840.1.113730.3.4.18) “ would be > sufficient for this requirement. If yes, can pls please advise where to > specify the proxy server, and/or username/password? You're looking for network-level proxying, like HTTP can do using PAC files; that LDAP control is for use with an existing connection to an LDAP server, and lets you authenticate as 'leilani' (say) and do operations while authorized as, for example, 'manager'. I don't know if LDAP has any support for the sort of network proxying you're thinking of. Cheers, Chris