]> arthur.barton.de Git - netatalk.git/commitdiff
Set PAM_RUSER, some PAM module may need it (looking at you pam_smbpass!)
authorFrank Lahm <franklahm@googlemail.com>
Sat, 23 Jun 2012 13:10:41 +0000 (15:10 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Sat, 23 Jun 2012 13:10:41 +0000 (15:10 +0200)
etc/uams/uams_dhx2_pam.c

index 4c66a8732771f0a1803e285e0d726a8733ca9e64..b303f8fa71a5a23b8b6136f8196273e6e6309f33 100644 (file)
@@ -647,6 +647,7 @@ static int logincont2(void *obj_in, struct passwd **uam_pwd,
     /* solaris craps out if PAM_TTY and PAM_RHOST aren't set. */
     pam_set_item(pamh, PAM_TTY, "afpd");
     pam_set_item(pamh, PAM_RHOST, hostname);
+    pam_set_item(pamh, PAM_RUSER, PAM_username);
 
     PAM_error = pam_authenticate(pamh, 0);
     if (PAM_error != PAM_SUCCESS) {