mirror of
git://git.gnu.org.ua/pam-modules.git
synced 2025-04-29 01:49:53 +03:00
Lots of fixes in pam_mysql
git-svn-id: file:///svnroot/pam-modules/trunk@61 56984be4-0537-0410-a56c-fcb268c96130
This commit is contained in:
parent
e49b98a296
commit
cf85e27af5
12 changed files with 1253 additions and 274 deletions
|
@ -307,7 +307,7 @@ read_config ()
|
|||
|
||||
line++;
|
||||
while (*p && isspace(*p))
|
||||
;
|
||||
p++;
|
||||
len = strlen(p);
|
||||
if (len == 0)
|
||||
continue;
|
||||
|
@ -340,6 +340,8 @@ read_config ()
|
|||
|
||||
for (p = env->name; *p && !isspace(*p); p++)
|
||||
;
|
||||
if (*p)
|
||||
*p++ = 0;
|
||||
for (; *p && isspace(*p); p++)
|
||||
;
|
||||
if (!*p) {
|
||||
|
@ -410,6 +412,20 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
|
|||
return retval;
|
||||
}
|
||||
|
||||
PAM_EXTERN
|
||||
int pam_sm_setcred(pam_handle_t *pamh, int flags,
|
||||
int argc, const char **argv)
|
||||
{
|
||||
return PAM_SUCCESS;
|
||||
}
|
||||
|
||||
PAM_EXTERN
|
||||
int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
|
||||
int argc, const char **argv)
|
||||
{
|
||||
return PAM_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef PAM_STATIC
|
||||
|
||||
/* static module data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue