dropbear: add missing files

(From OE-Core rev: 4bc94f1896aad7f540ac520cd69edf3e96029319)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Koen Kooi 2011-09-02 09:08:38 +02:00 committed by Richard Purdie
parent 380f38cfdf
commit 9ba02cca0e
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#%PAM-1.0
auth include common-auth
account include common-account

View File

@ -0,0 +1,18 @@
dropbear: Change the path ("/etc/pam.d/sshd" as default) to find a pam configuration file \
to "/etc/pam.d/dropbear for dropbear when enabling pam supporting"
Upstream-Status: Inappropriate [configuration]
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
--- a/svr-authpam.c 2008-11-11 22:09:03.000000000 +0800
+++ b/svr-authpam.c.new 2011-08-29 09:53:24.000000000 +0800
@@ -199,7 +199,7 @@
userData.passwd = password;
/* Init pam */
- if ((rc = pam_start("sshd", NULL, &pamConv, &pamHandlep)) != PAM_SUCCESS) {
+ if ((rc = pam_start("dropbear", NULL, &pamConv, &pamHandlep)) != PAM_SUCCESS) {
dropbear_log(LOG_WARNING, "pam_start() failed, rc=%d, %s\n",
rc, pam_strerror(pamHandlep, rc));
goto cleanup;