[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
localhost on ldap latest
Hi,
I have openldap-dev latest version, cyrus-sasl 1.5.24 and
globus GSI(a GSSAPI). I am using test006-acls as a test
for authentication under SASL+GSI and also for learning
about ACLs. I notice that the client(ldapsearch/ldapmodify) calls
with -h localhost. This seems to work for -x. When I switch
to -Y GSSAPI, it fails. It turns out that sasl-host in
libraries/libldap/open.c ldap_int_open_connection() got set
with 'localhost' from os-ip.c's ldap_host_connected_to().
Should this be the real FQDN instead ??
thanks,
mei
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx) down
Current function is ldap_host_connected_to
490 host = LDAP_STRDUP( hp->h_name );
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx) print hp->h_name
hp->h_name = 0x89848 "localhost"
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx) where
=>[1] ldap_host_connected_to(sb = 0x88c70), line 490 in "os-ip.c"
[2] ldap_int_open_connection(ld = 0x894e0, conn = 0x89810, srv = 0x897e0,
async = 0), line 319 in "open.c"
[3] ldap_new_connection(ld = 0x894e0, srvlist = 0x897e0, use_ldsb = 1,
connect = 1, bind = (nil)), line 263 in "request.c"
[4] ldap_open_defconn(ld = 0x894e0), line 30 in "open.c"
[5] ldap_int_sasl_bind(ld = 0x894e0, dn = (nil), mechs = 0x881d0 "GSSAPI",
sctrls = (nil), cctrls = (nil), flags = 0, interact = 0x1cb28 = &lutil_sasl
interact(), defaults = 0x88c50), line 490 in "cyrus.c"
[6] ldap_sasl_interactive_bind_s(ld = 0x894e0, dn = (nil), mechs = 0x881d0
"GSSAPI", serverControls = (nil), clientControls = (nil), flags = 0, interact
= 0x1cb28 = &lutil_sasl_interact(), defaults = 0x88c50), line 442 in "sasl.c"
[7] main(argc = 14, argv = 0xffbeef7c), line 742 in "ldapsearch.c"
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx)