In addition to this, you also have to add SimpleAuthenticationHandler and SimpleAuthenticationHander to the request flow of you service ... or possible the global chain. If you put them in the global chain then you'll need to specify username and password to use AdminClient for deploying services.
Of course you also have to create users.lst and perms.lst files.
If you're using a generated Stub instead of a Call object, you can call setUsername and setPassword on that too. You'll probably have to cast your object to Stub.
One part of this that nobody seems to know about is how users can be assigned to roles. Currently it seems that you need to associate usernames with sevices instead of role names.
> -----Original Message-----
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 9:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Basic Authentication and Axis
>
>
> To use basic authentication, you have to set up the username
> and password in
> your call object on the client side, like so:
>
> Service service = new Service();
> Call call = (Call) service.createCall();
> call.setUsername("username" );
> call.setPassword("Password");
>
> This will set the http headers for basic authentication. As
> far as the jdbc
> realm goes, that is a function of your webserver. Tomcat supports a
> jdbcrealm implementation, and i believe there is a mod_ldap
> for apache. The
> username can be aquired through the message context, as follows:
>
> MessageContext msgContext = MessageContext.getCurrentContext();
> String username = msgContext.getUsername();
>
>
>
> -----Original Message-----
> From: Andrea Fabris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 5:58 AM
> To: [EMAIL PROTECTED]
> Subject: Basic Authentication and Axis
>
>
> Hello to everybody.
>
> I checked this question on the archive bu i didn't find anything so i
> post...
>
> I want to use basic authentication to access an axis service,
> i'd like also
> to match the user/pwd on a database (like jdbcrealm). Also i
> want to have
> the username that logged in readable by the service so i can
> do more work in
> the service based on the profile of the user who logged in.
>
> It's possible to do this? Otherwise, which kind of
> authentication i have to
> use?
>
> Thanx
> Andrea Fabris
>
>
>
>
> --
> Prendi GRATIS l'email universale che... risparmia:
http://www.email.it/f
Sponsor:
Piovono occasioni d'oro! Non perdere istanti preziosi
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=610&d=25-7
***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************