[pve-devel] [PATCH pmg-api 2/2] remove ldap-simple-attr

Dominik Csapak d.csapak at proxmox.com
Fri Mar 6 11:05:47 CET 2020


which is now in pve-common

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PMG/LDAPConfig.pm | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/PMG/LDAPConfig.pm b/src/PMG/LDAPConfig.pm
index 9e4fd9e..a6cd6ef 100644
--- a/src/PMG/LDAPConfig.pm
+++ b/src/PMG/LDAPConfig.pm
@@ -12,19 +12,6 @@ use PVE::SectionConfig;
 
 use base qw(PVE::SectionConfig);
 
-PVE::JSONSchema::register_format('ldap-simple-attr', \&verify_ldap_simple_attr);
-sub verify_ldap_simple_attr {
-    my ($attr, $noerr) = @_;
-
-    if ($attr =~ m/^[a-zA-Z0-9]+$/) {
-	return $attr;
-    }
-
-    die "value '$attr' does not look like a simple ldap attribute name\n" if !$noerr;
-
-    return undef;
-}
-
 my $inotify_file_id = 'pmg-ldap.conf';
 my $config_filename = '/etc/pmg/ldap.conf';
 
-- 
2.20.1





More information about the pve-devel mailing list