<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic _hp_ldap_split_host_port(): host parsing failed, parameter error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292702#M734423</link>
    <description>When I try to setup the LDAP on HP to connect to a remote Directory Server. The "nsquery passwd user ldap" command always fails.&lt;BR /&gt;&lt;BR /&gt;Actually the ldapsearch works fine with anonymous bind.&lt;BR /&gt;&lt;BR /&gt;Here's the output to nsquery command:&lt;BR /&gt;-bash-3.00# nsquery passwd abc ldap&lt;BR /&gt;&lt;BR /&gt;Using "ldap" for the passwd policy.&lt;BR /&gt;Searching ldap for abc&lt;BR /&gt;This Name Service is currently unavailable&lt;BR /&gt;Switch configuration: Allows fallback&lt;BR /&gt;All name services have been searched&lt;BR /&gt;&lt;BR /&gt;The error messages in the log:&lt;BR /&gt;&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - getpwnam.c:401:getbynam():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:481:_hp_ldap_send_recv_query():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:374:_hp_ldap_client_init():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:193:_hp_ldap_client_cache_daemon_is_up():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:3040:_hp_ldap_init():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2160:_hp_ldap_bind_by_my_uid():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2271:_hp_ldap_bind_by_my_uid(): attempting&lt;BR /&gt; anonymous bind.&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:1371:_hp_ldap_simple_bind():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:229:_hp_ldap_client_poll():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:3175:_hp_ldap_split_host_port(): &lt;BR /&gt;host parsing failed, parameter error&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2285:_hp_ldap_bind_by_my_uid():&lt;BR /&gt;_hp_ldap_simple_bind(anonymous):Failure &lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2292:_hp_ldap_bind_by_my_uid(): Unable to&lt;BR /&gt;bind, returning failure.&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127.10 - connection.c:733:init_ldap_conn(): _hp_ldap_bind_by_m&lt;BR /&gt;y_uid()==-1 failed&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:193:_hp_ldap_client_cache_daemon_is_up():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127.10 - pw.c:60:get_pw_from_right_domain(): failed to get con&lt;BR /&gt;nection&lt;BR /&gt;Oct 23 12:44:57 tivhp11 syslog: pid:10127.10 - pw.c:297:get_new_pw_cache_entry(): failed to get conn&lt;BR /&gt;ection&lt;BR /&gt;Oct 23 12:44:57 tivhp11 pwgrd: pid:1174 - getpwnam.c:110:_query_daemon_pw(): ret_val =10, result=2&lt;BR /&gt;Oct 23 12:44:57 tivhp11 pwgrd: pid:1174 - getpwnam.c:416:getbynam(): result: 2&lt;BR /&gt;Oct 23 12:48:24 tivhp11 sm-mta[10574]: pid:10574 - getpwnam.c:208:_nss_ldap_pw_destr():&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated.&lt;BR /&gt;I'm stuck on this for weeks..&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Oct 2008 09:08:08 GMT</pubDate>
    <dc:creator>Binbin_1</dc:creator>
    <dc:date>2008-10-23T09:08:08Z</dc:date>
    <item>
      <title>_hp_ldap_split_host_port(): host parsing failed, parameter error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292702#M734423</link>
      <description>When I try to setup the LDAP on HP to connect to a remote Directory Server. The "nsquery passwd user ldap" command always fails.&lt;BR /&gt;&lt;BR /&gt;Actually the ldapsearch works fine with anonymous bind.&lt;BR /&gt;&lt;BR /&gt;Here's the output to nsquery command:&lt;BR /&gt;-bash-3.00# nsquery passwd abc ldap&lt;BR /&gt;&lt;BR /&gt;Using "ldap" for the passwd policy.&lt;BR /&gt;Searching ldap for abc&lt;BR /&gt;This Name Service is currently unavailable&lt;BR /&gt;Switch configuration: Allows fallback&lt;BR /&gt;All name services have been searched&lt;BR /&gt;&lt;BR /&gt;The error messages in the log:&lt;BR /&gt;&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - getpwnam.c:401:getbynam():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:481:_hp_ldap_send_recv_query():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:374:_hp_ldap_client_init():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:193:_hp_ldap_client_cache_daemon_is_up():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:3040:_hp_ldap_init():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2160:_hp_ldap_bind_by_my_uid():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2271:_hp_ldap_bind_by_my_uid(): attempting&lt;BR /&gt; anonymous bind.&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:1371:_hp_ldap_simple_bind():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:229:_hp_ldap_client_poll():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:3175:_hp_ldap_split_host_port(): &lt;BR /&gt;host parsing failed, parameter error&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2285:_hp_ldap_bind_by_my_uid():&lt;BR /&gt;_hp_ldap_simple_bind(anonymous):Failure &lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127 - ldap_common.c:2292:_hp_ldap_bind_by_my_uid(): Unable to&lt;BR /&gt;bind, returning failure.&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127.10 - connection.c:733:init_ldap_conn(): _hp_ldap_bind_by_m&lt;BR /&gt;y_uid()==-1 failed&lt;BR /&gt;Oct 23 12:44:56 tivhp11 pwgrd: pid:1174 - ldapd_client.c:193:_hp_ldap_client_cache_daemon_is_up():&lt;BR /&gt;Oct 23 12:44:56 tivhp11 syslog: pid:10127.10 - pw.c:60:get_pw_from_right_domain(): failed to get con&lt;BR /&gt;nection&lt;BR /&gt;Oct 23 12:44:57 tivhp11 syslog: pid:10127.10 - pw.c:297:get_new_pw_cache_entry(): failed to get conn&lt;BR /&gt;ection&lt;BR /&gt;Oct 23 12:44:57 tivhp11 pwgrd: pid:1174 - getpwnam.c:110:_query_daemon_pw(): ret_val =10, result=2&lt;BR /&gt;Oct 23 12:44:57 tivhp11 pwgrd: pid:1174 - getpwnam.c:416:getbynam(): result: 2&lt;BR /&gt;Oct 23 12:48:24 tivhp11 sm-mta[10574]: pid:10574 - getpwnam.c:208:_nss_ldap_pw_destr():&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated.&lt;BR /&gt;I'm stuck on this for weeks..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Oct 2008 09:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292702#M734423</guid>
      <dc:creator>Binbin_1</dc:creator>
      <dc:date>2008-10-23T09:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: _hp_ldap_split_host_port(): host parsing failed, parameter error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292703#M734424</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It sounds like the host name has not been configured in the DUAConfigProfile.  Could you perform the following steps for debugging:&lt;BR /&gt;&lt;BR /&gt;/opt/ldapux/config/display_profile_cache&lt;BR /&gt;&lt;BR /&gt;look for the host[:port] entry&lt;BR /&gt;&lt;BR /&gt;LDAP-UX Client Services&lt;BR /&gt;&lt;BR /&gt;Global Information from the Configuration Profile&lt;BR /&gt;=================================================&lt;BR /&gt;    host[:port]:          99.99.99.99:389 100.100.100.100:389&lt;BR /&gt;    default search base:  dc=cup,dc=hp,dc=com&lt;BR /&gt;    auth:                 simple&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Also try:&lt;BR /&gt;&lt;BR /&gt;more /etc/opt/ldapux/ldapux_profile.ldif&lt;BR /&gt;&lt;BR /&gt;version: 1&lt;BR /&gt;dn: cn=myprofile,dc=example,dc=com&lt;BR /&gt;profilettl: 3600&lt;BR /&gt;preferredserverlist: 99.99.99.99:389 100.100.100.100:389&lt;BR /&gt;objectClass: top&lt;BR /&gt;objectClass: duaconfigprofile&lt;BR /&gt;cn: myprofile&lt;BR /&gt;defaultsearchbase: dc=example,dc=com&lt;BR /&gt;bindtimelimit: 5&lt;BR /&gt;authenticationmethod: simple&lt;BR /&gt;attributemap: passwd:userpassword=*NULL*&lt;BR /&gt;attributemap: shadow:userpassword=*NULL*&lt;BR /&gt;attributemap: passwd:gecos=cn l telephonenumber&lt;BR /&gt;attributemap: group:memberUid=memberUid member uniqueMember&lt;BR /&gt;servicesearchdescriptor: printers:dc=example,dc=com?sub?(&amp;amp;(objectclass=printerlpr)(printer-location=43L*))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Oct 2008 20:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292703#M734424</guid>
      <dc:creator>Bob Neal-Joslin</dc:creator>
      <dc:date>2008-10-23T20:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: _hp_ldap_split_host_port(): host parsing failed, parameter error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292704#M734425</link>
      <description>Thank you, Bob!&lt;BR /&gt;I think you're right. &lt;BR /&gt;There're no host/port info in the output of display_profile_cache.&lt;BR /&gt;&lt;BR /&gt;-bash-3.00# ./display_profile_cache |more&lt;BR /&gt;&lt;BR /&gt;LDAP-UX Client Services&lt;BR /&gt;&lt;BR /&gt;Global Information from the Configuration Profile&lt;BR /&gt;=================================================&lt;BR /&gt;    host[:port]:&lt;BR /&gt;    default search base:&lt;BR /&gt;    auth:                 simple&lt;BR /&gt;    profilecachettl:      0 = infinite&lt;BR /&gt;    follow referrals:     enabled&lt;BR /&gt;    search time limit:    0 = no limit&lt;BR /&gt;    bind time limit:      0 = no limit&lt;BR /&gt;    credential level:     anonymous&lt;BR /&gt;&lt;BR /&gt;The ldapux_profiles.dlif seems ok:&lt;BR /&gt;&lt;BR /&gt;-bash-3.00#  more /etc/opt/ldapux/ldapux_profile.ldif&lt;BR /&gt;version: 1&lt;BR /&gt;dn: cn=profile1,ou=Profiles,dc=mydomain,dc=com&lt;BR /&gt;objectClass: top&lt;BR /&gt;objectClass: ldapsubentry&lt;BR /&gt;objectClass: nsroledefinition&lt;BR /&gt;objectClass: nssimpleroledefinition&lt;BR /&gt;objectClass: nsmanagedroledefinition&lt;BR /&gt;cn: profile1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So how shall I regonfiguer the host/port?&lt;BR /&gt;If I run the config/setup, the host/port is displayed correctly.&lt;BR /&gt;Is there some configure files I can modity to set this?&lt;BR /&gt;Thank you a lot!&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 00:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292704#M734425</guid>
      <dc:creator>Binbin_1</dc:creator>
      <dc:date>2008-10-24T00:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: _hp_ldap_split_host_port(): host parsing failed, parameter error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292705#M734426</link>
      <description>Some recently update:&lt;BR /&gt;-bash-3.00# ./get_profile_entry -o p.ldif&lt;BR /&gt;Modify p.ldif to add following lines;&lt;BR /&gt;preferredserverlist: 9.123.98.94:389&lt;BR /&gt;defaultsearchbase:dc=mydomain,dc=com&lt;BR /&gt;bindtimelimit:10&lt;BR /&gt;Then the content of p.ldif is like:&lt;BR /&gt;version: 1&lt;BR /&gt;dn: cn=profile1,ou=Profiles,dc=cn,dc=ibm,dc=com&lt;BR /&gt;preferredserverlist: 9.123.98.94:389&lt;BR /&gt;objectClass: top&lt;BR /&gt;objectClass: ldapsubentry&lt;BR /&gt;objectClass: nsroledefinition&lt;BR /&gt;objectClass: nssimpleroledefinition&lt;BR /&gt;objectClass: nsmanagedroledefinition&lt;BR /&gt;cn: profile1&lt;BR /&gt;defaultsearchbase:dc=myhost,dc=com&lt;BR /&gt;bindtimelimit:10&lt;BR /&gt;&lt;BR /&gt;Then I re-generate the cache file by:&lt;BR /&gt;-bash-3.00# ./create_profile_cache -i p.ldif&lt;BR /&gt;&lt;BR /&gt;Now the nsquery ldap works:&lt;BR /&gt;&lt;BR /&gt;-bash-3.00# nsquery passwd zhaobb ldap&lt;BR /&gt;&lt;BR /&gt;Using "ldap" for the passwd policy.&lt;BR /&gt;&lt;BR /&gt;Searching ldap for zhaobb&lt;BR /&gt;User name: zhaobb&lt;BR /&gt;User Id: 122&lt;BR /&gt;Group Id: 20&lt;BR /&gt;Gecos:&lt;BR /&gt;Home Directory: /home/zhaobb&lt;BR /&gt;Shell: /sbin/sh&lt;BR /&gt;&lt;BR /&gt;Switch configuration: Terminates Search&lt;BR /&gt;&lt;BR /&gt;I'm setting the PAM and will test if I can login to the hpux box with a ldap user.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 01:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ldap-split-host-port-host-parsing-failed-parameter-error/m-p/4292705#M734426</guid>
      <dc:creator>Binbin_1</dc:creator>
      <dc:date>2008-10-24T01:46:44Z</dc:date>
    </item>
  </channel>
</rss>

