--- /dev/null
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+
+use Data::Dumper;
+
+use PMG::LDAPConfig;
+
+my $schema = PMG::LDAPConfig->createSchema(1);
+my $properties = $schema->{properties};
+
+print PVE::RESTHandler::dump_properties($properties);
+
+exit(0);
--- /dev/null
+`accountattr`: `<string>` ('default =' `sAMAccountName, uid`)::
+
+Account attribute name name.
+
+`basedn`: `<string>` ::
+
+Base domain name.
+
+`binddn`: `<string>` ::
+
+Bind domain name.
+
+`bindpw`: `<string>` ::
+
+Bind password.
+
+`comment`: `<string>` ::
+
+Description.
+
+`disable`: `<boolean>` ::
+
+Flag to disable/deactivate the entry.
+
+`filter`: `<string>` ::
+
+LDAP filter.
+
+`groupbasedn`: `<string>` ::
+
+Base domain name for groups.
+
+`groupclass`: `<string>` ('default =' `group, univentionGroup, ipausergroup`)::
+
+List of objectclasses for groups.
+
+`mailattr`: `<string>` ('default =' `mail, userPrincipalName, proxyAddresses, othermailbox, mailAlternativeAddress`)::
+
+List of mail attribute names.
+
+`mode`: `<ldap | ldaps>` ('default =' `ldap`)::
+
+LDAP protocol mode ('ldap' or 'ldaps').
+
+`port`: `<integer> (1 - 65535)` ::
+
+Specify the port to connect to.
+
+`profile`: `<string>` ::
+
+Profile ID.
+
+`server1`: `<string>` ::
+
+Server address.
+
+`server2`: `<string>` ::
+
+Fallback server address. Userd when the first server is not available.
+
--- /dev/null
+[[pmg_ldap_configuration_file]]
+ifdef::manvolnum[]
+ldap.conf(5)
+============
+:pmg-toplevel:
+
+NAME
+----
+
+ldap.conf - Proxmox Mail Gateway LDAP Configuration
+
+
+SYNOPSIS
+--------
+
+`/etc/pmg/ldap.conf`
+
+
+DESCRIPTION
+-----------
+endif::manvolnum[]
+ifndef::manvolnum[]
+LDAP Configuration
+==================
+endif::manvolnum[]
+
+The file `/etc/pmg/ldap.conf` contains the LDAP configuration.
+
+
+File Format
+-----------
+
+TODO
+
+Options
+-------
+
+include::ldap.conf.5-opts.adoc[]
+
+
+ifdef::manvolnum[]
+include::pmg-copyright.adoc[]
+endif::manvolnum[]