Commit Graph

60 Commits

Author SHA1 Message Date
Jonas Sulzer
e7b9800df8 🐛 FIX: spaces/tabs
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-22 21:13:18 +02:00
Jonas Sulzer
1d2a662669 TEST: check if ssh2 module is installed
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-22 20:50:47 +02:00
Jonas Sulzer
8e1261004c 👌 IMPROVE: add SSH port as possible parameter
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-22 20:49:00 +02:00
Jonas Sulzer
07fddff440 📦 NEW: thanks to @DavieDavieDave (nextcloud/apps#56): SSH password authentication
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-22 20:17:06 +02:00
Sebastian
76189b6e3e Cleanly close imap connection
Signed-off-by: Sebastian <bash2@momou.ch>
2019-05-09 17:18:41 +02:00
Sebastian
104e409e83 Add Prosody XMPP MySQL authentication
Signed-off-by: Sebastian <sebastian@wiuwiu.de>

Change class name

Signed-off-by: Sebastian <sebastian@wiuwiu.de>

add prosody to title name

Signed-off-by: Sebastian <sebastian@wiuwiu.de>

integrate nextcloud code style guidelines

Signed-off-by: Sebastian <sebastian@wiuwiu.de>

clean up

Signed-off-by: Sebastian <sebastian@wiuwiu.de>

Applied nc code style

Signed-off-by: Sebastian <sebastian@wiuwiu.de>
2019-03-26 00:44:38 +01:00
Lutz Freitag
816ec2e3f9 basic authentication now follows redirects!
Signed-off-by: Lutz Freitag <lutz@gottliebtfreitag.de>
2019-03-24 19:04:46 -06:00
Jonas Sulzer
b9fa972c76 🐛 FIX: replace discouraged operators
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-03-14 14:52:25 +01:00
Jonas Sulzer
2744d3d2c3 Revert "Remove unused code"
This reverts commit 9df4e318d6.
2019-03-14 14:50:03 +01:00
Jonas Sulzer
8685369c65 👌 IMPROVE: correctly pass all parameters
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-03-13 18:46:46 +01:00
Christoph Wurst
9df4e318d6 Remove unused code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-03-13 18:22:28 +01:00
Jonas Sulzer
1cc24d39b1 📦 NEW: rcube library as replacement to php-imap/imap_open()
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-03-13 17:27:14 +01:00
Lutz Freitag
9be32d66a6 added a TestCase for basic auth
Signed-off-by: Lutz Freitag <lutz@gottliebtfreitag.de>
2019-02-27 10:53:08 -05:00
Lutz Freitag
e1fde296c6 added an authentication handler for external HTTP basic auth
Signed-off-by: Lutz Freitag <lutz@gottliebtfreitag.de>
2019-02-25 09:32:36 -05:00
Anojh Thayaparan
61e0a28204 fix closing brace
Signed-off-by: Anojh Thayaparan <anojh@hotmail.com>
2019-01-30 12:46:04 -08:00
Anojh Thayaparan
58dd7465b9 check for errors before printing
Signed-off-by: Anojh Thayaparan <anojh@hotmail.com>
2019-01-30 08:10:28 -08:00
Anojh Thayaparan
ba19fc9515 change imap_alerts to warning
Signed-off-by: Anojh Thayaparan <anojh@hotmail.com>
2019-01-28 10:30:04 -08:00
Anojh Thayaparan
d83a883a1c Implements error handling #11
Prints IMAP errors and alerts to the nextcloud log.

Signed-off-by: Anojh Thayaparan <anojh@hotmail.com>
2019-01-28 10:28:51 -08:00
Joas Schilling
8c5e80b21d Login via Email Address is handled by the LoginController
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-11 17:06:16 +01:00
Joas Schilling
b3565eda6c Use the querybuilder instead
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-11 14:50:01 +01:00
Jonas Sulzer
757c651995 use $stmt = \OC::$server->getDatabaseConnection()->prepare() for the remaining two
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-01-11 14:08:10 +01:00
Jonas Sulzer
cfd23bc01e use \OC::$server->getDatabaseConnection()->executeQuery() with fetch() where possible
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-01-10 23:22:24 +01:00
Jonas Sulzer
59e8646100 use \OC::$server->getDatabaseConnection()->executeQuery() where it works
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-01-10 14:12:49 +01:00
Jonas Sulzer
db5ab31ee4 change deprecated logging method
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-01-04 23:55:11 +01:00
Jonas Sulzer
a67e3e08e0 changing discouraged operators
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-01-04 23:55:02 +01:00
umgfoin
034a6ef057 Fix inappropriate SQL-quoting in imap.php
External user-authentification against IMAP-gateways:
Commit f8fb4d9 broke compatibility with PostgreSQL due to inappropriate SQL-quoting.
2018-01-29 15:02:27 +01:00
Pierre Ozoux
40b92ae6fe Properly merge master 2017-12-08 15:39:06 +01:00
Pierre Ozoux
59b8bb34aa Fix identation 2017-12-08 15:38:11 +01:00
Pierre Ozoux
3fffb53a12 Merge branch 'master' into imap-email 2017-12-08 15:36:51 +01:00
Marvin
90a3107edd handle escaped @ symbol fixes Apple AddressBook problems
Signed-off-by: Marvin Winkler <marvambass@gmail.com>
2017-11-22 10:43:28 +01:00
pierreozoux
2df5521c49 Add possibility to login with email on imap 2017-11-09 12:49:26 +01:00
Morris Jobke
306b633719 Fix namespace
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-07-25 09:00:21 +02:00
KoS
a7e276fa7a IMAP login can be restricted to a specific domain name. 2016-10-23 19:25:44 +02:00
Lukas Reschke
4492caa0e4 Double verify the SMB response
In case anonymous auth is allowed this can otherwise lead to unexpected actions.
2016-09-09 10:59:08 +02:00
Vincent Petry
b88c6d4b7a Escape host argument in SMB user backend 2016-07-04 10:20:14 +02:00
canepan
3e28fe3a67 Correct problem
Leaving "$webDavAuthUrl" in constructor, leads to a non-working class
2015-10-20 18:31:08 +02:00
Thomas Müller
d47ab68257 Merge pull request #2000 from stonerl/master
Make sharing easier
2015-10-09 13:25:15 +02:00
Thomas Müller
48510fcd07 Merge pull request #2062 from owncloud/smb-user-samba4
fix smb command for smb user backend
2015-10-07 15:27:45 +02:00
Thomas Müller
91417ffddf Move WebDAVAuth to User_External 2015-09-21 17:23:47 +02:00
Robin Appelman
cf8ddabaab fix smb command for smb user backend 2015-05-12 14:33:15 +02:00
Felix Bartels
7cd539aa73 don't go to $retval != 0 in case of NT_STATUS_BAD_NETWORK_NAME
NT_STATUS_BAD_NETWORK_NAME is only a minor error which should not prevent login
2015-05-10 11:40:46 +02:00
Toni Förster
1580d26488 Make sharing easier
Now Users have just to enter a part of the name. e.g. 'do' for 'John Doe'.
see also: owncloud/core#11256
2015-01-21 01:46:52 +01:00
Toni Förster
cf797fb97e Limit the number of maximum connect attempts to 1
http://php.net/manual/en/function.imap-open.php
2014-08-26 17:08:46 +02:00
Toni Förster
cd5fa9860d fix for #1693 2014-08-23 00:01:30 +02:00
Glandos
dc70d06144 Small performance improvement on imap_open
Use the OP_HALFOPEN flag to reduce server load. We don't need to open a mailbox, so just don't try
I've also make the check clearer for the opened connection (I know, 2 PR in one, it's bad…)
2014-03-26 15:34:15 +01:00
Thomas Müller
f8bc0ccaf6 Merge pull request #1662 from iroli1/master
Fix mangling of username/password containing % char
2014-02-26 07:02:27 +01:00
Christian Weiske
d5f3984a7d use executeAudited instead of prepare+execute 2014-02-11 21:05:38 +01:00
Christian Weiske
f86938dad1 Fix typos, owncloud -> ownCloud 2014-02-11 21:05:38 +01:00
Christian Weiske
fa6b4c1144 Fix coding style according to owncloud/build/phpcs.xml 2014-02-11 21:05:37 +01:00
Christian Weiske
7bfe3c269c add missing backticks to database fields 2014-02-11 21:05:37 +01:00