on 2016 Jun 16 2:53 AM - last edited on 2016 Jun 16 4:53 AM by G_S
I have created a Remote Server connection called TeleMed from one Sybase ASA 12 database (db1) to another Sybase ASA 12 database (db2) to access a table from the second database in the first database, a Proxy Table
I have created a user called Therapist in the db2, which has permissions to Select and Reference only the one table being the proxy table in db1.
I have a User Group Therapist in db1, with many members. The Group is then used as an External Login to db2 using the Therapist user id and password from db2.
When I log in to db1 as a user XYZ, whom belongs to the User Group Therapist in db1, I can't access the proxy table.
If I add the user XYZ as an External Login using the Therapist user id and password from db2, all works fine.
Why doesn't the external login based on a group allow the user to connect/select the proxy table data, I would have thought that user would be granted access via the membership to the Therapist group.
Is there something I am missing here?
Thanks in advance
Request clarification before answering.
AFAIK, remote connections are never based on group membership. Extern logins are created for single users, not for groups.
So I guess you will have to
(If my assumptions are correct, than I would share your impression that this seems rather surprising and complex ...)
Note, with v16 and above, remote connections by default are made based on the effective user, not the logged-in user, so you could turn the proxy access in, say, a procedure with SQL SECURITY DEFINER, and then only the owner of the procedure would need an externlogin - that and the different v12 behaviour are discussed here (note particularly Karim's comments) and here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
9 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.