[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7583) ldap_init_fd() does not work with LDAP_PROTO_UDP
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7583) ldap_init_fd() does not work with LDAP_PROTO_UDP
- From: hyc@symas.com
- Date: Thu, 23 May 2013 19:47:05 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
stefw@redhat.com wrote:
> Full_Name: Stef Walter
> Version: 2.4.35
> OS: Fedora 18
> URL: http://fedorapeople.org/~stefw/patches/openldap-02/0001-Make-ldap_init_fd-work-with-LDAP_PROTO_UDP.patch
> Submission from: (NULL) (77.3.95.123)
>
>
> The ldap_init_fd() function does not work with UDP sockets (ie: LDAP_PROTO_UDP
> passed in as the proto argument). Later uses of the LDAP connection returned
> fail unceremoniously.
>
> This patch fixes the issue:
Thanks, patch applied to git master.
>
> http://fedorapeople.org/~stefw/patches/openldap-02/0001-Make-ldap_init_fd-work-with-LDAP_PROTO_UDP.patch
>
> Some test code to exercise and demonstrate the problem. The code does not
> actually wait for a UDP response, but should exit with a zero return code when
> successful.
>
> http://fedorapeople.org/~stefw/patches/openldap-02/frob-cldap-initfd.c
>
> $ gcc -o frob-cldap-initfd -Wall -lldap -llber frob-cldap-initfd.c
> $ ./frob-cldap-initfd
> frob-cldap-initfd: ldap_search_ext: -1
>
> The above result occurs before the patch is applied.
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/