Commit f32b6c0
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 "NC\",
"NEXTCLOUD\" or "WORKGROUP\" to their username. The respective prefix is
removed from the given username when trying to login if the login failed
and also interpreting the given username as an email address failed.
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".1 parent 4e39d1c commit f32b6c0
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | 467 | | |
469 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
470 | 472 | | |
471 | | - | |
| 473 | + | |
472 | 474 | | |
473 | | - | |
474 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
475 | 481 | | |
476 | | - | |
477 | 482 | | |
478 | 483 | | |
479 | 484 | | |
| |||
0 commit comments