[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_sasl_interactive_bind_s: Local error
At 07:16 AM 6/14/2001, Steve Sullivan wrote:
>Hi,
>I'm having trouble installing 2.0.11 on RedHat 7.1 on a Pentium.
>When I run ldapadd ...
>/home/ss/ftp/openldap/tdi/bin/ldapadd -v -D "cn=Manager,dc=mathcom,dc=com" -w somesecret -f testa.ldif
Looks like you want simple password authentication but haven't
specified -x.
>I get...
>ldap_initialize( <DEFAULT> )
>SASL/GSSAPI authentication started
>ldap_sasl_interactive_bind_s: Local error
>
>How can I get this running?
>
>
>The entire tale of how I built this is ...
>
>./configure --prefix=/home/ss/ftp/openldap/tdi --enable-debug --enable-syslog --with-threads
>make depend
>make
>make test (all tests worked)
>make install (installs to my dir /home/ss/ftp/openldap/tdi)
>
>I deleted all of RedHat's /etc/openldap and copied the
>entire directory, /home/ss/ftp/openldap/tdi/etc/openldap,
>to /etc/openldap.
>
>I modified /etc/openldap/slapd.conf to have:
>database ldbm
>suffix "dc=mathcom,dc=com"
>rootdn "cn=Manager,dc=mathcom,dc=com"
>rootpw somesecret
>
>Then as root I started slapd:
># /home/ss/ftp/openldap/tdi/libexec/slapd -f /etc/openldap/slapd.conf -d 1
>@(#) $OpenLDAP: slapd 2.0.11-Release (Wed Jun 13 17:47:15 MDT 2001) $
> sullivan@random:/home/ss/ftp/openldap/tda/openldap-2.0.11/servers/slapd
>daemon_init: listen on ldap:///
>daemon_init: 1 listeners to open...
>ldap_url_parse_ext(ldap:///)
>daemon: socket() failed errno=97 (Address family not supported by protocol)
>daemon: initialized ldap:///
>daemon_init: 1 listeners opened
>slapd init: initiated server.
>slap_sasl_init: initialized!
>slapd startup: initiated.
>slapd starting
>
>
>And finally tried the ldapadd (this time with debug):
>
>/home/ss/ftp/openldap/tdi/bin/ldapadd -v -D "cn=Manager,dc=mathcom,dc=com" -w somesecret -f testa.ldif -d 1
>
>ldap_initialize( <DEFAULT> )
>ldap_create
>ldap_pvt_sasl_getmech
>ldap_search
>put_filter "(objectclass=*)"
>put_filter: simple
>put_simple_filter "objectclass=*"
>ldap_send_initial_request
>ldap_new_connection
>ldap_int_open_connection
>ldap_connect_to_host
>ldap_new_socket: 4
>ldap_prepare_socket: 4
>ldap_connect_to_host: Trying 127.0.0.1:389
>ldap_connect_timeout: fd: 4 tm: -1 async: 0
>ldap_ndelay_on: 4
>ldap_is_sock_ready: 4
>ldap_ndelay_off: 4
>ldap_int_sasl_open: random
>ldap_delayed_open successful, ld_host is (null)
>ldap_send_server_request
>ber_flush: 64 bytes to sd 4
>ldap_result msgid 1
>ldap_chkResponseList for msgid=1, all=1
>ldap_chkResponseList returns NULL
>wait4msg (infinite timeout), msgid 1
>wait4msg continue, msgid 1, all 1
>** Connections:
>* host: localhost port: 389 (default)
> refcnt: 2 status: Connected
> last used: Thu Jun 14 08:14:03 2001
>
>** Outstanding Requests:
> * msgid 1, origid 1, status InProgress
> outstanding referrals 0, parent count 0
>** Response Queue:
> Empty
>ldap_chkResponseList for msgid=1, all=1
>ldap_chkResponseList returns NULL
>do_ldap_select
>read1msg: msgid 1, all 1
>ber_get_next
>ber_get_next: tag 0x30 len 46 contents:
>ldap_read: message type search-entry msgid 1, original id 1
>wait4msg continue, msgid 1, all 1
>** Connections:
>* host: localhost port: 389 (default)
> refcnt: 2 status: Connected
> last used: Thu Jun 14 08:14:03 2001
>
>** Outstanding Requests:
> * msgid 1, origid 1, status InProgress
> outstanding referrals 0, parent count 0
>** Response Queue:
> * msgid 1, type 100
>ldap_chkResponseList for msgid=1, all=1
>ldap_chkResponseList returns NULL
>do_ldap_select
>read1msg: msgid 1, all 1
>ber_get_next
>ber_get_next: tag 0x30 len 12 contents:
>ldap_read: message type search-result msgid 1, original id 1
>ber_scanf fmt ({iaa) ber:
>read1msg: 0 new referrals
>read1msg: mark request completed, id = 1
>request 1 done
>res_errno: 0, res_error: <>, res_matched: <>
>ldap_free_request (origid 1, msgid 1)
>ldap_free_connection
>ldap_free_connection: refcnt 1
>adding response id 1 type 101:
>ldap_parse_result
>ber_scanf fmt ({iaa) ber:
>ber_scanf fmt (}) ber:
>ldap_get_values
>ber_scanf fmt ({x{{a) ber:
>ber_scanf fmt ([v]) ber:
>ldap_msgfree
>ldap_interactive_sasl_bind_s: server supports: GSSAPI
>ldap_int_sasl_bind: GSSAPI
>SASL/GSSAPI authentication started
>ldap_perror
>ldap_sasl_interactive_bind_s: Local error
>
>
>
>
>
>Meanwhile, the slapd window printed ...
>
>connection_get(9): got connid=3
>connection_read(9): checking for input on id=3
>ber_get_next
>ber_get_next: tag 0x30 len 62 contents:
>ber_get_next
>ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
>do_search
>ber_scanf fmt ({aiiiib) ber:
>ber_scanf fmt (o) ber:
>ber_scanf fmt ({v}}) ber:
>=> send_search_entry: ""
>ber_flush: 48 bytes to sd 9
><= send_search_entry
>send_ldap_result: conn=3 op=0 p=3
>send_ldap_response: msgid=1 tag=101 err=0
>ber_flush: 14 bytes to sd 9
>connection_get(9): got connid=3
>connection_read(9): checking for input on id=3
>ber_get_next
>ber_get_next on fd 9 failed errno=0 (Success)
>connection_read(9): input error=-2 id=3, closing.
>connection_closing: readying conn=3 sd=9 for close
>connection_close: conn=3 sd=9
>
>
>Many thanks for any help on getting this running!
>
>========================================
>Steve Sullivan sullivan@mathcom.com
>
> Mathcom Solutions, Inc.
> * Java, XML, and web oriented development.
> * Language development and translation.
> * Optimization, simulation, and mathematical modeling.
>
>http://www.mathcom.com 303-494-7115
>========================================