Ignore:
Timestamp:
Mar 12, 2008, 9:08:18 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.28a

Location:
branches/samba-3.0/source/pam_smbpass
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/pam_smbpass/pam_smb_acct.c

    r1 r124  
    7171        }
    7272
     73        if (geteuid() != 0) {
     74                _log_err(pamh, LOG_DEBUG, "Cannot access samba password database, not running as root.");
     75                return PAM_AUTHINFO_UNAVAIL;
     76        }
     77
    7378        /* Getting into places that might use LDAP -- protect the app
    7479                from a SIGPIPE it's not expecting */
  • branches/samba-3.0/source/pam_smbpass/pam_smb_auth.c

    r1 r124  
    100100        if (on( SMB_DEBUG, ctrl )) {
    101101                _log_err( LOG_DEBUG, "username [%s] obtained", name );
     102        }
     103
     104        if (geteuid() != 0) {
     105                _log_err(pamh, LOG_DEBUG, "Cannot access samba password database, not running as root.");
     106                retval = PAM_AUTHINFO_UNAVAIL;
     107                AUTH_RETURN;
    102108        }
    103109
  • branches/samba-3.0/source/pam_smbpass/pam_smb_passwd.c

    r1 r124  
    126126    }
    127127
     128    if (geteuid() != 0) {
     129        _log_err(pamh, LOG_DEBUG, "Cannot access samba password database, not running as root.");
     130        return PAM_AUTHINFO_UNAVAIL;
     131    }
     132
    128133    /* Getting into places that might use LDAP -- protect the app
    129134       from a SIGPIPE it's not expecting */
Note: See TracChangeset for help on using the changeset viewer.