Dear all,
I hope somebody is able to give me some hints on this. I want users from our organization (multiple offices spread over the country) to be auto-logged in to our Geonetwork portal (http://geoservice.pbl.nl) under our internal_user account (=one GN account for all internal users). Can this be done in a url way or a post? This probably requires some url rewriting in Apache, but based on IP address I can filter out our internal users. We don't have single-sign-on working (yet) and I really don't want to bother our users with yet another user/password combination 
Thanks for any help...
Johan Meijer
Hi,
I hope somebody is able to give me some hints on this. I want users from our organization (multiple offices spread over the country) to be auto-logged in to our Geonetwork portal (http://geoservice.pbl.nl) under our internal_user account (=one GN account for all internal users). Can this be done in a url way or a post? This probably requires some url rewriting in Apache, but based on IP address I can filter out our internal users. We don't have single-sign-on working (yet) and I really don't want to bother our users with yet another user/password combination 
Take a look at the jeeves/guiservices/session/Get.java class ; you
should be able to find your client IP address from the
(ServiceContext) context variable passed to the method exec(), then
after having added some controls onto the client's ip address, you can
perform a call to authenticate() from jeeves/server/Usersession.java
class ; here is its prototype :
public void authenticate(String userId, String username, String name,
String surname, String profile)
It could be a bit more difficult if you are proxifying your GeoNetwork
instance, by the way (client's IP would then always be something like
127.0.0.1)
Hope that helps,
--
Pierre Mauduit
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 44 44 92
http://www.camptocamp.com
pierre.mauduit@anonymised.com