Nextcloud version (eg, 11.0.1):
Operating system and version (eg, 16.04):
Apache or nginx version ( nginx/1.10.1):
PHP version (PHP 5.6.30 (cli)):
Is this the first time you’ve seen this error and can you replicate it?: Can replicate.
If I log in as Admin and setup LDAP I set:
Server: AD.DOMAIN.NET
Port: 389
User DN: CN=NextCloud,CN=Users,DC=AD,DC=DOMAIN,DC=NET
Password: ***********
Base DN: DC=AD,DC=DOMAIN,DC=NET
Hit Test Base DN I get different results depending on the click. I get one of the following:
- 313 entries available within the provided Base DN
- Connection to LDAP server could not be established
The Base DN appears to be wrong
If I keep clicking it seems to rotate more or less back and forth.
Once I set it on one of the times it works and shows configuration correct I try and login and it works but not really. It will log me in after a long delay but then it says Problem loading page, reloading in 5 seconds and I am logged out.
I tested LDAP using LDAP Browser with the same settings and I can browse it fine so it doesnt seem to be an LDAP issue on my end.
I can also use the verify settings and count users button to get an accurate count of the users that are part of my group that has access so I am not sure how that would work if I couldn’t access LDAP.
Also to note, I am using this behind a nginx reverse proxy for letsencrypt. The thing is, it was working before I updated the version (and docker) so I am just wondering what to check/look for that would cause this. Thanks in advance.
The output of your Nextcloud log in Admin > Logging:
Debug webdav Sabre\DAV\Exception\NotAuthenticated: HTTP/1.1 401 Username or password was incorrect 2017-02-11T19:33:46-0500
Info core Bruteforce attempt from "172.17.0.1" detected for action "login". 2017-02-11T19:33:46-0500
Warning core Login failed: 'Scott' (Remote IP: '172.17.0.1') 2017-02-11T19:33:46-0500
Error user_ldap OC\ServerNotAvailableException: Connection to LDAP server could not be established 2017-02-11T19:33:46-0500
Error user_ldap No LDAP Connection to server AD.STEVENSONONTHE.NET 2017-02-11T19:33:46-0500
Warning user_ldap Bind failed: 8: Strong(er) authentication required 2017-02-11T19:33:46-0500
Debug user_ldap LDAP error Strong(er) authentication required (8) after calling ldap_bind 2017-02-11T19:33:46-0500
Warning user_ldap Bind failed: 8: Strong(er) authentication required 2017-02-11T19:33:46-0500
Debug user_ldap LDAP error Strong(er) authentication required (8) after calling ldap_bind 2017-02-11T19:33:46-0500
Info admin_audit Login attempt: "Scott" 2017-02-11T19:33:46-0500
Debug no app in context Current user is not logged in 2017-02-11T19:33:24-0500
Debug webdav Sabre\DAV\Exception\NotAuthenticated: HTTP/1.1 401 Cannot authenticate over ajax calls 2017-02-11T19:33:19-0500
Debug no app in context Current user is not logged in 2017-02-11T19:33:19-0500
Warning core Login failed: 'Scott' (Remote IP: '172.17.0.1') 2017-02-11T19:33:18-0500
Error user_ldap OC\ServerNotAvailableException: Connection to LDAP server could not be established 2017-02-11T19:33:18-0500
Error user_ldap No LDAP Connection to server AD.STEVENSONONTHE.NET 2017-02-11T19:33:18-0500
Warning user_ldap Bind failed: 8: Strong(er) authentication required 2017-02-11T19:33:18-0500
Debug user_ldap LDAP error Strong(er) authentication required (8) after calling ldap_bind 2017-02-11T19:33:18-0500
Warning user_ldap Bind failed: 8: Strong(er) authentication required 2017-02-11T19:33:18-0500
Debug user_ldap LDAP error Strong(er) authentication required (8) after calling ldap_bind 2017-02-11T19:33:18-0500
Info admin_audit Login successful: "D997CDE6-214F-4A57-9F82-A76A0084EBD8" 2017-02-11T19:33:17-0500
Info admin_audit Login attempt: "Scott" 2017-02-11T19:33:17-0500
Info admin_audit Login successful: "D997CDE6-214F-4A57-9F82-A76A0084EBD8" 2017-02-11T19:33:14-0500
Info admin_audit Login attempt: "Scott" 2017-02-11T19:33:14-0500
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '**************',
'passwordsalt' => '***********************',
'secret' => '***********************',
'trusted_domains' =>
array (
0 => '192.168.254.3:444',
1 => 'cloud.stevensononthe.net',
),
'datadirectory' => '/mnt/OwnCloud_Data/',
'overwrite.cli.url' => 'https://cloud.stevensononthe.net',
'overwritehost' => 'cloud.stevensononthe.net',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '9.1.0.16',
'dbname' => 'owncloud',
'dbhost' => '192.168.254.3:3306',
'dbtableprefix' => 'oc_',
'dbuser' => '***********',
'dbpassword' => '************',
'logtimezone' => 'America/Toronto',
'installed' => true,
'theme' => '',
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'loglevel' => 1,
'trashbin_retention_obligation' => 'auto',
'ldapIgnoreNamingRules' => false,
'updater.release.channel' => 'production',
'mail_from_address' => 'NextCloud',
'mail_smtpmode' => 'smtp',
'mail_domain' => '********',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => '*******',
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtpname' => '***************t',
'mail_smtppassword' => '*****************',
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
'trusted_proxies' => array('192.168.254.3', '172.17.0.1'),
'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
);
The output of your Apache/nginx/system log in /var/log/____
: None