freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] Patch For sspi.c To Use Windows Authentication
- From: ken AT metaskills.net
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: [freetds] Patch For sspi.c To Use Windows Authentication
- Date: Mon, 29 Oct 2012 09:08:14 -0400
A user on my TinyTDS/SQLServer list reported this bug with FreeTDS. They
could not get Windows authentication to work and had to make the following
change to sspi.c
> free(auth_buf);
> // code added start
> if (status == SEC_I_COMPLETE_AND_CONTINUE || status ==
> SEC_I_CONTINUE_NEEDED) {
> if (out_buf.cbBuffer > 0)
> {
> tds_put_n(tds, auth->tds_auth.packet, out_buf.cbBuffer);
> tds_flush_packet(tds);
> return status;
> }
> }
> // code added end
> if (status != SEC_E_OK)
> return TDS_FAIL;
After that change, they got Windows authentication working and saw the
following FreeTDS debug info.
> AUTH
> ENVCHANGE
> INFO
> ENVCHANGE
> ENVCHANGE
> INFO
> LOGINACK
> ENVCHANGE
> DONE
> Finally, there is the LOGINACK and DONE tokens : )
Opinions on doing this patch?
- Ken
-
[freetds] Patch For sspi.c To Use Windows Authentication,
ken, 10/29/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 10/30/2012
- Re: [freetds] Patch For sspi.c To Use Windows Authentication, ken, 10/30/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 10/30/2012
Archive powered by MHonArc 2.6.24.