Hi, <div><br></div><div>After configured with --enable-pam and modified the option.h:</div><div><br></div><div>//#define ENABLE_SVR_PASSWORD_AUTH</div><div>#define ENABLE_SVR_PAM_AUTH</div>
<div><br></div><div>The Dropbear would be with the PAM functionality.</div><div><br></div><div>When I used the PAM module to pass the account login flow, but I got the message: &quot;Login attempt for nonexistent user&quot;. I know there should be a white list for most popular applications, I still think there is another way for convenience usage on Dropbear.</div>

<div><br></div><div>There is a patch for choose a system account for nonexistent user at PAM mode (The coding style of this patch may not good enough):</div><div><a href="https://github.com/changyy/dropbear-cmake/blob/master/dropbear-2013.58-pam-nonexistent-user-handle.patch">https://github.com/changyy/dropbear-cmake/blob/master/dropbear-2013.58-pam-nonexistent-user-handle.patch</a></div>

<div><br></div><div>$ /path/dropbear -h</div><div>...</div><div><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px;white-space:pre;background-color:rgb(221,255,221)">-c username        choose a system account for nonexistent user at PAM mode</span></div>

<div>...</div><div><br></div><div>$ cat /etc/pam.d/sshd</div><div>auth required /path/pam_myway.so</div><div>account required /path/pam_myway.so</div><div>$ /path/dropbear -p 222 -r /path/testkey -c root -E -F</div><div>
<br>
</div><div>If login account is nonexistent user, it would choose &quot;root&quot; account to use.</div><div><br></div><div>Best Regards, </div><div>Yuan-Yi Chang</div>