Univention Bugzilla – Bug 22142
Read-Only Attribute FQDN
Last modified: 2023-03-25 06:40:53 CET
+++ This bug was initially created as a clone of Bug #22139 +++ Es ist derzeit nicht möglich nach dem neuen Attribut zu suchen: root@dvsmaster:~# udm computers/windows list --filter fqdn='first-vorla.dvs10.local' fqdn=first-vorla.dvs10.local root@dvsmaster:~# udm computers/windows list --filter cn='first-vorla' | grep fqdn fqdn: first-vorla.dvs10.local +++ This bug was initially created as a clone of Bug #21493 +++ Es sollte am Rechner-Objekt ein Attribut geben, dass den FQDN des Rechners. Das ist in mehreren Fällen hilfreich.
Es kann jetzt nach dem Attribut gesucht werden. Einfache und komplexere Filter müssen funktionieren: udm computers/windows list --filter fqdn=wins1.uvmm.test oder auch udm computers/windows list --filter '(&(fqdn=wins1.uvmm.test)(ip=192.168.0.190))'
Anmeldung an UMC schlägt jetzt fehl: File "/usr/lib/python2.4/site-packages/univention/management/console/acl.py", line 172, in _append_allow self.__append( 'allow', 'disallow', fromUser, object ) File "/usr/lib/python2.4/site-packages/univention/management/console/acl.py", line 148, in __append for host in self._expand_hostlist( object.get( 'univentionConsoleACLHost', [ '*' ] ) ): File "/usr/lib/python2.4/site-packages/univention/management/console/acl.py", line 110, in _expand_hostlist servers += role.lookup( None, self.lo, None, base=self.__ldap_base ) File "/usr/lib/python2.4/site-packages/univention/admin/handlers/computers/domaincontroller_master.py", line 705, in lookup filter_p=univention.admin.filter.parse(filter_s) File "/usr/lib/python2.4/site-packages/univention/admin/filter.py", line 178, in parse raise univention.admin.uexceptions.valueInvalidSyntax () univention.admin.uexceptions.valueInvalidSyntax Wenn ich die Zeile filter_s = univention.admin.filter.replace_fqdn_filter( str( filter_s ) ) entferne, dann funktioniert die Anmeldung wieder.
In UMC wird dem Filter String None übergeben. Das wird jetzt vorher geprüft.
Die Suche nach dem Attribut funktioniert nun. Einfache und komplexere Filter wurden getestet. Verified!