Skip to Content.
Sympa Menu

freetds - Re: bug in login.c (latest version)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: bug in login.c (latest version)
  • Date: Tue, 3 Sep 2002 08:42:49 -0400 (EDT)


Check the freetds.conf file for "try domain logins", if not set there is a
bug in the configuration code.

Brian

On Tue, 3 Sep 2002, Thompson, Bill D (London) wrote:

> I guess my configuration must be setting "try_domain_login" to TRUE.
> How is this configured ?
>
> I know that James hit this same problem about 3 weeks ago and my suggested
> code fixed it for him too.
>
>
> > -----Original Message-----
> > From: Brian Bruns [SMTP:camber AT ais.org]
> > Sent: Tuesday, September 03, 2002 1:20 PM
> > To: TDS Development Group
> > Subject: [freetds] Re: bug in login.c (latest version)
> >
> > Spoke too quickly, I see that domains are keyed off HAVE_SSL now.
> >
> > DOMAIN should go. we should simply check HAVE_SSL (when setting
> > domain_login only) as there is no difference between the two.
> >
> > Brian
> >
> > On Tue, 3 Sep 2002, Bill Thompson wrote:
> >
> > > there's a bug in the latest version of login.c , in tds7_send_login()
> > >
> > > we seem to have left in reference to the variable domain_login instead
> > of
> > > using the #if DOMAIN precompiler directive. As the value of domain_login
> > > has been reversed, this has an adverse effect.
> > >
> > >
> > Itwasnteasytoseeastherewerenoblanklinestobreakupthecodeintoreadablechunks;
> > -)
> > >
> > >
> > >
> > > I have replaced the lines:
> > >
> > > tds7_ascii2unicode(tds,config->host_name, unicode_string, 255);
> > > tds_put_n(tds,unicode_string,host_name_len * 2);
> > > if (!domain_login) {
> > > tds7_ascii2unicode(tds,config->user_name, unicode_string, 255);
> > > tds_put_n(tds,unicode_string,user_name_len * 2);
> > > tds7_ascii2unicode(tds,config->password, unicode_string, 255);
> > > tds7_crypt_pass(unicode_string, password_len * 2, unicode_string);
> > > tds_put_n(tds,unicode_string,password_len * 2);
> > > }
> > > tds7_ascii2unicode(tds,config->app_name, unicode_string, 255);
> > >
> > > with:
> > >
> > > tds7_ascii2unicode(tds,config->host_name, unicode_string, 255);
> > > tds_put_n(tds,unicode_string,host_name_len * 2);
> > >
> > > #if DOMAIN
> > > /* Do Nothing */
> > > #else
> > > tds7_ascii2unicode(tds,config->user_name, unicode_string, 255);
> > > tds_put_n(tds,unicode_string,user_name_len * 2);
> > > tds7_ascii2unicode(tds,config->password, unicode_string, 255);
> > > tds7_crypt_pass(unicode_string, password_len * 2, unicode_string);
> > > tds_put_n(tds,unicode_string,password_len * 2);
> > > #endif
> > >
> > > tds7_ascii2unicode(tds,config->app_name, unicode_string, 255);
> > >
> > > And it did the business for me.
> > >
> > > Bill
> > >
> > > ---
> > > You are currently subscribed to freetds as: [camber AT ais.org]
> > > To unsubscribe, forward this message to
> > $subst('Email.Unsub')
> > >
> > >
> >
> >
> > ---
> > You are currently subscribed to freetds as: [thompbil AT exchange.uk.ml.com]
> > To unsubscribe, forward this message to
> > $subst('Email.Unsub')
>
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page