[Date Prev][Date Next]
(ITS#7991) problem trying to call ldap_set_option
Full_Name: Dmitry Shupilov
OS: RHEL 6.5 x86_64
Submission from: (NULL) (126.96.36.199)
It's my first time to post here, so sorry if I will do something wrong :)
I have to write shared library which task is to check if the user is correct
LDAP user. First of all I prepare env and call ldap_initialize - nothing special
here. The ldap_create function sets ld properly (e.g. ld = '0x7fffe40837d0')
and in gdb I can read it by (p *ld) or even deeper (p *ld.ldc). But the next
function cannot do its job - ldap_set_option failed with "-1" status. I tried to
create separate binary which use my shared *.so to do the same job - check a
user in LDAP and it works fine: ldap_create assigns "short" address (e.g.
0x602a30). In this case ldap_set_option do what it needs to do.
My question is: is the problem of ldap_set_option in that "very long value of
address" or is something else? How can I catch the reason of this problem and