Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/network-servers/_index.adoc
Show First 20 Lines • Show All 1,307 Lines • ▼ Show 20 Lines | |||||||||||
# numResponses: 2 | # numResponses: 2 | ||||||||||
# numEntries: 1 | # numEntries: 1 | ||||||||||
.... | .... | ||||||||||
This example entry shows the values for the `dn`, `mail`, `cn`, `uid`, and `telephoneNumber` attributes. | This example entry shows the values for the `dn`, `mail`, `cn`, `uid`, and `telephoneNumber` attributes. | ||||||||||
The cn attribute is the RDN. | The cn attribute is the RDN. | ||||||||||
More information about LDAP and its terminology can be found at http://www.openldap.org/doc/admin24/intro.html[http://www.openldap.org/doc/admin24/intro.html]. | More information about LDAP and its terminology can be found at https://www.openldap.org/doc/admin24/intro.html[https://www.openldap.org/doc/admin24/intro.html]. | ||||||||||
grahamperrinUnsubmitted Done Inline Actions
grahamperrin: | |||||||||||
[[ldap-config]] | [[ldap-config]] | ||||||||||
=== Configuring an LDAP Server | === Configuring an LDAP Server | ||||||||||
FreeBSD does not provide a built-in LDAP server. | FreeBSD does not provide a built-in LDAP server. | ||||||||||
Begin the configuration by installing package:net/openldap-server[] package or port: | Begin the configuration by installing package:net/openldap26-server[] package or port: | ||||||||||
[source,shell] | [source,shell] | ||||||||||
.... | .... | ||||||||||
# pkg install openldap-server | # pkg install openldap26-server | ||||||||||
Done Inline ActionsNot consistent with https://www.freshports.org/net/openldap26-server/#add. grahamperrin: Not consistent with <https://www.freshports.org/net/openldap26-server/#add>. | |||||||||||
.... | .... | ||||||||||
There is a large set of default options enabled in the extref:{linux-users}[package, software]. | There is a large set of default options enabled in the extref:{linux-users}[package, software]. | ||||||||||
Review them by running `pkg info openldap-server`. | Review them by running `pkg info openldap26-server`. | ||||||||||
Done Inline ActionsTrue? (See above.) grahamperrin: True? (See above.) | |||||||||||
If they are not sufficient (for example if SQL support is needed), please consider recompiling the port using the appropriate crossref:ports[ports-using,framework]. | If they are not sufficient (for example if SQL support is needed), please consider recompiling the port using the appropriate crossref:ports[ports-using,framework]. | ||||||||||
The installation creates the directory [.filename]#/var/db/openldap-data# to hold the data. | The installation creates the directory [.filename]#/var/db/openldap-data# to hold the data. | ||||||||||
The directory to store the certificates must be created: | The directory to store the certificates must be created: | ||||||||||
[source,shell] | [source,shell] | ||||||||||
.... | .... | ||||||||||
# mkdir /usr/local/etc/openldap/private | # mkdir /usr/local/etc/openldap/private | ||||||||||
▲ Show 20 Lines • Show All 983 Lines • ▼ Show 20 Lines | |||||||||||
Support for HTTP2 reverse proxy connections by using the [.filename]#mod_proxy_http2.so# module. | Support for HTTP2 reverse proxy connections by using the [.filename]#mod_proxy_http2.so# module. | ||||||||||
When configuring the ProxyPass or RewriteRules [P] statements, they should use h2:// for the connection. | When configuring the ProxyPass or RewriteRules [P] statements, they should use h2:// for the connection. | ||||||||||
=== Dynamic Websites | === Dynamic Websites | ||||||||||
In addition to mod_perl and mod_php, other languages are available for creating dynamic web content. | In addition to mod_perl and mod_php, other languages are available for creating dynamic web content. | ||||||||||
These include Django and Ruby on Rails. | These include Django and Ruby on Rails. | ||||||||||
==== Django | |||||||||||
Django is a BSD-licensed framework designed to allow developers to write high performance, elegant web applications quickly. | |||||||||||
It provides an object-relational mapper so that data types are developed as Python objects. | |||||||||||
A rich dynamic database-access API is provided for those objects without the developer ever having to write SQL. | |||||||||||
It also provides an extensible template system so that the logic of the application is separated from the HTML presentation. | |||||||||||
Django depends on [.filename]#mod_python#, and an SQL database engine. | |||||||||||
In FreeBSD, the package:www/py-django[] port automatically installs [.filename]#mod_python# and supports the PostgreSQL, MySQL, or SQLite databases, with the default being SQLite. | |||||||||||
To change the database engine, type `make config` within [.filename]#/usr/ports/www/py-django#, then install the port. | |||||||||||
Once Django is installed, the application will need a project directory along with the Apache configuration in order to use the embedded Python interpreter. | |||||||||||
This interpreter is used to call the application for specific URLs on the site. | |||||||||||
To configure Apache to pass requests for certain URLs to the web application, add the following to [.filename]#httpd.conf#, specifying the full path to the project directory: | |||||||||||
[.programlisting] | |||||||||||
.... | |||||||||||
<Location "/"> | |||||||||||
SetHandler python-program | |||||||||||
PythonPath "['/dir/to/the/django/packages/'] + sys.path" | |||||||||||
PythonHandler django.core.handlers.modpython | |||||||||||
SetEnv DJANGO_SETTINGS_MODULE mysite.settings | |||||||||||
PythonAutoReload On | |||||||||||
PythonDebug On | |||||||||||
</Location> | |||||||||||
.... | |||||||||||
Refer to https://docs.djangoproject.com[https://docs.djangoproject.com] for more information on how to use Django. | |||||||||||
==== Ruby on Rails | |||||||||||
Ruby on Rails is another open source web framework that provides a full development stack. | |||||||||||
It is optimized to make web developers more productive and capable of writing powerful applications quickly. | |||||||||||
On FreeBSD, it can be installed using the package:www/rubygem-rails[] package or port. | |||||||||||
Refer to http://guides.rubyonrails.org[http://guides.rubyonrails.org] for more information on how to use Ruby on Rails. | |||||||||||
[[network-ftp]] | [[network-ftp]] | ||||||||||
== File Transfer Protocol (FTP) | == File Transfer Protocol (FTP) | ||||||||||
The File Transfer Protocol (FTP) provides users with a simple way to transfer files to and from an FTP server. | The File Transfer Protocol (FTP) provides users with a simple way to transfer files to and from an FTP server. | ||||||||||
FreeBSD includes FTP server software, ftpd, in the base system. | FreeBSD includes FTP server software, ftpd, in the base system. | ||||||||||
FreeBSD provides several configuration files for controlling access to the FTP server. | FreeBSD provides several configuration files for controlling access to the FTP server. | ||||||||||
▲ Show 20 Lines • Show All 644 Lines • Show Last 20 Lines |