# Where the server will run (-h option)
# - ldapi:/// is required for on-the-fly configuration using client tools
#   (use SASL with EXTERNAL mechanism for authentication)
# - default: ldapi:/// ldap:///
# - example: ldapi:/// ldap://127.0.0.1/ ldap://10.0.0.1:1389/ ldaps:///
{
$OUT = "";
$OUT .= "SLAPD_URLS=\"ldap://127.0.0.1/ ldaps://127.0.0.1/";
if ($LocalIP ne '')
    {
        $OUT .= " ldap://$LocalIP/ ldaps://$LocalIP/";
    }
if (($ExternalIP ne '') && ($ldap{access} eq 'public'))
    {
        $OUT .= " ldap://$ExternalIP/ ldaps://$ExternalIP/";
    }
$OUT .= " ldapi:///\"\n";
}