[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#797223: tracker.debian.org: Replace LDAP access to get DD names with nm.debian.org REST API



Package: tracker.debian.org
Severity: wishlist
Tags: newcomer

distro_tracker/vendor/debian/sso_auth.py uses the ldap Python module 
in DebianSsoUserBackend.get_user_details() to retrieve the first name
and last name of Debian developers.

I would like to stop relying on LDAP (as the ldap module is not Python 3
compatible, and one less dependency is always good) and instead we should
use the nm.debian.org REST API: https://nm.debian.org/api

$ curl https://nm.debian.org/api/people?uid=hertzog
{
 "r": [
  {
   "status": "dd_u", 
   "uid": "hertzog", 
   "created": "0", 
   "url": "/public/person/hertzog", 
   "mn": "", 
   "sn": "Hertzog", 
   "fpr": "3E4FB7117877F589DBCF06D6E619045DF2AC729A", 
   "status_changed": "0", 
   "fullname": "Rapha\u00ebl Hertzog", 
   "cn": "Rapha\u00ebl"
  }
 ]
}

This way we can use the "requests" Python module that we already have as
dependency to retrieve the data we need.

Cheers,
 Raphaël.


Reply to: