By default GeoNetwork stores users and groups in two tables named users and usergroups in the configured database, in my case a PostGIS database.

For our webgis application we have already an existing database with users, groups and roles. Is it possible to use the same database to authenticate users in GeoNetwork as well (preferably without recompiling GeoNetwork)?


It is possible to connect geoNetwork to different authentication systems like LDAP or CAS, which is the recommended way of sharing users between different apps: http://geonetwork-opensource.org/manuals/trunk/eng/users/admin/authentication/index.html

But probably you are talking about a customized database with users and groups. There is no generic way to do this (and probably it is not recommended), but you can try to use views on your database to try to mimic geoNetwork user tables using your own data: http://www.postgresql.org/docs/9.2/static/sql-createview.html

If you use views, remember that you will have to create special triggers if you want to be able to administer users from the geoNetwork UI.

| improve this answer | |
  • Yes, I'm talking about a customized user database. Currently the most promising solution is to work with views and a custom PasswordEncoder and / or to rewrite the user services and configure these custom services in config.xml. – webrian Jun 11 '14 at 10:09
  • Remember that geoNetwork uses spring-security. If your app also uses this, maybe you can connect them. If you are trying to use a real production geoNetwork with existing users, I strongly advice you to move to some authentication/authorization system like LDAP instead of using your own. – María Arias de Reyna Domínguez Jun 11 '14 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.