summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2014-02-26 18:06:13 +0100
committerkondou <kondou@ts.unde.re>2014-02-26 18:06:13 +0100
commitda19109f403d4d41a417181f5e1de67972334bad (patch)
tree10a6830d406627d4e0c8285e3eeb97e34a0a9f31 /lib/base.php
parent7f05c23231b7f77ccc155cdc229e1ae21267e0e5 (diff)
downloadnextcloud-server-da19109f403d4d41a417181f5e1de67972334bad.tar.gz
nextcloud-server-da19109f403d4d41a417181f5e1de67972334bad.zip
Config to disable basic_auth username chacking
This can be confusing and/or annoying
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 49cbb1279d1..351b91b7dfa 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -554,7 +554,8 @@ class OC {
OC_User::useBackend(new OC_User_Database());
OC_Group::useBackend(new OC_Group_Database());
- if (isset($_SERVER['PHP_AUTH_USER']) && self::$session->exists('loginname')
+ $basic_auth = OC_Config::getValue('basic_auth', true);
+ if ($basic_auth && isset($_SERVER['PHP_AUTH_USER']) && self::$session->exists('loginname')
&& $_SERVER['PHP_AUTH_USER'] !== self::$session->get('loginname')) {
$sessionUser = self::$session->get('loginname');
$serverUser = $_SERVER['PHP_AUTH_USER'];
olor: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
OC.L10N.register(
    "lib",
    {
    "Cannot write into \"config\" directory!" : "Ne skribeblas la dosierujo “config”!",
    "See %s" : "Vidi %s",
    "PHP %s or higher is required." : "PHP %s aŭ pli alta necesas.",
    "PHP with a version lower than %s is required." : "Necesas pli malalta eldono de PHP ol %s.",
    "Following databases are supported: %s" : "La jenan datumbazoj kongruas: %s",
    "The command line tool %s could not be found" : "La komandolinia ilo %s ne troviĝis",
    "The library %s is not available." : "La biblioteko %s ne haveblas.",
    "Unknown filetype" : "Ne konatas dosiertipo",
    "Invalid image" : "Ne validas bildo",
    "today" : "hodiaŭ",
    "yesterday" : "hieraŭ",
    "_%n day ago_::_%n days ago_" : ["antaŭ %n tago","antaŭ %n tagoj"],
    "last month" : "lastamonate",
    "last year" : "lastajare",
    "_%n year ago_::_%n years ago_" : ["antaŭ %n jaro","antaŭ %n jaroj"],
    "seconds ago" : "sekundoj antaŭe",
    "File name contains at least one invalid character" : "Dosiernomo enhavas almenaŭ unu nevalidan signon",
    "File name is too long" : "La dosiernomo tro longas",
    "Empty filename is not allowed" : "Malplena dosiernomo ne permesatas",
    "__language_name__" : "Esperanto",
    "Apps" : "Aplikaĵoj",
    "Users" : "Uzantoj",
    "Unknown user" : "Nekonata uzanto",
    "%s enter the database username." : "%s enigu la uzantonomon de la datumbazo.",
    "%s enter the database name." : "%s enigu la nomon de la datumbazo.",
    "%s you may not use dots in the database name" : "%s vi ne povas uzi punktojn en la nomo de la datumbazo",
    "Oracle connection could not be established" : "Konekto al Oracle ne povas stariĝi",
    "Oracle username and/or password not valid" : "La uzantonomo de Oracle aŭ la pasvorto ne validas",
    "PostgreSQL username and/or password not valid" : "La uzantonomo de PostgreSQL aŭ la pasvorto ne validas",
    "Set an admin username." : "Starigi administran uzantonomon.",
    "Set an admin password." : "Starigi administran pasvorton.",
    "Can't create or write into the data directory %s" : "Ne kreeblas aŭ ne skribeblas la dosierujo de datumoj %s",
    "Sharing %s failed, because the backend does not allow shares from type %i" : "Kunhavigo de %s malsukcesis, ĉar la motoro ne permesas kunhavojn el tipo %i",
    "Sharing %s failed, because the file does not exist" : "Kunhavigo de %s malsukcesis, ĉar la dosiero ne ekzistas",
    "You are not allowed to share %s" : "Vi ne permesatas kunhavigi %s",
    "Sharing %s failed, because the user %s does not exist" : "Kunhavigo de %s malsukcesis, ĉar la uzanto %s ne ekzistas",
    "Sharing %s failed, because the user %s is not a member of any groups that %s is a member of" : "Kunhavigo de %s malsukcesis, ĉar la uzanto %s estas ano de neniu grupo, de kiu %s estas ano",
    "Sharing %s failed, because this item is already shared with %s" : "Kunhavigo de %s malsukcesis, ĉar la ero jam kunhavatas kun %s",
    "Sharing %s failed, because the group %s does not exist" : "Kunhavigo de %s malsukcesis, ĉar la grupo %s ne ekzistas",
    "Sharing %s failed, because %s is not a member of the group %s" : "Kunhavigo de %s malsukcesis, ĉar %s ne estas ano de la grupo %s",
    "Sharing %s failed, because sharing with links is not allowed" : "Kunhavo de %s malsukcesis, ĉar kunhavo per ligiloj ne permesatas",
    "Not allowed to create a federated share with the same user" : "Vi ne permesas krei federan kunhavon kun la sama uzanto",
    "Sharing backend %s must implement the interface OCP\\Share_Backend" : "Kunhavmotoro %s devas realigi la interfacon “OCP\\Share_Backend”",
    "Sharing backend %s not found" : "Kunhavmotoro %s ne troviĝas",
    "Sharing backend for %s not found" : "Kunhavmotoro por %s ne troviĝas",
    "Sharing %s failed, because resharing is not allowed" : "Kunhavigo de %s malsukcesis, ĉar rekunhavigo ne permesatas",
    "Sharing %s failed, because the sharing backend for %s could not find its source" : "Kunhavigo de %s malsukcesis, ĉar la kunhavmotoro por %s ne povis trovi ĝian fonton",
    "Expiration date is in the past" : "Senvalidiĝa dato estintas",
    "%s shared »%s« with you" : "%s kunhavigis “%s” kun vi",
    "%s via %s" : "%s per %s",
    "Could not find category \"%s\"" : "Ne troviĝis kategorio “%s”",
    "A valid username must be provided" : "Valida uzantonomo devas proviziĝi",
    "Username contains whitespace at the beginning or at the end" : "Uzantonomo enhavas blankospacon eke aŭ maleke",
    "A valid password must be provided" : "Valida pasvorto devas proviziĝi",
    "The username is already being used" : "La uzantonomo jam uzatas",
    "Can't read file" : "Ne legeblas dosiero",
    "Application is not enabled" : "La aplikaĵo ne estas kapabligita",
    "Authentication error" : "Aŭtentiga eraro",
    "Token expired. Please reload page." : "Ĵetono eksvalidiĝis. Bonvolu reŝargi la paĝon.",
    "Cannot write into \"config\" directory" : "Ne skribeblas la dosierujo “config”",
    "Cannot write into \"apps\" directory" : "Ne skribeblas la dosierujo “apps”",
    "Please ask your server administrator to install the module." : "Bonvolu peti vian sistemadministranton, ke ĝi instalu la modulon.",
    "PHP module %s not installed." : "La PHP-modulo %s ne instalitas.",
    "Please ask your server administrator to restart the web server." : "Bonvolu peti viajn serviladministranton, ke ŝi/li reekfunkciigu la TTT-servilon.",
    "PostgreSQL >= 9 required" : "PostgreSQL >= 9 necesas",
    "Please upgrade your database version" : "Bonvolu ĝisdatigi la eldonon de via datumbazo",
    "Storage connection error. %s" : "Memorokonekta eraro. %s"
},
"nplurals=2; plural=(n != 1);");