Univention Bugzilla – Bug 19101
Printer Join Skript sollte Master LDAP prüfen
Last modified: 2013-11-19 06:42:25 CET
Aufgefallen an Ticket#: 2010072110000741: 79univention-printserver.inst kann die bestehenden Druckertreiber im LDAP nicht löschen, so dass die neuen, angepassten Pfade nicht hinzugefügt werden können (Object exists). Grund ist, dass in Zeile 128 eine ldapsearch-Abfrage gestartet wird, um die Existenz der alten Druckertreiberlisten zu prüfen. Die Abfrage geht gegen das lokale LDAP, scheitert jedoch da der Container "cn=cups,cn=univention,$ldap_base" nicht auf den Schulservern vorhanden ist. Hier sollte gegen das LDAP auf dem DC Master geprüft werden.
Dieses Problem betrifft auch das Joinskript "79univention-printserver-pdf.inst".
Betrifft auch Nicht-UCS@school-Kunden mit selektiver Replikation.
In UCS 3.1 weiterhin vorhanden.
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2. As such, this bug is moved to the new target milestone.
Modified "79univention-printserver.inst" and "79univention-printserver-pdf.inst" files in package "univention-printserver". Modified "univention-ldapsearch" request. Added -h "$ldap_master" -p "$ldap_master_port" in order to request LDAP on DC master for checking old printer drivers. - imported into buildsystem (6.0.25-1) - built package univention-printserver - modified changelog "doc/changelog/changelog-3.2.tex" at the section "printing services"
> Hier sollte gegen das LDAP auf dem DC Master geprüft werden. This does not solve the problem. univention-ldapsearch authenticates as default with the computer account to the ldap server. In a school environment the slave has no permissions to read "cn=cups,cn=..." even if you use the master as ldap server. The univention-ldapsearch lookup should be started with the credentials of the join user, not the computer account.
Added credentials -D and -w to the "unvention-ldapsearch" query. The credentials will be read out of parameters "$@" with a bash function "getopts". If no --binddn and no --bindpwd parameters specified the ldapsearch query will not use any credentials as parameter. -added to in 79univention-printserver.inst and to 79univention-printserver-pdf.inst - imported into buildsystem - installed package (7.0.2.1)
OK - an ucs@school slave can now backup the old printer models (from the master ldap with the join credentials) and create new ones OK - Changelog
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".