Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Help! How to get client userid when using generic login

3 posts in General Discussion (old) Last posting was on 2000-02-25 03:37:37.0Z
Karl Werner Posted on 2000-02-24 16:02:29.0Z
Newsgroups: sybase.public.easerver
From: "Karl Werner" <wernerkd@my-deja.com>
Organization: 207.43.246.2
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Help! How to get client userid when using generic login
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Feb 2000 11:02:29 -0500
Lines: 32
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_YilKNCuf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27925
Article PK: 159621

For error handling purposes, we'd like to be able to get the client userid from
within a component.

For obvious maintenance reasons, we'd like to have our clients connect via a
generic userid so that when a new user is added to the system, they can just be
added to our application, and not directly to Jaguar. Our application will then
determine itself if someone can continue or not.

The only problem is that from Jaguar, we've found no way of identifying which
client any given connection came from. I think that from a C client, a value
can be passed in for a field called something
like "hostname" that could be used for this purpose, but I have found no
corresponding field in the PB connection object.

We also thought about just building into our application the ability to add
individual users to the system automatically, thereby eliminating the generic
userid. The problem here is that we have not been able to find the
functionality within Jaguar to be able to do this. We suspect it exists as
Sybase Central is simply a Java application that probably works through some
component on Jaguar, but we've found no
documentation on it.

Any help that could be provided would be greatly appreciated!

Karl Werner


Daniel Montero Posted on 2000-02-25 03:37:37.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 24 Feb 2000 21:37:37 -0600
From: Daniel Montero <danim@gruposoin.com.mx>
Organization: Grupo SOIN, S.A. de C.V.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Help! How to get client userid when using generic login
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 51
NNTP-Posting-Host: na-28-221.na.avantel.net.mx 148.245.28.221
Message-ID: <347_38B5F901.550EB788@gruposoin.com.mx>
References: <347_YilKNCuf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27847
Article PK: 159552

You can tell Jaguar to use your application's users & password to authenticate
users.
Just implement the CtsSecurity::AuthService interface and install it in jaguar as
the authservice.
This way you will be able to get the username and password using something like
com.sybase.jaguar.server.Jaguar.getInstanceContext().getName() / getPassword()

More details are found in the Interface repository documentation of
CtsSecurity::AuthService
at http://localhost:8080/ir

Hope this helps,
danim

Karl Werner wrote:

> For error handling purposes, we'd like to be able to get the client userid from
> within a component.
>
> For obvious maintenance reasons, we'd like to have our clients connect via a
> generic userid so that when a new user is added to the system, they can just be
> added to our application, and not directly to Jaguar. Our application will then
> determine itself if someone can continue or not.
>
> The only problem is that from Jaguar, we've found no way of identifying which
> client any given connection came from. I think that from a C client, a value
> can be passed in for a field called something
> like "hostname" that could be used for this purpose, but I have found no
> corresponding field in the PB connection object.
>
> We also thought about just building into our application the ability to add
> individual users to the system automatically, thereby eliminating the generic
> userid. The problem here is that we have not been able to find the
> functionality within Jaguar to be able to do this. We suspect it exists as
> Sybase Central is simply a Java application that probably works through some
> component on Jaguar, but we've found no
> documentation on it.
>
> Any help that could be provided would be greatly appreciated!
>
> Karl Werner
>

--
------
Make a free donation of food
Haga una donacion sin costo de comida

http://www.thehungersite.com
------
Daniel Montero
danim@gruposoin.com.mx
http://www.gruposoin.com.mx/


Dave Wolf [Sybase] Posted on 2000-02-24 22:03:48.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Help! How to get client userid when using generic login
Date: Thu, 24 Feb 2000 17:03:48 -0500
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.12
Message-ID: <347_JprWOOxf$GA.274@forums.sybase.com>
References: <347_YilKNCuf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27878
Article PK: 159578

If they login with a generic username how could we know their real one?
Here's an idea. If they log in as a guest, have them pass the password as
the username they want. Then you can get the password.

Dave Wolf
Internet Applications Division

"Karl Werner" <wernerkd@my-deja.com> wrote in message
news:YilKNCuf$GA.151@forums.sybase.com...
> For error handling purposes, we'd like to be able to get the client userid
from
> within a component.
>
> For obvious maintenance reasons, we'd like to have our clients connect via
a
> generic userid so that when a new user is added to the system, they can
just be
> added to our application, and not directly to Jaguar. Our application will
then
> determine itself if someone can continue or not.
>
> The only problem is that from Jaguar, we've found no way of identifying
which
> client any given connection came from. I think that from a C client, a
value
> can be passed in for a field called something
> like "hostname" that could be used for this purpose, but I have found no
> corresponding field in the PB connection object.
>
> We also thought about just building into our application the ability to
add
> individual users to the system automatically, thereby eliminating the
generic
> userid. The problem here is that we have not been able to find the
> functionality within Jaguar to be able to do this. We suspect it exists
as
> Sybase Central is simply a Java application that probably works through
some
> component on Jaguar, but we've found no
> documentation on it.
>
> Any help that could be provided would be greatly appreciated!
>
> Karl Werner
>