imperialcollegeunion / website

The new Imperial College Union website
GNU General Public License v2.0
3 stars 0 forks source link

Login/ldap/newerpol #10

Open lsproc opened 12 years ago

lsproc commented 12 years ago

Just a few ramblings:

The ldap module theoretically authenticates using hook_auth.

If it does, then it would be possible to write another module to do auth, also hooking into hook_auth which would run if ldap fails, that way if the user isn't in college's directory any more, we can use CID/dob login by writing our own code to ask newerpol/whatever associate/life members use...

This is something for the future?

lsproc commented 12 years ago

Ok looking at it this would not be possible... Ldap module allows the option of authenticating with Drupal auth if ldap fails, maybe we could write a Drupal module to pull data off of newerpol for life/associate members and create Drupal users if they don't exist... Seems to be the easiest way! -> something for the future? Could be like an afternoons work... Probably don't have time -> would need some way of differentiating a life/associate member in the Drupal db from a member of the public who wants a hoodie: these cannot buy memberships... --> use the club shop restrictions module to make sure people exist in newerpol seems sensible! ---> actually this is essential! As joe public will probably be able to register at launch... Must do this!

lsproc commented 12 years ago

Hmmm then do we need to fail registrations for users who register with a username equal to a username or CID in newerpol? Yes!! Find out how...

lsproc commented 12 years ago

Do we need to see if a persons associate membership has lapsed, or if they have left college without life membership but are still in newerpol? Yes, not our problem though, I say we leave this for now and just do the registration blocker and stuff in club item bit.

lsproc commented 12 years ago

http://drupalcode.org/project/custom_username_validation.git/blob/c3978a9:/custom_username_validation.module rewrite this to do that