PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

asp.net and oracle 8i connection problem

 
 
saleryan
Guest
Posts: n/a
 
      16th Dec 2005
hi..
i'm trying to connect to oracle 8.1.7 in asp.net using integrated security
but i'm always getting a ora 01017 invalid username/password. logon denied
message. my web application is running on iis on windows xp professional.

This is my connection string: data Source=bankiby;integrated security=yes"
i set SQLNET.AUTHENTICATION_SERVICES= (NTS,NONE) and added users to be
identified externally and i set the remote_os_authent=TRUE..

I am able to login through the server with no problems but when i try to
login through a client computer to my web application i get the message ora
01017.



Any suggestions?


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      19th Dec 2005
On Sat, 17 Dec 2005 00:47:06 +0300, "saleryan" <(E-Mail Removed)> wrote:

¤ hi..
¤ i'm trying to connect to oracle 8.1.7 in asp.net using integrated security
¤ but i'm always getting a ora 01017 invalid username/password. logon denied
¤ message. my web application is running on iis on windows xp professional.
¤
¤ This is my connection string: data Source=bankiby;integrated security=yes"
¤ i set SQLNET.AUTHENTICATION_SERVICES= (NTS,NONE) and added users to be
¤ identified externally and i set the remote_os_authent=TRUE..
¤
¤ I am able to login through the server with no problems but when i try to
¤ login through a client computer to my web application i get the message ora
¤ 01017.
¤

Is Oracle installed on your web server or on a remote machine?


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
saleryan
Guest
Posts: n/a
 
      22nd Dec 2005
Oracle is installed on my web server. I'm using oracle administration
assistant for windows NT to define external OS users and I set the
impersonate tag in the web.config file to true. I also noticed that if I
change the impersonate tag in web.config file to False and I added the
aspNET user to oracle as an external user then it works fine. But that
doesn't work when I set the impersonate to true and define my own users.

Seems to me something wrong is happening while passing the username or
password from asp.net to oracle. I checked several times that the user
being passed to oracle is the same user that is defined as an external user
in oracle. I used the following code:
Dim user1 As WindowsPrincipal = HttpContext.Current.User
LblWelcome.Text = "Welcome " + user1.Identity.Name()
The user thats printed everytime is the same as the oracle user defined
externally..
I'm using windows xp professional on both my webserver and client do you
think that could be the problem? That maybe I should use windows NT on my
webserver? If anyone has experience using windows integrated security with
oracle 8.1.7. Please help me here.. Microsoft recommends it but I don't see
any help files explaining the exact configurations on oracle and asp.net..

Thanks




"Paul Clement" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sat, 17 Dec 2005 00:47:06 +0300, "saleryan" <(E-Mail Removed)> wrote:
>
> ¤ hi..
> ¤ i'm trying to connect to oracle 8.1.7 in asp.net using integrated
> security
> ¤ but i'm always getting a ora 01017 invalid username/password. logon
> denied
> ¤ message. my web application is running on iis on windows xp
> professional.
> ¤
> ¤ This is my connection string: data Source=bankiby;integrated
> security=yes"
> ¤ i set SQLNET.AUTHENTICATION_SERVICES= (NTS,NONE) and added users to be
> ¤ identified externally and i set the remote_os_authent=TRUE..
> ¤
> ¤ I am able to login through the server with no problems but when i try
> to
> ¤ login through a client computer to my web application i get the message
> ora
> ¤ 01017.
> ¤
>
> Is Oracle installed on your web server or on a remote machine?
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)



 
Reply With Quote
 
saleryan
Guest
Posts: n/a
 
      22nd Dec 2005
I would like to add that it WORKS if I explicitly set
<identity impersonate="true" userName="IISGroup\userName"
password="password" /> in the web.config file. but it doesn' t work if i
just justa set impersonate=true..


Any suggestions!!




"saleryan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Oracle is installed on my web server. I'm using oracle administration
> assistant for windows NT to define external OS users and I set the
> impersonate tag in the web.config file to true. I also noticed that if I
> change the impersonate tag in web.config file to False and I added the
> aspNET user to oracle as an external user then it works fine. But that
> doesn't work when I set the impersonate to true and define my own users.
>
> Seems to me something wrong is happening while passing the username or
> password from asp.net to oracle. I checked several times that the user
> being passed to oracle is the same user that is defined as an external
> user in oracle. I used the following code:
> Dim user1 As WindowsPrincipal = HttpContext.Current.User
> LblWelcome.Text = "Welcome " + user1.Identity.Name()
> The user thats printed everytime is the same as the oracle user defined
> externally..
> I'm using windows xp professional on both my webserver and client do you
> think that could be the problem? That maybe I should use windows NT on my
> webserver? If anyone has experience using windows integrated security
> with oracle 8.1.7. Please help me here.. Microsoft recommends it but I
> don't see any help files explaining the exact configurations on oracle and
> asp.net..
>
> Thanks
>
>
>
>
> "Paul Clement" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> On Sat, 17 Dec 2005 00:47:06 +0300, "saleryan" <(E-Mail Removed)>
>> wrote:
>>
>> ¤ hi..
>> ¤ i'm trying to connect to oracle 8.1.7 in asp.net using integrated
>> security
>> ¤ but i'm always getting a ora 01017 invalid username/password. logon
>> denied
>> ¤ message. my web application is running on iis on windows xp
>> professional.
>> ¤
>> ¤ This is my connection string: data Source=bankiby;integrated
>> security=yes"
>> ¤ i set SQLNET.AUTHENTICATION_SERVICES= (NTS,NONE) and added users to be
>> ¤ identified externally and i set the remote_os_authent=TRUE..
>> ¤
>> ¤ I am able to login through the server with no problems but when i try
>> to
>> ¤ login through a client computer to my web application i get the message
>> ora
>> ¤ 01017.
>> ¤
>>
>> Is Oracle installed on your web server or on a remote machine?
>>
>>
>> Paul
>> ~~~~
>> Microsoft MVP (Visual Basic)

>
>



 
Reply With Quote
 
saleryan
Guest
Posts: n/a
 
      22nd Dec 2005
I would like to add that it WORKS if I explicitly set
<identity impersonate="true" userName="IISGroup\userName"
password="password" /> in the web.config file. but it doesn' t work if i
just justa set impersonate=true..


Any suggestions!!




"saleryan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Oracle is installed on my web server. I'm using oracle administration
> assistant for windows NT to define external OS users and I set the
> impersonate tag in the web.config file to true. I also noticed that if I
> change the impersonate tag in web.config file to False and I added the
> aspNET user to oracle as an external user then it works fine. But that
> doesn't work when I set the impersonate to true and define my own users.
>
> Seems to me something wrong is happening while passing the username or
> password from asp.net to oracle. I checked several times that the user
> being passed to oracle is the same user that is defined as an external
> user in oracle. I used the following code:
> Dim user1 As WindowsPrincipal = HttpContext.Current.User
> LblWelcome.Text = "Welcome " + user1.Identity.Name()
> The user thats printed everytime is the same as the oracle user defined
> externally..
> I'm using windows xp professional on both my webserver and client do you
> think that could be the problem? That maybe I should use windows NT on my
> webserver? If anyone has experience using windows integrated security
> with oracle 8.1.7. Please help me here.. Microsoft recommends it but I
> don't see any help files explaining the exact configurations on oracle and
> asp.net..
>
> Thanks
>
>
>
>
> "Paul Clement" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> On Sat, 17 Dec 2005 00:47:06 +0300, "saleryan" <(E-Mail Removed)>
>> wrote:
>>
>> ¤ hi..
>> ¤ i'm trying to connect to oracle 8.1.7 in asp.net using integrated
>> security
>> ¤ but i'm always getting a ora 01017 invalid username/password. logon
>> denied
>> ¤ message. my web application is running on iis on windows xp
>> professional.
>> ¤
>> ¤ This is my connection string: data Source=bankiby;integrated
>> security=yes"
>> ¤ i set SQLNET.AUTHENTICATION_SERVICES= (NTS,NONE) and added users to be
>> ¤ identified externally and i set the remote_os_authent=TRUE..
>> ¤
>> ¤ I am able to login through the server with no problems but when i try
>> to
>> ¤ login through a client computer to my web application i get the message
>> ora
>> ¤ 01017.
>> ¤
>>
>> Is Oracle installed on your web server or on a remote machine?
>>
>>
>> Paul
>> ~~~~
>> Microsoft MVP (Visual Basic)

>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with oracle database connection using Oracle Instant Clien PIYUSH Microsoft Outlook Program Addins 0 5th Jun 2008 10:11 AM
Oracle Connection Problem =?Utf-8?B?SmltIEhlYXZleQ==?= Microsoft Excel Programming 2 6th Feb 2006 06:32 PM
RE: Oracle Connection Problem =?Utf-8?B?S2FtYWx0?= Microsoft ADO .NET 0 3rd Jun 2004 07:51 AM
Re: Oracle Connection Problem David Browne Microsoft ADO .NET 2 3rd Jun 2004 05:00 AM
Oracle Connection Problem with Microsoft .NET Provider for ORACLE =?Utf-8?B?QW5kcmV3?= Microsoft ADO .NET 7 11th May 2004 03:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 AM.