]> git.proxmox.com Git - pve-docs.git/commitdiff
pveum: Document reserved characters and quoting of LDAP DNs
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 31 Jan 2023 12:50:43 +0000 (13:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 15:10:46 +0000 (16:10 +0100)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
pveum.adoc

index 4c66f4c41ce8cf54a9d349a40cb909429d9d3f5e..f9c1c7c1c0f8aa930d86b67277ade71f46233319 100644 (file)
@@ -394,6 +394,39 @@ The main options for syncing are:
 * `Preview` (`dry-run`): No data is written to the config. This is useful if you
   want to see which users and groups would get synced to the `user.cfg`.
 
+[[pveum_ldap_reserved_characters]]
+Reserved characters
+^^^^^^^^^^^^^^^^^^^
+
+Certain characters are reserved and cannot be easily used in attribute values
+in DNs without being escaped properly.
+
+Following characters need escaping:
+
+* Space (` `)
+
+* Comma (`,`)
+
+* Plus sign (`+`)
+
+* Double quote (`"`)
+
+* Forward slashes (`/`)
+
+* Angle brackets (`<>`)
+
+* Semicolon (`;`)
+
+* Equals sign (`=`)
+
+To use such characters in DNs, surround the attribute value in double quotes.
+For example, to bind with a user with the CN (Common Name) `Example, User`, use
+`CN="Example, User",OU=people,DC=example,DC=com` as value for `bind_dn`.
+
+This applies to the `base_dn`, `bind_dn`, and `group_dn` attributes.
+
+NOTE: Users with colons and forward slashes cannot be synced since these are
+reserved characters in usernames.
 
 [[pveum_openid]]
 OpenID Connect