]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs-5.0.2-ldap-check-star.patch
- "few" official patches
[packages/autofs.git] / autofs-5.0.2-ldap-check-star.patch
diff --git a/autofs-5.0.2-ldap-check-star.patch b/autofs-5.0.2-ldap-check-star.patch
new file mode 100644 (file)
index 0000000..2d83fcc
--- /dev/null
@@ -0,0 +1,34 @@
+diff --git a/CHANGELOG b/CHANGELOG
+index 054d4df..ef549cf 100644
+--- a/CHANGELOG
++++ b/CHANGELOG
+@@ -22,6 +22,7 @@
+ - add LDAP schema discovery if no schema is configured.
+ - add random selection as a master map entry option.
+ - fix couple of edge case parse fails of timeout option.
++- check for "*" when looking up wildcard in LDAP.
+ 18/06/2007 autofs-5.0.2
+ -----------------------
+diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
+index d5e666b..a7b315e 100644
+--- a/modules/lookup_ldap.c
++++ b/modules/lookup_ldap.c
+@@ -1500,7 +1500,7 @@ static int lookup_one(struct autofs_point *ap,
+               *qKey = '/';
+       /* Build a query string. */
+-      l = strlen(class) + 2*strlen(entry) + strlen(qKey) + 29;
++      l = strlen(class) + 3*strlen(entry) + strlen(qKey) + 35;
+       query = alloca(l);
+       if (query == NULL) {
+@@ -1514,7 +1514,7 @@ static int lookup_one(struct autofs_point *ap,
+        * whose entry is equal to qKey.
+        */
+       ql = sprintf(query,
+-            "(&(objectclass=%s)(|(%s=%s)(%s=/)))", class, entry, qKey, entry);
++            "(&(objectclass=%s)(|(%s=%s)(%s=/)(%s=\\2A)))", class, entry, qKey, entry, entry);
+       if (ql >= l) {
+               error(ap->logopt,
+                     MODPREFIX "error forming query string");
This page took 0.062596 seconds and 4 git commands to generate.