- adjust the login-specific bits for changes which were made for ftpd
This commit is contained in:
parent
8f7d649fe0
commit
dbbe71ef2d
@ -295,7 +295,7 @@ When enabled, ftpd, krshd, and login.krb5 gain dependence on libpam.
|
|||||||
if (pwd->pw_uid == 0)
|
if (pwd->pw_uid == 0)
|
||||||
--- /dev/null 2007-06-22 10:29:46.741860805 -0400
|
--- /dev/null 2007-06-22 10:29:46.741860805 -0400
|
||||||
+++ krb5-1.6.1/src/appl/bsd/pam.c 2007-06-22 14:22:10.000000000 -0400
|
+++ krb5-1.6.1/src/appl/bsd/pam.c 2007-06-22 14:22:10.000000000 -0400
|
||||||
@@ -0,0 +1,412 @@
|
@@ -0,0 +1,414 @@
|
||||||
+/*
|
+/*
|
||||||
+ * src/appl/bsd/pam.c
|
+ * src/appl/bsd/pam.c
|
||||||
+ *
|
+ *
|
||||||
@ -570,7 +570,9 @@ When enabled, ftpd, krshd, and login.krb5 gain dependence on libpam.
|
|||||||
+ &appl_pam_non_interactive_converse;
|
+ &appl_pam_non_interactive_converse;
|
||||||
+ memset(&args, 0, sizeof(args));
|
+ memset(&args, 0, sizeof(args));
|
||||||
+ args.user = strdup(login_username);
|
+ args.user = strdup(login_username);
|
||||||
+ args.password = strdup(non_interactive_password);
|
+ args.password = non_interactive_password ?
|
||||||
|
+ strdup(non_interactive_password) :
|
||||||
|
+ NULL;
|
||||||
+ appl_pam_conv.appdata_ptr = &args;
|
+ appl_pam_conv.appdata_ptr = &args;
|
||||||
+ ret = pam_start(service, login_username,
|
+ ret = pam_start(service, login_username,
|
||||||
+ &appl_pam_conv, &appl_pamh);
|
+ &appl_pam_conv, &appl_pamh);
|
||||||
|
Loading…
Reference in New Issue
Block a user