<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5973</bug_id>
          
          <creation_ts>2014-03-14 17:29:06 +0000</creation_ts>
          <short_desc>adding &apos;pam&apos; to DISTRO_FEATURES triggers openssh login error</short_desc>
          <delta_ts>2014-04-01 14:06:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41248</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-03-14 17:29:06 +0000</bug_when>
    <thetext>Tested with poky master:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a

Steps to reproduce:
1) add DISTRO_FEATURES_append = &quot; pam&quot; to local.conf
2) build an openssh image (ex: core-image-sato-sdk-qemux86-64)
3) boot the image (notice message during boot or proceed to step 4)
4) issue: /etc/init.d/sshd restart

Notice error:
&apos;Could not load host key: /etc/ssh/ssh_host_ed25519_key

NOTE: /etc/ssh/ does not contain this file
NOTE: This issue concides with the following 2 scenarios:
- when trying to connect to the host system using ssh, the user is prompted to enter a password, which should not be required because the image was built using EXTRA_IMAGE_FEATURES = &quot;debug-tweaks&quot;
- If we give the root user a password, the following error is received when trying to connect: &apos;Write failed: Broken pipe&apos;

NOTE: This issue affects core-image-lsb-* images as they have pam enabled by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41281</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-17 07:41:44 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Tested with poky master:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a
&gt; 
&gt; Steps to reproduce:
&gt; 1) add DISTRO_FEATURES_append = &quot; pam&quot; to local.conf
&gt; 2) build an openssh image (ex: core-image-sato-sdk-qemux86-64)
&gt; 3) boot the image (notice message during boot or proceed to step 4)
&gt; 4) issue: /etc/init.d/sshd restart
&gt; 
&gt; Notice error:
&gt; &apos;Could not load host key: /etc/ssh/ssh_host_ed25519_key
&gt; 


I tested the qemu sato-sdk image without pam feature support for 1.6 M4 rc1. The warning message also exists:
#################
root@qemumips:~# /etc/init.d/sshd restart
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Restarting OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 508)
Could not load host key: /etc/ssh/ssh_host_ed25519_key
.
#################



&gt; NOTE: /etc/ssh/ does not contain this file
&gt; NOTE: This issue concides with the following 2 scenarios:
&gt; - when trying to connect to the host system using ssh, the user is prompted
&gt; to enter a password, which should not be required because the image was
&gt; built using EXTRA_IMAGE_FEATURES = &quot;debug-tweaks&quot;
&gt; - If we give the root user a password, the following error is received when
&gt; trying to connect: &apos;Write failed: Broken pipe&apos;
&gt; 


Looks this issue is introduced by commit 40f3e48947883fc18edbdef6e043e53d441afeb1


&gt; NOTE: This issue affects core-image-lsb-* images as they have pam enabled by
&gt; default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41283</commentid>
    <comment_count>2</comment_count>
    <who name="Koen Kooi">koen</who>
    <bug_when>2014-03-17 07:51:29 +0000</bug_when>
    <thetext>Actually 10cdd66fe800cffe3f2cbf5c95550b4f7902a311 broke the no-passwd login. FWIW 40f3e48947883fc18edbdef6e043e53d441afeb1 is not a valid oe-core commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41300</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-03-17 09:30:38 +0000</bug_when>
    <thetext>Status update:
- changed name to represent only the login error when using &quot;pam&quot; issue
- opened bug 5983 for the openssh &quot;Could not load host key&quot; issue
- reverting poky commit 40f3e48947883fc18edbdef6e043e53d441afeb1 &quot;solves&quot; the issue but is not a fix. That will simply disable pam with openssh. We need a patch that correctly enables this, or give up completely on this feature.

NOTE: If a fast fix is not possible, we should revert this patch in order to allow us to test lsb images over ssh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41585</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-21 18:06:52 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e2d24f517206f6b8d9767c5d6d24795be5969a96

(Koen: 40f3e48947883fc18edbdef6e043e53d441afeb1 is a valid poky commit, but you already knew that...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42034</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-04-01 14:06:22 +0000</bug_when>
    <thetext>Verified in poky master:8210928e847fda7dbc145a94372b0beaf653a4f9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>