]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Issue#8769 - Fix oid search extension syntax in documentation
authorLukas Juhrich <lukas.juhrich@agdsn.de>
Sat, 4 Nov 2017 01:50:44 +0000 (02:50 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Sep 2020 22:39:53 +0000 (22:39 +0000)
The option string, e.g. '<oid>=:dn:' is parsed like a LDIF entry starting from
the '=' and replacing the '=' with a dummy variable 'x'.  In this case, said
string is 'x:dn:', so the resulting effective value is 'dn:'.  This also implies
that base64 values have to be passed in the form '<oid>=::<b64value>'.

clients/tools/ldapsearch.c
doc/man/man1/ldapsearch.1

index 55bf26432d042b9ec57617f2f9c5ef86ea21f641..eb10c2e343c987de375a7e9d078205dfe5e36c63 100644 (file)
@@ -156,7 +156,7 @@ usage( void )
 #ifdef LDAP_CONTROL_X_SERVER_NOTIFICATION
        fprintf( stderr, _("             [!]serverNotif              (MS AD Server Notification)\n"));
 #endif
-       fprintf( stderr, _("             [!]<oid>[=:<b64value>] (generic control; no response handling)\n"));
+       fprintf( stderr, _("             [!]<oid>[=:<value>|::<b64value>] (generic control; no response handling)\n"));
        fprintf( stderr, _("  -f file    read operations from `file'\n"));
        fprintf( stderr, _("  -F prefix  URL prefix for files (default: %s)\n"), def_urlpre);
        fprintf( stderr, _("  -l limit   time limit (in seconds, or \"none\" or \"max\") for search\n"));
index c8fed5d15cbf3e6e654b9a71072768fdf634159b..bb59cf7ef1843396161fc94d39f652ec67fb1f13 100644 (file)
@@ -327,7 +327,7 @@ Search extensions:
           rp[/<cookie>][/<slimit>]     (LDAP Sync refreshAndPersist)
   [!]vlv=<before>/<after>(/<offset>/<count>|:<value>)  (virtual list view)
   [!]deref=derefAttr:attr[,attr[...]][;derefAttr:attr[,attr[...]]]
-  [!]<oid>[=<value>]
+  [!]<oid>[=:<value>|::<b64value>]
 .fi
 .TP
 .BI \-o \ opt \fR[= optparam \fR]