<?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 Re: SSH + LDAP = frustrated admin! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969421#M417508</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;What does /etc/nssswitch.conf look like?&lt;BR /&gt;&lt;BR /&gt;If you don't feel it would violate security, can you upload pam.conf ?&lt;BR /&gt;&lt;BR /&gt;tail -f /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Try a login with ssh.&lt;BR /&gt;&lt;BR /&gt;Post the output you see.&lt;BR /&gt;&lt;BR /&gt;Some links that may help.&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980901" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980901&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5990-7245/5990-7245.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5990-7245/5990-7245.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/6965/pam_authz_for_policy_wp_2_3.pdf" target="_blank"&gt;http://docs.hp.com/en/6965/pam_authz_for_policy_wp_2_3.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;the Pam Kerebos depot may not be installed. You need v5 to work with windows or you need to patch windows to work with v5.&lt;BR /&gt;&lt;BR /&gt;LDAP doc:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/J4269-90052/J4269-90052.pdf" target="_blank"&gt;http://docs.hp.com/en/J4269-90052/J4269-90052.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Until I see the diagnostics I requested, I think the scope of the problem is too broad to be more specific. Hence my shotgun approach.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 23 Mar 2006 15:01:58 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-03-23T15:01:58Z</dc:date>
    <item>
      <title>SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969420#M417507</link>
      <description>I've beat myself up over this for the past several hours to no avail - I MUST be missing something obvious... hopefully someone can point me in the right direction.&lt;BR /&gt;&lt;BR /&gt;Scenario:&lt;BR /&gt;Win2K3 AD server hosting users we wish to authenticate via LDAP to our HPUX boxen.  Via telnet, works great!  SSH, not so much.  :-(&lt;BR /&gt;&lt;BR /&gt;I've horked around in the pam.conf file and got the LDAP user to authenticate, and my local user to authenticate via public-key, but password auth fails for any local users when that's enabled.  Basically I took the sample lines out of pam.ldap and integrated them into my existing pam.conf for the service OTHER in all categories.&lt;BR /&gt;&lt;BR /&gt;I think what I'm missing is a 'correct' set of lines for my /etc/pam.conf - can someone using LDAP &amp;amp; SSH post a snippet of theirs?  &lt;BR /&gt;&lt;BR /&gt;SSH does have UsePAM to YES.  The current pam.conf is basically the pam.krb5 example.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 23 Mar 2006 14:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969420#M417507</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-23T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969421#M417508</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;What does /etc/nssswitch.conf look like?&lt;BR /&gt;&lt;BR /&gt;If you don't feel it would violate security, can you upload pam.conf ?&lt;BR /&gt;&lt;BR /&gt;tail -f /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Try a login with ssh.&lt;BR /&gt;&lt;BR /&gt;Post the output you see.&lt;BR /&gt;&lt;BR /&gt;Some links that may help.&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980901" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980901&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5990-7245/5990-7245.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5990-7245/5990-7245.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/6965/pam_authz_for_policy_wp_2_3.pdf" target="_blank"&gt;http://docs.hp.com/en/6965/pam_authz_for_policy_wp_2_3.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;the Pam Kerebos depot may not be installed. You need v5 to work with windows or you need to patch windows to work with v5.&lt;BR /&gt;&lt;BR /&gt;LDAP doc:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/J4269-90052/J4269-90052.pdf" target="_blank"&gt;http://docs.hp.com/en/J4269-90052/J4269-90052.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Until I see the diagnostics I requested, I think the scope of the problem is too broad to be more specific. Hence my shotgun approach.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Mar 2006 15:01:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969421#M417508</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-23T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969422#M417509</link>
      <description>nsswitch:&lt;BR /&gt;passwd:       files [NOTFOUND=continue] ldap&lt;BR /&gt;#group:        files [NOTFOUND=continue] ldap&lt;BR /&gt;group:        files ldap&lt;BR /&gt;hosts:        files dns ldap&lt;BR /&gt;networks:     files ldap&lt;BR /&gt;protocols:    files ldap&lt;BR /&gt;rpc:          files ldap&lt;BR /&gt;publickey:    ldap [NOTFOUND=continue] files&lt;BR /&gt;netgroup:     files ldap&lt;BR /&gt;automount:    files ldap&lt;BR /&gt;aliases:      files ldap&lt;BR /&gt;services:     files ldap&lt;BR /&gt;&lt;BR /&gt;Pam.conf (top two sections):&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Authentication management&lt;BR /&gt;#&lt;BR /&gt;login      auth sufficient   /usr/lib/security/libpam_krb5.1&lt;BR /&gt;login      auth required     /usr/lib/security/libpam_unix.1 try_first_pass&lt;BR /&gt;su         auth sufficient   /usr/lib/security/libpam_krb5.1&lt;BR /&gt;su         auth required     /usr/lib/security/libpam_unix.1 try_first_pass&lt;BR /&gt;dtlogin    auth sufficient   /usr/lib/security/libpam_krb5.1&lt;BR /&gt;dtlogin    auth required     /usr/lib/security/libpam_unix.1 try_first_pass&lt;BR /&gt;dtaction   auth sufficient   /usr/lib/security/libpam_krb5.1&lt;BR /&gt;dtaction   auth required     /usr/lib/security/libpam_unix.1 try_first_pass&lt;BR /&gt;ftp        auth sufficient   /usr/lib/security/libpam_krb5.1&lt;BR /&gt;ftp        auth required     /usr/lib/security/libpam_unix.1 try_first_pass&lt;BR /&gt;OTHER      auth required     /usr/lib/security/libpam_unix.1&lt;BR /&gt;#OTHER    auth sufficient        /usr/lib/security/libpam_unix.1&lt;BR /&gt;#OTHER    auth required  /usr/lib/security/libpam_ldap.1 try_first_pass&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Account management&lt;BR /&gt;#&lt;BR /&gt;login      account required    /usr/lib/security/libpam_authz.1 debug&lt;BR /&gt;login      account sufficient  /usr/lib/security/libpam_krb5.1&lt;BR /&gt;login      account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;su         account sufficient  /usr/lib/security/libpam_krb5.1&lt;BR /&gt;su         account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;dtlogin    account sufficient  /usr/lib/security/libpam_krb5.1&lt;BR /&gt;dtlogin    account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;dtaction   account sufficient  /usr/lib/security/libpam_krb5.1&lt;BR /&gt;dtaction   account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;ftp        account sufficient  /usr/lib/security/libpam_krb5.1&lt;BR /&gt;ftp        account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;OTHER      account required    /usr/lib/security/libpam_unix.1&lt;BR /&gt;#OTHER    account sufficient     /usr/lib/security/libpam_unix.1&lt;BR /&gt;#OTHER    account required       /usr/lib/security/libpam_ldap.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As for syslog - we get one of two things:&lt;BR /&gt;Mar 23 14:13:28 xxxxxxx registrar[21120]: allowed connection from xxxxxxxxxx&lt;BR /&gt;Mar 23 14:13:33 xxxxxxx sshd[21118]: user2netname: unknown nameservice ^I^I^I^I^Ifor publickey info 'ldap'&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Mar 23 14:25:52 xxxxxx syslog: pid:19254.12 - pam_request.c:146:process_pam_ldap_request(): _hp_ldap_bind_ux() failed, err=-2&lt;BR /&gt;&lt;BR /&gt;depending on which lines are enabled/disabled in pam.conf.  The config you see above represents a starting point where SSH does not authenticate the LDAP user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We have PAM kerberos 5 installed - it works great authenticating LDAP users via telnet and whatnot - but SSH is the problem child.  &lt;BR /&gt;&lt;BR /&gt;More detail:  We are using HP Secure Shell 4.20.x on 11.11.  Here's the package versions of kerberos and pam:&lt;BR /&gt;J5849AA       11.11.13     PAM-Kerberos and Kerberos Support&lt;BR /&gt;KRB5CLIENT    C.1.3.5.03   Kerberos V5 Client Version 1.3.5.03&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 23 Mar 2006 15:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969422#M417509</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-23T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969423#M417510</link>
      <description>An excellent response.&lt;BR /&gt;&lt;BR /&gt;Now I need an error code from syslog. It might help.&lt;BR /&gt;&lt;BR /&gt;I'll think some more on this and wait for the error code.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Mar 2006 15:27:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969423#M417510</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-23T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969424#M417511</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Attached is a pam.conf that works for us using SSH with LDAP.&lt;BR /&gt;&lt;BR /&gt;One of the keys for proper account management when PAM, SSH &amp;amp; LDAP are in play is the libpam_authz PAM module.&lt;BR /&gt;&lt;BR /&gt;Get on docs.hp.com for details on just what libpam_authz does &amp;amp; can do.&lt;BR /&gt;&lt;BR /&gt;Also in your SSH sshd_config file make sure you have&lt;BR /&gt;&lt;BR /&gt;UsePAM yes&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 23 Mar 2006 15:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969424#M417511</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-03-23T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969425#M417512</link>
      <description>Steve-&lt;BR /&gt;&lt;BR /&gt;I did post the messages from syslog above - error code returned in one instance was "-2" from _hp_ldap_bind_ux()...  Is there additional data you would like to see?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 16:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969425#M417512</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-23T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969426#M417513</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Missed your error message. Its late here. &lt;BR /&gt;&lt;BR /&gt;This thread comes up on that issue:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685443" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685443&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;At least it has the same error text. Actully, I think Jeff may have presented you with a solution, I recommend reading his post carefully and checking into his suggestions.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Mar 2006 17:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969426#M417513</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-23T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969427#M417514</link>
      <description>Jeff/Steve - thanks for all the input.  The 'complicater' in this instance, is that we use basically the pam.krb5 template.  I did some fiddling in my pam.conf after looking at Jeff's sample; and lo and behold I am having 'more' success now.&lt;BR /&gt;&lt;BR /&gt;Current scenario is:&lt;BR /&gt;LDAP users authenticate over SSH as well as local users via PublicKey.  LOCAL users who try to auth with the trusted-system password fail with messages I've not seen before.&lt;BR /&gt;&lt;BR /&gt;Here's a person using SSH and their local password:&lt;BR /&gt;Mar 24 14:13:37 xxxxx sshd[4351]: [No account present for user] Password not valid&lt;BR /&gt;Mar 24 14:13:37 xxxxx sshd[4351]: user2netname: unknown nameservice ^I^I^I^I^Ifor publickey info 'ldap'&lt;BR /&gt;Mar 24 14:13:37 xxxxx sshd[4351]:  query daemon return failure status 7&lt;BR /&gt;Mar 24 14:13:37 xxxxx sshd[4351]: unrecognized option [rcommand]&lt;BR /&gt;Mar 24 14:13:37 xxxxx sshd[4351]: error: PAM: No account present for user for xxxxxx from xxxxxxxxxxx&lt;BR /&gt;&lt;BR /&gt;Now just to make sure things are on the up-and-up, I jettisoned the krb5 version of pam.conf, and stuck in the vanilla pam.conf.trusted file (pretty much what Jeff is using, it appears).  PRESTO.  All auths work!  However, I get this bizarre message in syslog when logging in via telnet as local user:&lt;BR /&gt;&lt;BR /&gt;Mar 24 14:23:31 xxxxx login: user2netname: unknown nameservice ^I^I^I^I^Ifor publickey info 'ldap'&lt;BR /&gt;&lt;BR /&gt;Looks like there's some control chars embedded in a config file somewhere, but I'll be darned if I can find 'em.&lt;BR /&gt;&lt;BR /&gt;Now the kicker - how would you suggest I adapt this 'working' scenario to "kerberize" it?  I need to get away from doing plaintext LDAP traffic on the LAN...</description>
      <pubDate>Fri, 24 Mar 2006 14:30:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969427#M417514</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-24T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969428#M417515</link>
      <description>&lt;SHEEPISH grin=""&gt;&lt;BR /&gt;&lt;BR /&gt;Well after a weekend of *not* thinking about my issue... I revisited it this morning.&lt;BR /&gt;&lt;BR /&gt;That goofy publickey message regarding LDAP was a result of nsswitch.conf... invalid entries.&lt;BR /&gt;&lt;BR /&gt;And - I just went through and changed my new 'good' pam.conf and replaced _ldap with _krb5... Presto!  Traffic is now encrypted back to the Active Directory server!&lt;BR /&gt;&lt;BR /&gt;Ugh - had I taken this route initially I would have avoided a lot of confusion.  It appears that the only differences are in a couple of lines from what I started with when I began last week.&lt;BR /&gt;&lt;BR /&gt;I appreciate the info - (good links!) and thanks!&lt;/SHEEPISH&gt;</description>
      <pubDate>Mon, 27 Mar 2006 11:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969428#M417515</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-27T11:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: SSH + LDAP = frustrated admin!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969429#M417516</link>
      <description>(closing)</description>
      <pubDate>Mon, 27 Mar 2006 11:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-ldap-frustrated-admin/m-p/4969429#M417516</guid>
      <dc:creator>Eric Yruegas</dc:creator>
      <dc:date>2006-03-27T11:55:55Z</dc:date>
    </item>
  </channel>
</rss>

