Re: [owncloud-user] imap login

2015-07-28 Thread Chris
Hi,

> Does the account actually need to be on the server prior to login, or
> would it create it on login?

the account needs to exist on the mailserver.



--
View this message in context: 
http://owncloud.10557.n7.nabble.com/imap-login-tp15525p15526.html
Sent from the Users mailing list archive at Nabble.com.
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-28 Thread Martin Skjöldebrand


Quoting Chris :


Hi,


Does the account actually need to be on the server prior to login, or
would it create it on login?


the account needs to exist on the mailserver.


Right, I was unclear.
The account already exists on the mail server, but I was asking about  
really if anything is created for owncloud. (Even a dummy entry  
pointing to imap).
So I've got the mail account, the server is correct but it still fails  
to verify the password. As this is a mail setup using MySQL as backend  
- would this be a problem for the integration?


/Martin S
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-28 Thread Chris
Did you check:

https://doc.owncloud.org/server/8.1/admin_manual/configuration_user/user_auth_ftp_smb_imap.html#imap

especially the dependency? Anything in your data/owncloud.log when trying to
login?



--
View this message in context: 
http://owncloud.10557.n7.nabble.com/imap-login-tp15525p15529.html
Sent from the Users mailing list archive at Nabble.com.
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-28 Thread Martin Skjöldebrand


Quoting Chris :


Did you check:

https://doc.owncloud.org/server/8.1/admin_manual/configuration_user/user_auth_ftp_smb_imap.html#imap

especially the dependency? Anything in your data/owncloud.log when trying to
login?


php-imap is installed, and no the following is the entire content of  
the log file


{"reqId":"DF7Yp0mmwI6J\/xZiW5\/T","remoteAddr":"37.196.232.175","app":"PHP","message":"Undefined offset: 0 at  
\/var\/www\/html\/owncloud\/lib\/privat
{"reqId":"DF7Yp0mmwI6J\/xZiW5\/T","remoteAddr":"37.196.232.175","app":"PHP","message":"touch(): Unable to create file  
\/var\/www\/html\/owncloud\/dat
{"reqId":"3Jjq1gmiVQoTKno2ujlg","remoteAddr":"37.196.232.175","app":"PHP","message":"Undefined offset: 0 at  
\/var\/www\/html\/owncloud\/lib\/private\
{"reqId":"3Jjq1gmiVQoTKno2ujlg","remoteAddr":"37.196.232.175","app":"PHP","message":"mkdir(): No such file or directory at  
\/var\/www\/html\/owncloud
{"reqId":"Yc+IlK8rNjXfQmmwKLz3","remoteAddr":"37.196.232.175","app":"PHP","message":"Undefined offset: 0 at  
\/var\/www\/html\/owncloud\/lib\/private\


In config-php I have

  array (
0 =>
array (
  'class' => 'OC_User_IMAP',
  'arguments' =>
  array (
0 => '{localhost:143}',
  ),
),
  ),

While the simple test "telnet localhost 143" connects as expected.

In /var/log/auth.log meanwhile there is also nothing indicating an  
authentication attempt ever happened. (At least not for the account  
I'm testing). So it looks like *litteraly* nothing is happening when  
using the mail address as a login. The account I set up before trying  
to connect an imap account is still loging in correctly.


/Martin S
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Chris
Last idea: SELinux enabled?



--
View this message in context: 
http://owncloud.10557.n7.nabble.com/imap-login-tp15525p15531.html
Sent from the Users mailing list archive at Nabble.com.
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Christian Schmidt
On 28.07.2015 16:54, Martin S wrote:
> I've enabled the External Users feature, and set the config.php to point to 
> my mail server
> 
> "user_backends" => array (
> 0 => array (
> "class" => "OC_User_IMAP",
> "arguments" => array (
>   0 => '{localhost:143}'
>   ),
> ),
> ),
> But I constantly get a "Wrong password" error. I've also experimented with 
> {localhost:143/imap/starttls}
> {localhost:143/imap/tls}
> {SERVERFQDN:143/imap/starttls}
> {SERVERFQDN:143/imap/tls}
> but get the same error.

Do the IMAP server logs show anything?

Regards,
Christian

-- 
No signature available.



smime.p7s
Description: S/MIME Cryptographic Signature
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Gerald Vogt

Are you sure, the password is really correct?

Try to call the function directly:

$ php -r 'imap_open("{localhost:143}", "username", "password", 
OP_HALFOPEN, 1);'


If it fails you'll see an error. Also check the IMAP server log.

-Gerald

On 28/07/15 16:54, Martin S wrote:

Hi,

I've enabled the External Users feature, and set the config.php to point
to my mail server

"user_backends" => array (

0 => array (

"class" => "OC_User_IMAP",

"arguments" => array (

0 => '{localhost:143}'

),

),

),

But I constantly get a "Wrong password" error. I've also experimented with

{localhost:143/imap/starttls}

{localhost:143/imap/tls}

{SERVERFQDN:143/imap/starttls}

{SERVERFQDN:143/imap/tls}

but get the same error. What more can I try to get round this. I'm
looking to use the imap authentication for owncloud? Does the account
actually need to be on the server prior to login, or would it create it
on login?

/Martin S

--



This address is for technical maillists only

Please use my primary mail address at the .org domain

for all other matters





___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Martin Skjöldebrand


Quoting Gerald Vogt :


Are you sure, the password is really correct?


Yes I'm sure I'm using the right password.



Try to call the function directly:

$ php -r 'imap_open("{localhost:143}", "username", "password",  
OP_HALFOPEN, 1);'


If it fails you'll see an error.


Now we're getting somewhere =)
I get a complaint about a self-signed certificate. Ending with  
"(errflg=2) in Unknown on line 0"



Also check the IMAP server log.



Only thing entered is:

Jul 29 11:28:11 mailweb imapd: Connection, ip=[:::127.0.0.1]
Jul 29 11:29:10 mailweb imapd: Connection, ip=[:::127.0.0.1]



-Gerald


/Martin S
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Martin Skjöldebrand


Quoting Martin Skjöldebrand :


Now we're getting somewhere =)
I get a complaint about a self-signed certificate. Ending with  
"(errflg=2) in Unknown on line 0"


To clearify, this is the internal Courier imapd certificate. The  
external certificate is an official one.


/Martin S
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Piers




Now we're getting somewhere =)
I get a complaint about a self-signed certificate. Ending with 
"(errflg=2) in Unknown on line 0"




This might be what you are looking for:

http://php.net/manual/en/function.imap-open.php

/novalidate-cert

do not validate certificates from TLS/SSL server, needed if server uses 
self-signed certificates


eg:
// To connect to an SSL IMAP or POP3 server with a self-signed certificate,
// add /ssl/novalidate-cert after the protocol specification:
$mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", 
"user_id", "password");



Cheers

P
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Martin Skjöldebrand

 Quoting Piers :


Now we're getting somewhere =)
I get a complaint about a self-signed certificate. Ending with
"(errflg=2) in Unknown on line 0"
 


This might be what you are looking for:

http://php.net/manual/en/function.imap-open.php

/novalidate-cert   

do not validate certificates from TLS/SSL server, needed if server uses
self-signed certificates

eg:
// To connect to an SSL IMAP or POP3 server with a self-signed
certificate,
// add /ssl/novalidate-cert after the protocol specification:
$mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}",
"user_id", "password");


Brilliant! Now it works - thanks a bunch =)

/Martin S
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Piers

On 29/07/15 22:35, Martin Skjöldebrand wrote:

Brilliant! Now it works - thanks a bunch =)



Happy to help mate!

Cheers

P


___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] imap login

2015-07-29 Thread Chris
> Brilliant! Now it works - thanks a bunch =)

Could be something for the documentation:
https://github.com/owncloud/documentation/issues



--
View this message in context: 
http://owncloud.10557.n7.nabble.com/imap-login-tp15525p15539.html
Sent from the Users mailing list archive at Nabble.com.
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user