Description
Hello,
I faced a strange issue while querying LDAP Active Directory via curl: directly and via R-language wrapper - RCurl.
When I run RCurl under R session on Windows, my query is evaluated and result is returned immediately. Everything is fine.
When I do the same under R on Linux Debian, it hangs. So I've run the query via curl from the Linux command line. It turned out that the result is returned correctly (all information is correct), but curl is waiting for something. Only Ctrl+C can stop that.
My query:
LDAP://x.x.x.x/dc=company,dc=com?userPrincipalName,msExchShadowGivenName,msExchShadowSn,sAMAccountName?sub?(&(objectCategory=person)(msExchShadowProxyAddresses=*some@email.com*))
My call:
curl -u user@domain:pwd "ldap://ip/......"
Why the query on Windows is evaluated successfully and curl returns results immediately, while the same query on Linux makes curl hanged? Should I set some additional options?
This may be important: Debian is running under Hyper-V virtual machine.
The version of curl I'm using is: 7.38.0
Thanks in advance.
EDIT:
adding --max-time 1 partially solves this issue, but this completely unprofessional solution. If the response will come in 2 seconds, it will be lost. And setting the max-time to 2 seconds will make the process waiting always 2 seconds.