Re: BCP/ISQL Trusted connection? [NC]
Cedric ROUVRAIS <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <OF083B4463.58B86ABB-ON8525765D.0070030A-8525765D.0071010D@us.world.socgen> |
Hi,
I am getting the following issue on a linux box:
bash-3.2$ bcp formdb..v_fxo_cre_posted out v_fxo_cre_posted.dat -c -t"|" -S
MSNYCRDFP01 -U '' -P ''
Msg 20002, Level 9
Adaptive Server connection failed
Can't connect to server "MSNYCRDFP01".
If I put my NT user account and password I get the following
bash-3.2$ bcp formdb..v_fxo_cre_posted out v_fxo_cre_posted.dat -c -t"|" -S
MSNYCRDFP01 -U 'NT_Domain\\NT_login' -P 'passwordOfAccount'
Msg 18452, Level 14, State 1
Server 'VSNYCINSQL30\MSNYCCRS01', Line 1
Login failed. The login is from an untrusted domain and cannot be
used with Windows authentication.
Msg 18452, Level 14
General SQL Server error: Check messages from the SQL Server
Msg 20002, Level 9
Adaptive Server connection failed
Can't connect to server "MSNYCRDFP01".
However if I type id
bash-3.2$ id
uid=35677(crouvrai)
Where crouvrai is in fact my NT login without the domain.
Thanks for any insight, I also forwarded your response to the unix dudes
who configured the server, they haven't come back yet.
Cedric
|------------------------------
| Frediano Ziglio
| <[email protected]
| om>
| Sent by:
| freetds-bounces@l
| ists.ibiblio.org
|
|
| 10/28/2009 05:54
| AM
|
|
| Please respond to
| FreeTDS
| Development Group
| <[email protected]
| iblio.org>
|
|
To
FreeTDS Development Group
<[email protected]>
cc
Subject
Re: [freetds] BCP/ISQL
Trusted connection? [NC]
2009/10/27 Cedric ROUVRAIS <[email protected]>:
> Just a FYI, when I try the following:
>
> bash-3.2$ bcp db..table out table.dat -S MSNYCACRT01 -U AME\\CRouvrai -P
''
> -c -t"|"
> Msg 18452, Level 14, State 1
> Server 'MPKASSQL02DV\MSNYCCRSD02', Line 1
> Login failed. The login is from an untrusted domain and cannot be
> used with Windows authentication.
> Msg 18452, Level 14
> General SQL Server error: Check messages from the SQL Server
>
> Msg 20002, Level 9
> Adaptive Server connection failed
>
> Can't connect to server "MSNYCACRT01".
>
> Thanks,
>
> Cedric
>
If "AME" is your domain, "CRouvrai" is your username and "" is your
password should work. Keep mind that windows use the account stored
when you login. To get similar behaviour under Unix you have to
configure kerberos support with pam saving account in your store. The
command in this case will be
bash-3.2$ bcp db..table out table.dat -S MSNYCACRT01 -U '' -P ''
freddy77
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
*************************************************************************
This message and any attachments (the "message") are confidential, intended
solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible
to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or
affiliates shall be liable for the message if altered, changed or falsified.
*************************************************************************