Bug 16644 - Pakete mit Schema-Erweiterungen entferne
Pakete mit Schema-Erweiterungen entferne
Status: RESOLVED DUPLICATE of bug 30786
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 3.1-x
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-01 11:18 CET by Andreas Büsching
Modified: 2013-04-03 06:14 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Büsching univentionstaff 2009-12-01 11:18:13 CET
Wenn Pakete Schema-Erweiterungen mitbringen, dann werden die UCR-Templates beim Etnfernen der Pakete nicht mit gelöscht. Das wird dazu, dass in der slpad.conf weiterhin das Schema eingebunden wird, aber die Schema-Datei nicht mehr vorhanden ist.

Es sollte überlegt werden, wie wir so etwas handhaben wollen.
Comment 1 Arvid Requate univentionstaff 2009-12-21 15:12:21 CET
Das einfachste wäre vielleicht, wenn diese Template-Subfiles selbst überprüfen, ob die referenzierte Datei überhaupt existiert, bevor sie eine include-Anweisung ausgeben.
Comment 2 Arvid Requate univentionstaff 2009-12-21 15:21:21 CET
Ein grep -r 'include */usr/share/univention-ldap/schema' svn/dev/trunk/ucs liefert 7 Kandidaten:

univention-kolab2-ldap-addressbook-group-ext/conffiles/etc/ldap/slapd.conf.d/90addressbook-group-ext

univention-samba4wins/conffiles/etc/ldap/slapd.conf.d/13univention-samba4wins.schema

univention-mail-cyrus/conffiles/etc/ldap/slapd.conf.d/12univention-mail-quota_schema

univention-fetchmail/conffiles/etc/ldap/slapd.conf.d/11univention-fetchmail

univention-usbdevices/conffiles/etc/ldap/slapd.conf.d/11univention-usbdevices_schema

univention-ldap-overlay-memberof/conffiles/etc/ldap/slapd.conf.d/11univention-ldap-overlay-memberof

univention-ldap-localgroups/conffiles/etc/ldap/slapd.conf.d/11univention-ldap-localgroups_schema
Comment 3 Philipp Hahn univentionstaff 2010-03-18 11:37:55 CET
Aufgetreten im Rahmen des UDM-Beispielmoduls (Bug #17630):

# slapcat 2>/dev/null | wc -l
10836
# dpkg -r univention-directory-manager-module-example
# slapcat 2>/dev/null | wc -l
28
# ucr commit /etc/ldap/slapd.conf
Multifile: /etc/ldap/slapd.conf
# slapcat 2>/dev/null | wc -l
0
# dpkg -P univention-directory-manager-module-example
# slapcat 2>/dev/null | wc -l
0
# ucr commit /etc/ldap/slapd.conf
Multifile: /etc/ldap/slapd.conf
# slapcat 2>/dev/null | wc -l
10836

# dpkg-divert --list /etc/ldap/slapd.conf
# head -n 1 univention-directory-manager-module-example.postrm.debhelper
test "$1" = "remove" && rm -f /etc/ldap/slapd.conf && dpkg-divert --rename --quiet --divert /etc/ldap/slapd.conf.debian --remove /etc/ldap/slapd.conf || true

D.h. im PostRm wird u.A. auch das Divert auf die slapd.conf rückgängig gemacht, sobald das ERSTE Paket entfernt wird, das eine eigene Schema-Erweiterung mitbringt. Richtiger wäre es das divert erst dann zu entfernen, wenn das LETZTE Paket entfernt wird.
Comment 4 Stefan Gohmann univentionstaff 2013-04-03 06:14:44 CEST
Siehe Bug #30596, es gibt nun ucs_registerLDAPSchema um ein Schema zu registrieren.

*** This bug has been marked as a duplicate of bug 30786 ***