Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2050 closed task (fixed)

[wordpress] Make OSGeo UserID URLS (/cgi-bin/) work

Reported by: strk Owned by: sac@…
Priority: normal Milestone: Website rebranding 2017
Component: SysAdmin Keywords:
Cc: userid

Description

The easiest path would probably be:

1) Make the scripts available on an ad-hoc domain

(id.osgeo.org?)

2) Redirect /cgi-bin from old and new server to

the new domain-specific PATHs

In the long run id.osgeo.org could be used as an OpenID provider...

Change History (9)

comment:1 by strk, 7 years ago

See #2051 for the mapping of id.osgeo.org

comment:2 by strk, 7 years ago

Regina you want to add these redirects (this syntax is for Apache):

    Redirect /cgi-bin/ldap_create_user.py https://id.osgeo.org/ldap/create
    Redirect /cgi-bin/auth/ldap_edit_user.py https://id.osgeo.org/ldap/edit
    Redirect /cgi-bin/ldap_password_reset.py https://id.osgeo.org/ldap/reset

comment:3 by strk, 7 years ago

Updated list of redirects (which can always be found in the "www" site in old apache config):

    RedirectPermanent /cgi-bin/ldap_create_user.py https://id.osgeo.org/ldap/create
    RedirectPermanent /cgi-bin/auth/ldap_edit_user.py https://id.osgeo.org/ldap/edit
    RedirectPermanent /cgi-bin/ldap_password_reset.py https://id.osgeo.org/ldap/reset
    RedirectPermanent /cgi-bin/ldap_web_search.py https://id.osgeo.org/ldap/search
    RedirectPermanent /cgi-bin/auth/ldap_web_search.py https://id.osgeo.org/ldap/admin/search
    RedirectPermanent /cgi-bin/auth/ldap_group.py https://id.osgeo.org/ldap/group
    RedirectPermanent /cgi-bin/auth/ldap_shell.py https://id.osgeo.org/ldap/shell

I've done this myself, and also put /etc/apache under a local git repo

comment:4 by strk, 7 years ago

Well, the RedirectPermanent directive doesn't seem to work: https://staging.www.osgeo.org/cgi-bin/ldap_user_create.py

There must be a Rewrite preventing that configuration from working. Anyone with better Wordpress knowledge is needed here

comment:5 by strk, 7 years ago

Milestone: Website rebranding 2017

comment:6 by strk, 7 years ago

What's needed is probably a RewriteCond in /var/www/osgeo.org/httpdocs/core/.htaccess (toward the bottom) - help needed

comment:7 by robe, 7 years ago

Resolution: fixed
Status: newclosed

strk what's wrong here. this seem to be working fine. I checked the rules you put in place and they look fine.

I tried

https://staging.www.osgeo.org/cgi-bin/ldap_create_user.py

and it works fine redirects me to the https://id.osgeo.org/ldap/create as stated in the redirect rules. Your above has a typo, that's not what you put in the rewrite rules.

Anything that is not rewritten gets picked up by the wordpress catchall.

I'm marking this as done.

comment:8 by robe, 7 years ago

strk for completeness I updated the wpAuthDir blocks that show in areas login /edit profile /forgot password

login - now says this:


OSGeo members can login directly using their OSGeo username and password. If you don't have an OSGeo account, you can create one by going to:

https://id.osgeo.org/ldap/create


forgot password /user edit screen change password(use the same block which reads)


To change your OSGeo password, go to: https://id.osgeo.org/ldap/edit

If you forgot your password, go to https://id.osgeo.org/ldap/reset


I can't block access to the forgot your password textbox, but when they try to use it, it will give an error that restates the above message.

comment:9 by strk, 7 years ago

Perfect, thanks!

Note: See TracTickets for help on using tickets.