components/perl_modules/authen-pam/patches/01-solaris.patch
changeset 1360 ed2174a87b88
equal deleted inserted replaced
1359:0d0ad1e7bd3f 1360:ed2174a87b88
       
     1 This patch addes pam_chauthtok(3PAM) and PAM_NO_AUTHTOK_CHECK features.
       
     2 Also refer to pam_authtok_check(5).
       
     3 
       
     4 --- /usr/tmp/clean/Authen-PAM-0.16/PAM.xs	Thu Jun 30 11:16:30 2005
       
     5 +++ Authen-PAM-0.16/PAM.xs	Fri Apr  7 10:57:51 2006
       
     6 @@ -292,6 +292,12 @@
       
     7        #else
       
     8  	  goto not_there;
       
     9        #endif
       
    10 +      else if (strcmp(name, "NO_AUTHTOK_CHECK") == 0)
       
    11 +      #if defined(HAVE_PAM_NO_AUTHTOK_CHECK)
       
    12 +	  return PAM_NO_AUTHTOK_CHECK;
       
    13 +      #else
       
    14 +	  goto not_there;
       
    15 +      #endif
       
    16        else if (strcmp(name, "MODULE_UNKNOWN") == 0)
       
    17        #if defined(HAVE_PAM_MODULE_UNKNOWN)  /* Linux-PAM only */
       
    18  	  return PAM_MODULE_UNKNOWN;
       
    19 --- /usr/tmp/clean/Authen-PAM-0.16/PAM.pm.in	Thu Jun 30 11:10:14 2005
       
    20 +++ Authen-PAM-0.16/PAM.pm.in	Fri Apr  7 10:57:51 2006
       
    21 @@ -49,6 +49,7 @@
       
    22  
       
    23  	PAM_ESTABLISH_CRED PAM_DELETE_CRED PAM_REINITIALIZE_CRED
       
    24  	PAM_REFRESH_CRED PAM_CHANGE_EXPIRED_AUTHTOK
       
    25 +	PAM_NO_AUTHTOK_CHECK
       
    26  
       
    27  	PAM_PROMPT_ECHO_OFF PAM_PROMPT_ECHO_ON PAM_ERROR_MSG
       
    28  	PAM_TEXT_INFO PAM_RADIO_TYPE PAM_BINARY_PROMPT
       
    29 @@ -163,6 +164,12 @@
       
    30      return _pam_start($_[0], $_[1], \&pam_default_conv, $_[2]) if @_ == 3;
       
    31      return _pam_start($_[0], undef, \&pam_default_conv, $_[1]) if @_ == 2;
       
    32      croak("Wrong number of arguments in pam_start function");
       
    33 +}
       
    34 +
       
    35 +sub pam_chauthtok {
       
    36 +    return _pam_chauthtok(@_) if @_ == 2;
       
    37 +    return _pam_chauthtok($_[0], 0) if @_ == 1;
       
    38 +    croak("Wrong number of arguments in pam_chauthtok function");
       
    39  }
       
    40  
       
    41  # Autoload methods go after =cut, and are processed by the autosplit program.
       
    42 --- /usr/tmp/clean/Authen-PAM-0.16/PAM_config.h.in	Mon Jun  6 14:29:13 2005
       
    43 +++ Authen-PAM-0.16/PAM_config.h.in	Fri Apr  7 10:57:51 2006
       
    44 @@ -60,6 +60,9 @@
       
    45  /* Is the symbol PAM_REINITIALIZE_CRED defined? */
       
    46  #undef HAVE_PAM_REINITIALIZE_CRED
       
    47  
       
    48 +/* Is the symbol PAM_NO_AUTHTOK_CHECK defined? */
       
    49 +#undef HAVE_PAM_NO_AUTHTOK_CHECK
       
    50 +
       
    51  /* pam_appl.h in /usr/include/security */
       
    52  #undef HAVE_SECURITY_PAM_APPL_H
       
    53  
       
    54 --- /usr/tmp/clean/Authen-PAM-0.16/configure.ac	Thu Jun 30 11:25:59 2005
       
    55 +++ Authen-PAM-0.16/configure.ac	Fri Apr  7 10:57:51 2006
       
    56 @@ -75,6 +75,7 @@
       
    57  AC_CHECK_PAM_CONST(PAM_MODULE_UNKNOWN)
       
    58  AC_CHECK_PAM_CONST(PAM_RADIO_TYPE)
       
    59  AC_CHECK_PAM_CONST(PAM_BINARY_PROMPT)
       
    60 +AC_CHECK_PAM_CONST(PAM_NO_AUTHTOK_CHECK)
       
    61  
       
    62  # Checks if the dl library supports the RTLD_GLOBAL flag
       
    63  # but only if perl was compiled with the dl_open library