Commit 51fa32d
committed
allow login with prefix of "<domain>\" for selected domains
Some WebDAV clients force to use a domain name for authentication. That
domain name is prepended to the username and separated from it using a
backslash.
This commit allows any user to login with a prefix of "WORKGROUP\",
"NC\", or "NEXTCLOUD\" added to their username. The respective prefix is
removed from the given username when trying to login, if the login
failed using the original username. The same logic is applied when
testing login tokens.
In particular, this can help allowing access to Nextcloud for devices
with an interface to SharePoint that forces to specify a domain name for
authentication. As an example, HP LaserJet M428/M429 (and many others)
can then "Scan to Nextcloud" by using the "Scan to SharePoint" feature
(wich is essentially WebDav) and configuring a domain name of "NC",
"NEXTCLOUD" or "WORKGROUP".
Signed-off-by: Bernhard Kirchen <schlimmchen@posteo.net>1 parent 41148ac commit 51fa32d
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
411 | 420 | | |
412 | 421 | | |
413 | 422 | | |
| |||
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
450 | | - | |
| 459 | + | |
451 | 460 | | |
452 | 461 | | |
453 | 462 | | |
| |||
779 | 788 | | |
780 | 789 | | |
781 | 790 | | |
782 | | - | |
| 791 | + | |
783 | 792 | | |
784 | 793 | | |
785 | 794 | | |
| |||
0 commit comments