Your message dated Wed, 24 Apr 2024 22:26:59 +0200
with message-id <26153.27411.53763.690...@cs.uni-koeln.de>
and subject line closing
has caused the Debian Bug report #863647,
regarding use LDAP to generate www.debian.org/intro/organization page (or at 
least, part of it)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
863647: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863647
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: www.debian.org
Severity: wishlist

We have some info stored in the Debian LDAP, about people belonging to
groups, that could be used to generate (and keep updated
automatically) the /intro/organization page.

Adapting a script written by Paul Wise (thanks!), and running it from
a debian.org machine (e.g. people.debian.org), I can obtain the list
of, for example, Publicity Team delegates (see attached script
ldap_dump.py)..

We would need to know the gid or supplementaryGid of each of the teams
that we want to generate.

Then we would need to compare the list of groups/people that we can
obtain from LDAP, with the current list that we have in
/intro/organization. To take into account: some teams have no
corresponding LDAP group, e.g. Technical Committee.

Then, adapt the current organization.data file to insert the
corresponding scripting parts for the data that we obtain via LDAP
(not sure if we can insert Python scripts in the wml files, but
probably we can write similar code in Perl).

Leaving this here for now, I may return to advance this later in the
year, if nobody beats me to it.

Cheers
-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
#!/usr/bin/python

# Author: Paul Wise <p...@debian.org>
# Author: Laura Arjona Reina <larj...@debian.org>
# License: MIT/Expat

import os
import sys
import ldap

aliases = []

l = ldap.initialize('ldaps://db.debian.org')
r = l.search_s('dc=debian,dc=org',ldap.SCOPE_SUBTREE,'(supplementaryGid=publicity)',['gecos'])
aliases.append('Publicity Team')
for dn,e in r:
    aliases.append(' Member: %s' % e['gecos'][0])
del l, r

with open(os.path.expanduser('./debian-teams'), 'w') as f:
    f.write('\n'.join(aliases))

--- End Message ---
--- Begin Message ---
Obtaining the data from LDAP does not help, because also the LDAP data
is not up to date. We often have inactive members belonging to some
team/LDAP group for years after they went inactive.

Paul mentioned in another bug that some team members (I think it was
the wiki team) were not added to the wiki contact mail alias. So
having them in a list makes no sense.

--
regards Thomas

--- End Message ---

Reply via email to