Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #94 from kyeongy/master
Browse files Browse the repository at this point in the history
Do not set password for ASCII login
  • Loading branch information
pprindeville authored Jun 15, 2017
2 parents 773a1ca + 73bc22a commit 11ac166
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libtac/lib/authen_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ int tac_authen_send(int fd, const char *user, const char *pass, const char *tty,
tb.authen_type = TAC_PLUS_AUTHEN_TYPE_PAP;
}
}

/* data field is not used in ASCII login */
if (tb.authen_type == TAC_PLUS_AUTHEN_TYPE_ASCII) {
token_len = 0;
}

tb.service = tac_authen_service;
tb.user_len = user_len;
tb.port_len = port_len;
Expand Down

0 comments on commit 11ac166

Please sign in to comment.