Closed Bug 855384 Opened 11 years ago Closed 11 years ago

Use native LDAP lookup to look up group membership

Categories

(Socorro :: General, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

References

Details

Whenever someone authenticates with Persona we should reduce if they're actually welcome if they belong to a certain LDAP group.

(NB: if we can resolve https://bugzilla.mozilla.org/show_bug.cgi?id=855382 we can resolve/wontfix this bug)
Blocks: 749359
Depends on: 780202
Assignee: nobody → peterbe
No longer depends on: 780202
Blocks: 844140
I felt compelled to get started on this. Maybe not to finish it but to at least get a start to see if I can connect at all. 

But then it hit me: I have NO IDEA what the spec is. :)

I think it boils down to: What groups do users specifically have to belong to to be able to sign in?
(In reply to Peter Bengtsson [:peterbe] from comment #1)
> I felt compelled to get started on this. Maybe not to finish it but to at
> least get a start to see if I can connect at all. 
> 
> But then it hit me: I have NO IDEA what the spec is. :)
> 
> I think it boils down to: What groups do users specifically have to belong
> to to be able to sign in?

You should be able to find all the info you need in /etc/socorro/web/ldap.php on dev/stage/prod
Pull Request: https://github.com/mozilla/socorro-crashstats/pull/322

Notice, I added a little tool which you can use like this::

 $ ./manage.py test-ldap-lookup bsmedberg@mozilla.com
 YES!
 $ ./manage.py test-ldap-lookup pbengtsson@mozilla.com
 No go :(

And here's a little secret that I'm not 101% confident in, but hopefully it'll spread that Just Works(tm) feeling::

 $ ./manage.py test-ldap-lookup kairo@mozilla.com
 YES!

I.e. you can use your LDAP alias to log in.
All coding is done. Now we just need to wait for the IT to set up the binduser and password on stage and prod
https://bugzilla.mozilla.org/show_bug.cgi?id=857695
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.