diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-23 16:35:49 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-25 16:02:19 -0400 |
commit | f5397172fca9935c5f0867d7c13d71d29dc92c42 (patch) | |
tree | 02324cd40cc38ee32e71efe422d5fc79ad9fbe48 /src/providers/krb5/krb5_auth.c | |
parent | e365b7062f3ac03fb3fd56119cf513d3b394548e (diff) | |
download | sssd-f5397172fca9935c5f0867d7c13d71d29dc92c42.tar.gz sssd-f5397172fca9935c5f0867d7c13d71d29dc92c42.tar.xz sssd-f5397172fca9935c5f0867d7c13d71d29dc92c42.zip |
Allow arbitrary-length PAM messages
The PAM standard allows for messages of any length to be returned
to the client. We were discarding all messages of length greater
than 255. This patch dynamically allocates the message buffers so
we can pass the complete message.
This resolves https://fedorahosted.org/sssd/ticket/432
Diffstat (limited to 'src/providers/krb5/krb5_auth.c')
-rw-r--r-- | src/providers/krb5/krb5_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index ce3aacd82..880930a15 100644 --- a/src/providers/krb5/krb5_auth.c +++ b/src/providers/krb5/krb5_auth.c @@ -1091,7 +1091,7 @@ static void krb5_child_done(struct tevent_req *req) *msg_len)); if ((p + *msg_len) != len) { - DEBUG(1, ("message format error.\n")); + DEBUG(1, ("message format error [%d] != [%d].\n", p+*msg_len, len)); goto done; } |