Source

Target

Commits (2326)
Showing with 3872 additions and 4729 deletions
+3872 -4729
# These are supported funding model platforms
ko_fi: fusiondirectory
liberapay: fusiondirectory
open_collective: fusiondirectory
community_bridge: fusiondirectory
github: fusiondirectory
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- PHP: [ php 5.6 ]
- PHP provenance: [original Debian]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
# Specify docker image
image: debian:stretch
# Define variable to disable SSL verification of GIT
variables:
GIT_SSL_NO_VERIFY: "true"
stages:
- lint
- codestyle
- transifex
- tarballs
- trigger
## Stage lint
# Perl lint
create_perl_lint_rapport:
stage: lint
only:
- branches
before_script:
- apt-get update -qq
- apt-get install -y -qq libarchive-extract-perl libcrypt-cbc-perl libdigest-sha-perl libfile-copy-recursive-perl
- apt-get install -y -qq libnet-ldap-perl libpath-class-perl libterm-readkey-perl libxml-twig-perl
script:
- perl -cW contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-insert-schema
# PHP lint (jessie)
create_php_lint_rapport_jessie:
image: php:5.6.33-cli-jessie
# PHP lint
create_php_lint_rapport:
image: registry.fusiondirectory.org/fusiondirectory/fd/phpcodesniffer-cli:buster
stage: lint
only:
- branches
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
# PHP lint (stretch)
create_php_lint_rapport_stretch:
image: php:cli-stretch
stage: lint
only:
- branches
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
# generate man pages to test validity
create_manpages_lint_report:
stage: lint
only:
- branches
before_script:
- apt-get update -qq
- apt-get install -y -qq perl man-db
script:
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-insert-schema contrib/man/fusiondirectory-insert-schema.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-setup contrib/man/fusiondirectory-setup.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/man/fusiondirectory.conf.pod contrib/man/fusiondirectory.conf.5
- lexgrog contrib/man/fusiondirectory-insert-schema.1
- lexgrog contrib/man/fusiondirectory-setup.1
- lexgrog contrib/man/fusiondirectory.conf.5
## Stage codestyle
# Generate perlcritic rapport
create_perlcritic_rapport:
stage: codestyle
only:
- branches
before_script:
- apt-get update -qq
- apt-get install -y -qq libperl-critic-perl
script:
- cp contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-setup.pl
- cp contrib/bin/fusiondirectory-insert-schema contrib/bin/fusiondirectory-insert-schema.pl
- perlcritic --quiet --verbose "%f~|~%s~|~%l~|~%c~|~%m~|~%e~|~%p~||~%n" contrib/bin
# PHP codesniffer
create_php_code_sniffer_rapport:
image: registry.fusiondirectory.org/fusiondirectory/fd/phpcodesniffer-cli:buster
stage: codestyle
only:
- branches
before_script:
- apt-get update -qq
- apt-get install -y -qq git php-cli php-codesniffer
script:
- git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
- /root/.composer/vendor/bin/phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
- /root/.composer/vendor/bin/phpcs --config-set installed_paths /PHPCompatibility,/PHPCSUtils
- /root/.composer/vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion $PHP_COMPATIBILITY --file-list=./filelist
# Sonar publishing
sonar_publish:
image: sonar-cli:3.1.0.1141
# phpstan
create_phpstan_rapport:
image: registry.fusiondirectory.org/fusiondirectory/fd/phpstan-cli:buster
stage: codestyle
only:
- 1.3-dev
script:
- /home/sonar/*/bin/sonar-scanner
-D sonar.projectKey=fusiondirectory-dev
-D sonar.projectName=FusionDirectory-Dev
-D sonar.projectVersion=1.3
-D sonar.sourceEncoding=UTF-8
-D sonar.exclusions='html/themes/legacy/**/*,include/class_xml.inc'
-D sonar.gitlab.project_id="$CI_PROJECT_PATH"
-D sonar.gitlab.commit_sha="$CI_COMMIT_SHA"
-D sonar.gitlab.ref_name="$CI_COMMIT_REF_NAME"
# Sonar preview
sonar_preview:
image: sonar-cli:3.1.0.1141
stage: codestyle
except:
- 1.3-dev
- branches
script:
- /home/sonar/*/bin/sonar-scanner
-D sonar.projectKey=fusiondirectory-dev
-D sonar.projectName=FusionDirectory-Dev
-D sonar.projectVersion=1.3
-D sonar.sourceEncoding=UTF-8
-D sonar.exclusions='html/themes/legacy/**/*,include/class_xml.inc'
-D sonar.gitlab.project_id="$CI_PROJECT_PATH"
-D sonar.gitlab.commit_sha="$CI_COMMIT_SHA"
-D sonar.gitlab.ref_name="$CI_COMMIT_REF_NAME"
-D sonar.analysis.mode=preview
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- composer global require phpstan/phpstan=0.12.94
- cp ../dev-tools/phpstan/fusiondirectory/1.5/*.neon .
- /root/.composer/vendor/bin/phpstan analyse -c phpstan.neon
# fusiondirectory-update-locale
fusiondirectory-update-locale:
image: php:cli-stretch
image: registry.fusiondirectory.org/fusiondirectory/fd/transifex-cli:buster
stage: transifex
only:
- branches
before_script:
- apt-get update -qq
- apt-get install -y -qq gettext git
- dev
script:
- git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
# Update transifex
update-transifex:
image: php:cli-stretch
image: registry.fusiondirectory.org/fusiondirectory/fd/transifex-cli:buster
stage: transifex
only:
- /^1.*$/
before_script:
- apt-get update -qq
- apt-get install -y -qq gettext git transifex-client
- dev
script:
- git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- echo $'[https://www.transifex.com]\nrest_hostname = '"$TRANSIFEX_REST_HOSTNAME"$'\nusername = '"$TRANSIFEX_USER"$'\ntoken = '"$TRANSIFEX_TOKEN"$'\n' > ~/.transifexrc
- tx pull -a -f
- ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
- tx push -f -s -t --skip --no-interactive
- tx push -s -t --skip
build-tarballs:
stage: tarballs
only:
- /^1.*$/
- dev
script:
- mkdir ../fusiondirectory-$(cut -d '-' -f1 <<< $CI_COMMIT_REF_NAME)
- cp -a ./* ../fusiondirectory-$(cut -d '-' -f1 <<< $CI_COMMIT_REF_NAME)
- mv ../fusiondirectory-$(cut -d '-' -f1 <<< $CI_COMMIT_REF_NAME) ./
- mkdir ../fusiondirectory-$VERSION/
- mv ./* ../fusiondirectory-$VERSION/
- mv ../fusiondirectory-$VERSION/ ./
- tar -cvzf fusiondirectory-$VERSION.tar.gz *
artifacts:
name: fusiondirectory-$(cut -d '-' -f1 <<< $CI_COMMIT_REF_NAME)
paths:
- ./fusiondirectory-$(cut -d '-' -f1 <<< $CI_COMMIT_REF_NAME)
expire_in: 1h
- fusiondirectory-$VERSION.tar.gz
expire_in: 30d
build-release:
stage: tarballs
only:
- tags
script:
- mkdir "../fusiondirectory-$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')"
- cp -a ./* "../fusiondirectory-$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')"
- mv "../fusiondirectory-$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')" ./
- VERSION=$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')
- mkdir ../fusiondirectory-$VERSION/
- mv ./* ../fusiondirectory-$VERSION/
- mv ../fusiondirectory-$VERSION/ ./
- tar -cvzf fusiondirectory-$VERSION.tar.gz *
artifacts:
name: fusiondirectory-"$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')"
paths:
- ./fusiondirectory-"$(grep '%' Changelog.md | head -n1 | cut -d ' ' -f3 | tr -d '"')"
- ./*.tar.gz
trigger-plugins:
variables:
GROUP: $GROUP
BRANCH_CORE: $CI_COMMIT_REF_NAME
BRANCH_PLUGIN: $CI_COMMIT_REF_NAME
BRANCH_BUILD_DEBIAN_BUSTER: $BRANCH_BUILD_DEBIAN_BUSTER
BRANCH_BUILD_CENTOS_7: $BRANCH_BUILD_CENTOS_7
stage: trigger
only:
- dev
trigger:
project: fusiondirectory/fd-plugins
branch: $CI_COMMIT_REF_NAME
[main]
host = https://www.transifex.com
type = PO
[FusionDirectory-13.core]
[o:fusiondirectory:p:FusionDirectory-14:r:core]
file_filter = locale/<lang>/fusiondirectory.po
source_file = locale/en/fusiondirectory.po
source_lang = en
......
......@@ -39,7 +39,7 @@ documentation and additional help.
* Steve Moitozo <god at zilla dot us>
Password checker
* Benoit Mortier <benoit.mortier@opensides.be>
* Benoit Mortier <benoit.mortier@fusiondirectory.org>
Butracking, QA, French translation
* Igor Muratov <migor@altlinux.org>
......@@ -83,6 +83,7 @@ documentation and additional help.
First version of the quota plugin
First version of the supann plugin
First version of the board plugin
Plugin Manager
* Leonid Bogdanov <leonid_bogdanov@mail.ru>
patch for the manager fonctionnality in the General user tab
......@@ -187,7 +188,7 @@ documentation and additional help.
* Martin Hamant <mh@ow2.org>
Coded the LockUser fonction for the webservice
* Jonathan Swaelens <jonathan@opensides.be>
* Jonathan Swaelens <jonathan.swaelens@fusiondirectory.org>
QA on FusionDirectory
RPM packaging maintener and ArchLinux Packager
......@@ -201,7 +202,7 @@ documentation and additional help.
* Thomas Niercke <thomas@niercke.de>
Code and ideas for making Argonaut Events Extensible
* Paola Penati <paolapenati@hotmail.com>
* Paola Penati <paola.penati@fusiondirectory.org>
Italian translation of FusionDirectory and the website
* Martin Hamant <mh@ow2.org>
......@@ -218,3 +219,35 @@ documentation and additional help.
* Peter Linss
Added catchall table to postfix plugin
* Renato Ramonda
Support for SSH ed25519 keys
* Judicael Courant <judicael.courant@orange.com>
Weak random generator use in fusiondirectory-setup
* Sinan Sekerci - Dreamlab
Security Audit of FusionDirectory
Full Path Disclosure
Cross-Site Scripting (XSS)
Arbitrary File Access (PNG files only)
* Manuel Pellegrinet <manuel.pellegrinet@yoroi.company>
Security Audit of FusionDirectory
Cross-Site Scripting (XSS)
Improper session handling
* Froger Soisik <soisik.froger@gmail.com>
Dynamic group tab support
* Clement Oudot <clement.oudot@worteks.com>
Plugin NextCloud
* Matthew Newton <matthew.newton@networkradius.com>
EpochDays attributes as human readable
* Cass Rebbelin <Rebbelin@hisolutions.com>
PNG traversal path vulnerability
* Milan Stute <mstute@seemoo.tu-darmstadt.de>
Contributed Social Handlers for google scholar, Github, Matrix
......@@ -34,7 +34,7 @@ All projects and everyone participating in it is governed by [FusionDirectory Co
We have an various channel of communications
* [#fusiondirectory, the irc channel of FusionDirectory on freenode](https://webchat.freenode.net/), channel #fusiondirectory
* [#fusiondirectory, the irc channel of FusionDirectory on Libera](https://web.libera.chat/), channel #fusiondirectory
* [FusionDirectory Users mailing list](https://lists.fusiondirectory.org/wws/info/users)
* [FusionDirectory dev mailing list](https://lists.fusiondirectory.org/wws/info/developpers)
......@@ -114,8 +114,8 @@ Fill out the **Contribution** template to create thoses issues, the information
* **Provide a step-by-step description of the contribution** in as many details as possible.
* **Include screenshots and animated GIFs** which help you demonstrate what this contribution is about. You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
* **Explain why this contribution would be useful** to most FusionDirectory users.
* **Follow the** [Coding style](https://fusiondirectory-developer-documentation.readthedocs.io/en/latest/coding/codingstandards.html)
* **Use our** `PHP CodeSniffer <http://pear.php.net/package/PHP_CodeSniffer>`_ rules to check code compliance [CodeSniffer](https://fusiondirectory-developer-documentation.readthedocs.io/en/latest/coding/codingstandards.html#checking-standards)
* **Follow the** [Coding style](https://fusiondirectory-developer-documentation.readthedocs.io/en/1.4/fusiondirectory/coding/codingstandards.html)
* **Use our** `PHP CodeSniffer <http://pear.php.net/package/PHP_CodeSniffer>`_ rules to check code compliance [CodeSniffer](https://fusiondirectory-developer-documentation.readthedocs.io/en/1.4/fusiondirectory/coding/codingstandards.html)
## Coding with style
......@@ -165,7 +165,7 @@ Where type can be :
Examples:
```
:sparkles: feat(supann): Make supannRefId multivaluated
:sparkles: feat(supann): Make supannRefId multivalued
supannRefId on Structure object is too small and mono valued
......@@ -174,7 +174,7 @@ close #5685
### PHP style Guide
To be sure to respect our guidelines, read [Coding standards](https://fusiondirectory-developer-documentation.readthedocs.io/en/latest/coding/index.html)
To be sure to respect our guidelines, read [Coding standards](https://fusiondirectory-developer-documentation.readthedocs.io/en/1.4/fusiondirectory/coding/codingstandards.html)
## Licensing
......
This diff is collapsed.
This diff is collapsed.
......@@ -62,24 +62,36 @@ Be aware that if your naming policy of user cn's differs from the way FusionDire
## Get help
There are a couple ways you can try [to get help][get help].You can also join the `#fusiondirectory` IRC channel at freenode.net.
### Community support
You can [register on our system][register] and enter issues [FusionDirectory][issues-core] for the core program, and
[FusionDirectory Plugins][issues-plugins] for plugins.
There are a couple of ways you can try [to get help][get help].
## IRC Etiquette
### Professional support
* If we don't answer right away then just hang out in the channel. Someone will
eventually write back to you as it just means we are away from keyboard,
working on something else, or in a different timezone than you.
Professional support is provided through of subscription.
* You should treat IRC as what it is: asynchronous chat. Sure the messages can
be instant but in most channels people are in different time zones. At times
chat replies can be in excess of 24hrs.
* [FusionDirectory Subscription][subscription-fusiondirectory] : Global subscription for FusionDirectory
The subscription provides access to FusionDirectory's enterprise repository, tested and pre-packaged versions with patches between versions,
providing reliable software updates and security enhancements, as well as technical help and support.
Choose the plan that's right for you. Our subscriptions are flexible and scalable according to your needs
The subscription period is one year from the date of purchase and provides you with access to the extensive infrastructure of enterprise-class software and services.
### Best practice badge
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/351/badge)](https://bestpractices.coreinfrastructure.org/projects/351)
## Donate
## Crowfunding
If you like us and want to send us a small contribution, you can use the following crowdfunding services
If you like [FusionDirectory][FusionDirectory] and would like to [donate][donate-liberapay] even a small amount you can go to our Liberapay account
* [donate-liberapay]
* [donate-kofi]
* [donate-github]
## License
......@@ -87,14 +99,17 @@ If you like [FusionDirectory][FusionDirectory] and would like to [donate][donate
[FusionDirectory]: https://www.fusiondirectory.org/
[fusiondirectory-install]: http://documentation.fusiondirectory.org/en/documentation_admin
[fusiondirectory-install]: https://fusiondirectory-user-manual.readthedocs.io/en/latest/fusiondirectory/install/index.html
[get help]: https://fusiondirectory-user-manual.readthedocs.io/en/latest/support/index.html
[get help]: https://www.fusiondirectory.org/contact-us/
[subscription-fusiondirectory]: https://www.fusiondirectory.org/en/iam-tool-service-subscriptions/
[register]: https://register.fusiondirectory.org
[issues-core]: https://gitlab.fusiondirectory.org/fusiondirectory/fd/issues
[donate-liberapay]: https://liberapay.com/fusiondirectory/donate
[issues-plugins]: https://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/issues
[donate-kofi]: https://ko-fi.com/fusiondirectory
[donate-github]: https://github.com/fusiondirectory
[donate-liberapay]: https://liberapay.com/fusiondirectory/donate
### Reporting Security Vulnerabilities
Although we try to be proactive in preventing security concerns, it is unfortunately inevitable that security breaches will be discovered in all software, including our own.
It is common practice in open source to disclose a security concern to the vendor in a responsible and private manner prior to publication, so that a patch can be prepared, and so that we can take proactive measures to protect FusionDirectory users.
### What is a “security” issue ?
A security issue is a type of bug that can affect the security of FusionDirectory installations.
Specifically, it is a report of a bug that you have found in the code for FusionDirectory and that you have determined can be used to gain some level of access to a site running FusionDirectory that you should not have.
### Where do I report security issues ?
If you would like to contact us with a security vulnerability or possible vulnerability, please contact us via email [security@fusiondirectory.org](mailto:security@fusiondirectory.org).
Your email can be signed with the following public gpg key :
Benoit Mortier : **32BA 180F 6E14 7B5F 52BE 6322 EF2F F1E4 8638 EAD1**
**In any case, you should not share details with anyone else until the bug fix has been officially released.**
This diff is collapsed.
# Include FusionDirectory to your web service
Alias /fusiondirectory /var/www/fusiondirectory/html
Alias /fusiondirectory /usr/share/fusiondirectory/html
<IfModule mod_php5.c>
<Directory /fusiondirectory>
php_admin_flag engine on
php_admin_flag expose_php off
php_admin_value upload_tmp_dir /var/spool/fusiondirectory/
php_admin_value session.cookie_lifetime 0
# Remove the comment from the line below if you use fusiondirectory-setup --encrypt-passwords
<Directory /usr/share/fusiondirectory/html>
# Remove the comment from the line below if you use fusiondirectory-configuration-manager --encrypt-passwords
# include /etc/fusiondirectory/fusiondirectory.secrets
</Directory>
</IfModule>
#!/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
This diff is collapsed.
File added
File deleted
contrib/images/Fusiondirectory-logo.png

22.6 KB

contrib/images/favicon.png

2.57 KB

This diff is collapsed.
.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
. if \nF \{
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "FUSIONDIRECTORY-INSERT-SCHEMA 1"
.TH FUSIONDIRECTORY-INSERT-SCHEMA 1 "2017-05-29" "FusionDirectory 1.2" "FusionDirectory Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
fusiondirectory\-insert\-schema \- insert schema needed by FusionDirectory into the ldap server
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
fusiondirectory-insert-schema [\-y] [\-n] [\-c] [\-o options] [path] [\-h|\-l|\-i schema1 schema2|\-m schema1 schema2|\-e schema1 schema2]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This program will insert the schema needed by FusionDirectory into the ldap server, or the specified schemas
.SS "Options"
.IX Subsection "Options"
.IP "\-i" 6
.IX Item "-i"
This option insert the given list of schemas instead of the default list
.IP "\-m" 6
.IX Item "-m"
This option insert the given list of schemas, replacing already inserted versions of those schemas
.IP "\-e" 6
.IX 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.
.IP "\-l" 6
.IX Item "-l"
This option list inserted schemas
.IP "\-n" 6
.IX Item "-n"
This option will make generated ldifs file to not be deleted after execution. Might be useful to understand errors.
.IP "\-c" 6
.IX Item "-c"
This option make the program continue even if an error occur
.IP "\-y" 6
.IX 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.
.IP "\-o" 6
.IX 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.
.SH "EXAMPLES"
.IX Header "EXAMPLES"
.Vb 2
\& 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 \*(Aqcn=admin,cn=config\*(Aq \-w password \-x"
\& Connect to another ldap server to insert the schema
.Ve
.SH "BUGS"
.IX Header "BUGS"
Please report any bugs, or post any suggestions, to the fusiondirectory mailing list fusiondirectory-users or to
<https://forge.fusiondirectory.org/projects/fdirectory/issues/new>
.SH "AUTHOR"
.IX Header "AUTHOR"
Come Bernigaud
.SH "LICENCE AND COPYRIGHT"
.IX Header "LICENCE AND COPYRIGHT"
This code is part of FusionDirectory <http://www.fusiondirectory.org>
.IP "Copyright (C) 2011\-2017 FusionDirectory Project" 1
.IX Item "Copyright (C) 2011-2017 FusionDirectory Project"
.PP
This program is distributed in the hope that it will be useful,
but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of
\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE. \s0 See the
\&\s-1GNU\s0 General Public License for more details.