471,306 Members | 836 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

ODBC permissions

Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No;U ID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks

Nov 19 '05 #1
2 4283
Might be a tough one to track down, but I'd probably start in
Administrative Tools -> Local Security Policy and turn on auditing,
particularly "Audit privledge use" and "object access" for failures.
You might turn up something in the security log.

You might also try the FileMon and RegMon tools from sysinternals.com
to see if the record any access errors when your Sage stuff is
starting up.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 6 Oct 2005 03:03:24 -0700, di*********@yahoo.com wrote:
Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No; UID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks


Nov 19 '05 #2

Scott Allen wrote:
Might be a tough one to track down, but I'd probably start in
Administrative Tools -> Local Security Policy and turn on auditing,
particularly "Audit privledge use" and "object access" for failures.
You might turn up something in the security log.

You might also try the FileMon and RegMon tools from sysinternals.com
to see if the record any access errors when your Sage stuff is
starting up.
Thanks for your reply. I tracked down the problem using FileMon. The
Sage driver was trying to access:
C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys
I added read permissions for Authenticated Users to this directory and
it worked.

Thanks again.
--
Scott
http://www.OdeToCode.com/blogs/scott/

On 6 Oct 2005 03:03:24 -0700, di*********@yahoo.com wrote:
Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No; UID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve Farber | last post: by
1 post views Thread by paul_tomlin | last post: by
5 posts views Thread by somersbar | last post: by
1 post views Thread by Hitesh Joshi | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.