freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Patch For sspi.c To Use Windows Authentication
- From: Ken Collins <ken AT metaskills.net>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Patch For sspi.c To Use Windows Authentication
- Date: Wed, 7 Nov 2012 07:48:41 -0500
Confirmed! The patch works, so please move it on in :)
- Ken
On Nov 4, 2012, at 5:26 AM, Frediano Ziglio <freddy77 AT gmail.com> wrote:
> Could you try this patch ?
>
> Frediano
>
>
> 2012/10/30 <ken AT metaskills.net>:
>>
>> Is this something you want me to forward on to the person that gave me
>> this patch before you would apply it? I can get them to join the list if
>> needed.
>>
>> - Ken
>>
>> On Oct 30, 2012, at 4:08 AM, Frediano Ziglio <freddy77 AT gmail.com> wrote:
>>
>>> Yes, I think your connection is using Kerberos. We have similar code
>>> even for gssapi (that provide Kerberos for the Unix world). It must be
>>> return tds_flush_packet(tds), not return status. Also you miss a
>>> CompleteAuthToken call on SEC_I_COMPLETE_AND_CONTINUE.
>>>
>>> Frediano
>>>
>>>
>>> 2012/10/29 <ken AT metaskills.net>:
>>>>
>>>> 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 mailing list
>>>> FreeTDS AT lists.ibiblio.org
>>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>> _______________________________________________
>>> FreeTDS mailing list
>>> FreeTDS AT lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
> <commit-cdf93ab>_______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 11/04/2012
- Re: [freetds] Patch For sspi.c To Use Windows Authentication, Ken Collins, 11/04/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Ken Collins, 11/07/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 11/07/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Ken Collins, 11/07/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 11/08/2012
- Re: [freetds] Patch For sspi.c To Use Windows Authentication, Ken Collins, 11/08/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 11/08/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Ken Collins, 11/07/2012
-
Re: [freetds] Patch For sspi.c To Use Windows Authentication,
Frediano Ziglio, 11/07/2012
Archive powered by MHonArc 2.6.24.