Some additional info

1) Until now, there is no REST support for the GeoServer security  
subsystem. The subsystem itself is prepared for REST, but adding the  
code is a separate project.

2) About adding columns to the user/roles tables. This is possible,  
but you can also add properties to user/roles which you can see/modify  
in the GUI.

3) About password encoding. It is possible to insert your users with  
plain text passwords. The encoding for "mypassword" is  
"plain:mypassword". After inserting the users you can edit your  
user/group service and click on the check box "Recode passwords".  
Assuming that your password encoder is the digest encoder, all plain  
text passwords will be recoded.

Cheers
Christian




Zitat von Rodrigo Antonialli <rcantonia...@gmail.com>:

> Hello everybody! Solved it... =)
>
> I know that WPS is a standard to process "OGC-like" (geographic) data, but
> actually, you can register any kind of process in WPS.
>
> So, I was looking at Geoserver src and I found the
> GeoServerDigestPasswordEncoder class.
>
> I implemented a WPS that receives the user data (username, password, and
> other stuff) to insert them in the users table created by geoserver (user
> group service with JDBC).
> I've added custom columns in this table to fit my user data.
>
> To encode the password, was easy inside WPS:
>
> GeoServerDigestPasswordEncoder digest = newGeoServerDigestPasswordEncoder();
>
> (I've built wps src from geoserver src and loaded wps-core project in
> eclipse).
>
> Now, my app just sends data to the process and it registers a new user...
> After setting the flag enabled = Y, I logged in geoserver with no
> problems...
>
> If anyone is interested, I can share the full src of WPS.
>
> Maybe it's not the best solution, but it's the one I've found.
>
> Regards,
>
> Rodrigo C. Antonialli
> ======================================
> Rio Claro - SP - Brasil
> LinkedIn: http://www.linkedin.com/in/rcaprofile
> Contato:  (19) 8136-2347
>               rcantonia...@gmail.com
>               Skype: rc_antonialli
>
>
> On Tue, Feb 5, 2013 at 1:05 AM, Rodrigo Antonialli
> <rcantonia...@gmail.com>wrote:
>
>> I'm sorry... sent before finishing...
>>
>> Well, I configured JDBC user/group service, and it's working fine... I can
>> login with user registered in postgre "user" table.
>>
>> What I need now is to create users without geoserver web UI.
>>
>> Is there a way to do it through geoserver? REST maybe? (Almost sure I read
>> it's not possible to handle users with REST API)
>>
>> I just thought about insert user data directly to database, but, how to
>> implement password encryption?!
>>
>> Anyone can help me?!
>>
>> Just to clarify, I need that the same users created in my application to be
>> created in geoserver.
>>
>> Thanks!
>>
>> Em terça-feira, 5 de fevereiro de 2013, Rodrigo Antonialli escreveu:
>>
>> Hi everyone!
>>>
>>> I have a simple question about using
>>> JDBC user/group service
>>>
>>> --
>>> Rodrigo C. Antonialli
>>> ======================================
>>> Rio Claro - SP - Brasil
>>> LinkedIn: http://www.linkedin.com/in/rcaprofile
>>> Contato:  (19) 8136-2347
>>>               rcantonia...@gmail.com
>>>               Skype: rc_antonialli
>>>
>>
>>
>> --
>> Rodrigo C. Antonialli
>> ======================================
>> Rio Claro - SP - Brasil
>> LinkedIn: http://www.linkedin.com/in/rcaprofile
>> Contato:  (19) 8136-2347
>>               rcantonia...@gmail.com
>>               Skype: rc_antonialli
>>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to