@@ -, +, @@ --- --- a/univention-licence/lib/license_ldap.c +++ a/univention-licence/lib/license_ldap.c @@ -145,10 +145,10 @@ lObj* univention_license_ldap_search_licenseObject(const char* searchBaseDN, con int scope = LDAP_SCOPE_ONELEVEL; //build searchfilter - filter_len = strlen("univentionLicenseModule=") + strlen(licensetyp); + filter_len = strlen("(&(objectClass=univentionLicense)(univentionLicenseModule=") + strlen(licensetyp) + strlen("))"); filter = malloc(sizeof(char) * filter_len + 1); filter[filter_len] = 0; - sprintf(filter,"univentionLicenseModule=%s", licensetyp); + sprintf(filter,"(&(objectClass=univentionLicense)(univentionLicenseModule=%s))", licensetyp); ret = univention_license_ldap_get(searchBaseDN, scope, filter, attr, "univentionLicense", num); --