View | Details | Raw Unified | Return to bug 42262
Collapse All | Expand All

(-)a/univention-licence/lib/license_ldap.c (-3 / +2 lines)
 Lines 145-154   lObj* univention_license_ldap_search_licenseObject(const char* searchBaseDN, con Link Here 
145
	int scope    = LDAP_SCOPE_ONELEVEL;
145
	int scope    = LDAP_SCOPE_ONELEVEL;
146
	
146
	
147
	//build searchfilter
147
	//build searchfilter
148
	filter_len = strlen("univentionLicenseModule=") + strlen(licensetyp);
148
	filter_len = strlen("(&(objectClass=univentionLicense)(univentionLicenseModule=") + strlen(licensetyp) + strlen("))");
149
	filter = malloc(sizeof(char) * filter_len + 1);
149
	filter = malloc(sizeof(char) * filter_len + 1);
150
	filter[filter_len] = 0;
150
	filter[filter_len] = 0;
151
	sprintf(filter,"univentionLicenseModule=%s", licensetyp);
151
	sprintf(filter,"(&(objectClass=univentionLicense)(univentionLicenseModule=%s))", licensetyp);
152
	
152
	
153
	ret = univention_license_ldap_get(searchBaseDN, scope, filter, attr, "univentionLicense", num);
153
	ret = univention_license_ldap_get(searchBaseDN, scope, filter, attr, "univentionLicense", num);
154
	
154
	
155
- 

Return to bug 42262