lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1118 - nss-pam-ldapd/pam

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1118 - nss-pam-ldapd/pam



Author: arthur
Date: Mon May 24 23:36:02 2010
New Revision: 1118
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1118

Log:
don't store use_authtok because pam_get_authtok() looks at the arguments itself

Modified:
   nss-pam-ldapd/pam/pam.c

Modified: nss-pam-ldapd/pam/pam.c
==============================================================================
--- nss-pam-ldapd/pam/pam.c     Sun May 23 23:26:16 2010        (r1117)
+++ nss-pam-ldapd/pam/pam.c     Mon May 24 23:36:02 2010        (r1118)
@@ -140,7 +140,6 @@
 struct pld_cfg {
   int use_first_pass;
   int try_first_pass;
-  int use_authtok;
   int no_warn;
   int ignore_unknown_user;
   int ignore_authinfo_unavail;
@@ -158,7 +157,6 @@
   /* initialise config with defaults */
   cfg->use_first_pass=0;
   cfg->try_first_pass=0;
-  cfg->use_authtok=0;
   cfg->no_warn=0;
   cfg->ignore_unknown_user=0;
   cfg->ignore_authinfo_unavail=0;
@@ -172,7 +170,7 @@
     else if (strcmp(argv[i],"try_first_pass")==0)
       cfg->try_first_pass=1;
     else if (strcmp(argv[i],"use_authtok")==0)
-      cfg->use_authtok=1;
+      /* ignore, this option is used by pam_get_authtok() internally */;
     else if (strcmp(argv[i], "no_warn")==0)
       cfg->no_warn=1;
     else if (strcmp(argv[i],"ignore_unknown_user")==0)
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits