[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Issues ISC dhcpd using libldap of OpenLDAP 2.4.48



Michael Ströder wrote:
> On 7/17/19 4:41 PM, Howard Chu wrote:
>> strace is not useful here. Pretty sure we've stated this many times before.
> 
> Sorry. Indeed ltrace output is more helpful.
> 
> Here's the test with 2.4.48:
> 
> ------------------------------------------------------------------------------------
> 27337 ldap_initialize()
>                                              = <void>
> 27337 free(0x560583024230)
>                                              = <void>
> 27337 ldap_set_option()
>                                              = <void>
> 27337 ldap_set_option()
>                                              = <void>
> 27337 ldap_set_rebind_proc()
>                                              = <void>
> 27337 strdup("xxxxxxxxxxxxxxxxxxxxxxxx")
>                                              = 0x560583024230
> 27337 strlen()
>                                              = <void>
> 27337 ldap_sasl_bind_s()
>                                              = <void>

Find out why ldap_sasl_bind_s is failing.


> 27337 free(0x560583024230)
>                                              = <void>
> 27337 ldap_err2string()
>                                              = <void>
> 27337 __vsnprintf_chk(0x5605829dbde0, 1024, 1, 1024)
>                                              = 77
> 27337 __syslog_chk(3, 1, 0x5605828fa7f1, 0x5605829dbde0)
>                                              = 0
> 27337 write(2, "Error: Cannot login into ldap se"..., 77)
>                                              = 77
> 27337 write(2, "\n", 1)
>                                              = 1
> ------------------------------------------------------------------------------------
> 
> With 2.4.47 it looks different:
> 
> ------------------------------------------------------------------------------------
> 27776 ldap_initialize( <unfinished ...>
> 27776 inet_pton(2, 0x7ffc9ca4b370, 0x7ffc9ca4aed0, 0x557ed75725ff)
>                                              = 0
> 27776 inet_pton(10, 0x7ffc9ca4b370, 0x7ffc9ca4aed0, 62)
>                                              = 0
> 27776 malloc(312)
>                                              = 0x557ed8afa810
> 27776 malloc(35232)
>                                              = 0x557ed8afa950
> 27776 memset(0x557ed8afa950, '\0', 35232)
>                                              = 0x557ed8afa950
> 27776 malloc(8800)
>                                              = 0x557ed8b03300
> 27776 memset(0x557ed8b03300, '\0', 8800)
>                                              = 0x557ed8b03300
> 27776 malloc(8192)
>                                              = 0x557ed8b05570
> ------------------------------------------------------------------------------------
> 
> Ciao, Michael.
> 
> 


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/