Univention Bugzilla – Attachment 7980 Details for
Bug 42262
Improve LDAP search filter for libunivention-license
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-optimize-LDAP-search-filter-to-fix-5906.patch (text/plain), 1.10 KB, created by
Michel Smidt
on 2016-09-05 17:16:44 CEST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Michel Smidt
Created:
2016-09-05 17:16:44 CEST
Size:
1.10 KB
patch
obsolete
>From fbee08238ec30a94294a6091f10fdef018e57558 Mon Sep 17 00:00:00 2001 >From: Ingo Steuwer <steuwer@univention.de> >Date: Fri, 2 Sep 2016 16:26:39 +0200 >Subject: [PATCH] optimize LDAP search filter to fix #5906 > >--- >diff --git a/univention-licence/lib/license_ldap.c b/univention-licence/lib/license_ldap.c >index f61bebf..957f318 100644 >--- a/univention-licence/lib/license_ldap.c >+++ b/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); > >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42262
:
7979
| 7980