[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem with pam_krb5 and semicolons



On Wed, Apr 25, 2001 at 08:37:23PM -0700, Greg Francis wrote:
>  default_tkt_enctypes = des-cbc-md5 ; or des-cbc-crc
>  default_tgs_enctypes = des-cbc-md5 ; or des-cbc-crc

The parser didn't recognize that ";" was a proper character for
starting comments, and the lexer was spitting them out on standard
output, which happened to be your connection.

A workaround is to replace the semicolons with hash marks ("#").
The fix is to replace the version of krb5conf.l in the source tree
with the attached version and recompile it.

Cheers,

Nalin
%{
#include "string.h"
#include "y.tab.c"
%}
%%
[[:blank:]]*			{};
[^[:blank:]#;\[\]{}=\n]*	{ yylval.sval = strdup(yytext); return STRING; };
\#.*				{};
\;.*				{};
=				{ return EQUALS; };
\n				{ xkrb5_conf_lineno++; return NEWLINE; };
\[				{ return SQUARELEFT; };
\]				{ return SQUARERIGHT; };
\{				{ return CURLYLEFT; };
\}				{ return CURLYRIGHT; };

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []