all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] api-types: ldap: properly anchor DN regex
@ 2023-03-29  9:22 Lukas Wagner
  2023-03-29  9:29 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Wagner @ 2023-03-29  9:22 UTC (permalink / raw)
  To: pbs-devel

Otherwise, a substring match is enough to fulfill the constraint.

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
 pbs-api-types/src/ldap.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbs-api-types/src/ldap.rs b/pbs-api-types/src/ldap.rs
index eabc5249..762f560a 100644
--- a/pbs-api-types/src/ldap.rs
+++ b/pbs-api-types/src/ldap.rs
@@ -150,11 +150,11 @@ macro_rules! DOMAIN_PART_REGEX {
 
 const_regex! {
     pub LDAP_DOMAIN_REGEX = concat!(
-        r#"\w+="#,
+        r#"^\w+="#,
         DOMAIN_PART_REGEX!(),
         r#"(,\s*\w+="#,
         DOMAIN_PART_REGEX!(),
-        ")*"
+        ")*$"
     );
 }
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-29  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29  9:22 [pbs-devel] [PATCH proxmox-backup] api-types: ldap: properly anchor DN regex Lukas Wagner
2023-03-29  9:29 ` [pbs-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal