patches/authen-pam-01-solaris.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 9397 b16e349d18c5
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
--- /usr/tmp/clean/Authen-PAM-0.16/PAM.xs	Thu Jun 30 11:16:30 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
+++ Authen-PAM-0.16/PAM.xs	Fri Apr  7 10:57:51 2006
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
@@ -292,6 +292,12 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
       #else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
 	  goto not_there;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
       #endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
+      else if (strcmp(name, "NO_AUTHTOK_CHECK") == 0)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
+      #if defined(HAVE_PAM_NO_AUTHTOK_CHECK)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
+	  return PAM_NO_AUTHTOK_CHECK;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
+      #else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
+	  goto not_there;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
+      #endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
       else if (strcmp(name, "MODULE_UNKNOWN") == 0)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
       #if defined(HAVE_PAM_MODULE_UNKNOWN)  /* Linux-PAM only */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
 	  return PAM_MODULE_UNKNOWN;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
--- /usr/tmp/clean/Authen-PAM-0.16/PAM.pm.in	Thu Jun 30 11:10:14 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
+++ Authen-PAM-0.16/PAM.pm.in	Fri Apr  7 10:57:51 2006
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
@@ -49,6 +49,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
 	PAM_ESTABLISH_CRED PAM_DELETE_CRED PAM_REINITIALIZE_CRED
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
 	PAM_REFRESH_CRED PAM_CHANGE_EXPIRED_AUTHTOK
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
+	PAM_NO_AUTHTOK_CHECK
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
 	PAM_PROMPT_ECHO_OFF PAM_PROMPT_ECHO_ON PAM_ERROR_MSG
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
 	PAM_TEXT_INFO PAM_RADIO_TYPE PAM_BINARY_PROMPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
@@ -163,6 +164,12 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
     return _pam_start($_[0], $_[1], \&pam_default_conv, $_[2]) if @_ == 3;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
     return _pam_start($_[0], undef, \&pam_default_conv, $_[1]) if @_ == 2;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
     croak("Wrong number of arguments in pam_start function");
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
+}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
+
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
+sub pam_chauthtok {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
+    return _pam_chauthtok(@_) if @_ == 2;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
+    return _pam_chauthtok($_[0], 0) if @_ == 1;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
+    croak("Wrong number of arguments in pam_chauthtok function");
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
 }
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
 # Autoload methods go after =cut, and are processed by the autosplit program.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
--- /usr/tmp/clean/Authen-PAM-0.16/PAM_config.h.in	Mon Jun  6 14:29:13 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
+++ Authen-PAM-0.16/PAM_config.h.in	Fri Apr  7 10:57:51 2006
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
@@ -60,6 +60,9 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
 /* Is the symbol PAM_REINITIALIZE_CRED defined? */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
 #undef HAVE_PAM_REINITIALIZE_CRED
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
+/* Is the symbol PAM_NO_AUTHTOK_CHECK defined? */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
+#undef HAVE_PAM_NO_AUTHTOK_CHECK
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
+
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
 /* pam_appl.h in /usr/include/security */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
 #undef HAVE_SECURITY_PAM_APPL_H
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
--- /usr/tmp/clean/Authen-PAM-0.16/configure.ac	Thu Jun 30 11:25:59 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
+++ Authen-PAM-0.16/configure.ac	Fri Apr  7 10:57:51 2006
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
@@ -75,6 +75,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
 AC_CHECK_PAM_CONST(PAM_MODULE_UNKNOWN)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
 AC_CHECK_PAM_CONST(PAM_RADIO_TYPE)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
 AC_CHECK_PAM_CONST(PAM_BINARY_PROMPT)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
+AC_CHECK_PAM_CONST(PAM_NO_AUTHTOK_CHECK)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
 # Checks if the dl library supports the RTLD_GLOBAL flag
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
 # but only if perl was compiled with the dl_open library