From a8ec993ab004ff487810774945d7150597feceed Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 31 Jan 2023 11:40:28 +0000
Subject: [PATCH] :sparkles: Feat(Core) - Remove Perl scripts Insert-Schema.

Removes the perl script fusiondirectory-insert-schema.
It exists in php within tools repo.
---
 contrib/bin/fusiondirectory-insert-schema | 145 ----------------------
 1 file changed, 145 deletions(-)
 delete mode 100644 contrib/bin/fusiondirectory-insert-schema

diff --git a/contrib/bin/fusiondirectory-insert-schema b/contrib/bin/fusiondirectory-insert-schema
deleted file mode 100644
index d40942de6..000000000
--- a/contrib/bin/fusiondirectory-insert-schema
+++ /dev/null
@@ -1,145 +0,0 @@
-#!/usr/bin/perl
-
-########################################################################
-#
-# fusiondirectory-insert-schema
-#
-# Manipulate and insert the needed schema into the ldap server
-#
-#  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
-#  Copyright (C) 2011-2018  FusionDirectory
-#
-#  This program is free software; you can redistribute it and/or modify
-#  it under the terms of the GNU General Public License as published by
-#  the Free Software Foundation; either version 2 of the License, or
-#  (at your option) any later version.
-#
-#  This program is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#  GNU General Public License for more details.
-#
-#  You should have received a copy of the GNU General Public License
-#  along with this program; if not, write to the Free Software
-#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-########################################################################
-
-use strict;
-use warnings;
-
-use 5.008;
-
-my $ldapSchemaManager = 'ldap-schema-manager';
-my $defaultpath       = "/etc/ldap/schema/fusiondirectory/";
-my @defaultschemas    = ("core-fd.schema","core-fd-conf.schema","ldapns.schema","template-fd.schema");
-
-exec (
-  $ldapSchemaManager,
-  '--tool-name', $0,
-  '--default-path', $defaultpath,
-  '--default-schemas', @defaultschemas, '--end',
-  @ARGV
-);
-
-=head1 NAME
-
-fusiondirectory-insert-schema - insert schema needed by FusionDirectory into the ldap server
-
-=head1 SYNOPSIS
-
-fusiondirectory-insert-schema [-y] [-n] [-c] [-o options] [path] [-h|-l|-i schema1 schema2|-m schema1 schema2|-e schema1 schema2]
-
-=head1 DESCRIPTION
-
-This program will insert the schema needed by FusionDirectory into the ldap server, or the specified schemas
-
-
-=head2 Options
-
-=over 6
-
-=item -i
-
-This option insert the given list of schemas instead of the default list
-
-=item -m
-
-This option insert the given list of schemas, replacing already inserted versions of those schemas
-
-=item -e
-
-This option empty the given list of schemas, removing attributes and objectClasses from those.
-This is useful because you cannot delete a schema without restarting slapd.
-
-=item -l
-
-This option list inserted schemas
-
-=item -n
-
-This option will make generated ldifs file to not be deleted after execution. Might be useful to understand errors.
-
-=item -c
-
-This option make the program continue even if an error occur
-
-=item -y
-
-This option answer yes to all questions. The only question right now is the confirmation one when you ask to empty a schema.
-
-=item -o
-
-This option allow you to specify specifics options to give to ldap commands such as ldapmodify,
-but beware that you will not be able to see things like password prompts as the output of these commands is piped.
-
-=back
-
-=head1 EXAMPLES
-
- fusion@catbert$ fusiondirectory-insert-schema
-   Insert the core schemas in your LDAP directory
-
- fusion@catbert$ fusiondirectory-insert-schema -i /etc/ldap/otherschema/myschema.ldif
-   Insert the schema /etc/ldap/otherschema/myschema.ldif
-
- fusion@catbert$ fusiondirectory-insert-schema -i /etc/ldap/otherschema/myschema.schema
-   Convert /etc/ldap/otherschema/myschema.schema to ldif and insert it
-
- fusion@catbert$ fusiondirectory-insert-schema -i myschema
-   Insert the schema myschema.ldif from working directory
-
- fusion@catbert$ fusiondirectory-insert-schema -m /etc/ldap/otherschema/myschema.schema
-   Convert /etc/ldap/otherschema/myschema.schema to ldif and replace the existing schema by this one
-
- fusion@catbert$ fusiondirectory-insert-schema -e myschema
-   Empty the schema myschema
-
- fusion@catbert$ fusiondirectory-insert-schema -o "-H ldap://my.ldap.com -ZZ -D 'cn=admin,cn=config' -w password -x"
-   Connect to another ldap server to insert the schema
-
-=head1 BUGS
-
-Please report any bugs, or post any suggestions, to the fusiondirectory mailing list fusiondirectory-users or to
-<https://gitlab.fusiondirectory.org/fusiondirectory/fd/issues/new>
-
-=head1 AUTHOR
-
-Come Bernigaud
-
-=head1 LICENCE AND COPYRIGHT
-
-This code is part of FusionDirectory <http://www.fusiondirectory.org>
-
-=over 1
-
-=item Copyright (C) 2011-2018 FusionDirectory Project
-
-=back
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-=cut
-- 
GitLab