forked from Kozea/Radicale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Kozea#1544 from pbiering/option-strip-domain-name-…
…from-login Option strip domain name from login
- Loading branch information
Showing
5 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,16 @@ def test_htpasswd_whitespace_password(self) -> None: | |
def test_htpasswd_comment(self) -> None: | ||
self._test_htpasswd("plain", "#comment\n #comment\n \ntmp:bepo\n\n") | ||
|
||
def test_htpasswd_lc_username(self) -> None: | ||
self.configure({"auth": {"lc_username": "True"}}) | ||
self._test_htpasswd("plain", "tmp:bepo", ( | ||
("tmp", "bepo", True), ("TMP", "bepo", True), ("tmp1", "bepo", False))) | ||
|
||
def test_htpasswd_strip_domain(self) -> None: | ||
self.configure({"auth": {"strip_domain": "True"}}) | ||
self._test_htpasswd("plain", "tmp:bepo", ( | ||
("tmp", "bepo", True), ("[email protected]", "bepo", True), ("tmp1", "bepo", False))) | ||
|
||
def test_remote_user(self) -> None: | ||
self.configure({"auth": {"type": "remote_user"}}) | ||
_, responses = self.propfind("/", """\ | ||
|