core icon indicating copy to clipboard operation
core copied to clipboard

No Mails synced with LDAP

Open vgeyer opened this issue 12 years ago • 4 comments

Steps to reproduce

  1. Configure LDAP Backend with OpenLDAP and set Mail Field in Expierienced Tab
  2. Try to use "Forgot password" or share "with Mail" function
  3. Set paged results option on advanced tab to 500(as it's configured in the ldap server itself)

Expected behaviour

The mails to be synchronized for usage with e.g. the "Forgotten password" function.

Actual behaviour

Owncloud keeps saying that there is now Mail configured for the user although the mail is definitely there and visible by the binddn of owncloud and all other users. Logging with the users is working nicley.

Server configuration

Operating system: Debian 7.6 Web server: Nginx 1.2.1 Database: MariaDB 10.0 PHP version: 5.5.17-1~dotdeb.1 ownCloud version: 7.0.2 Updated from an older ownCloud or fresh install: fresh List of activated apps: Defaults inkl. LDAP The content of config/config.php:

<?php                                                                                                                                                                                                        
$CONFIG = array (                                                                                                                                                                                            
  'instanceid' => 'ocdbbc48b2ee',                                                                                                                                                                            
  'passwordsalt' => 'xxxx',                                                                                                                                                        
  'trusted_domains' =>                                                                                                                                                                                       
  array (                                                                                                                                                                                                    
    0 => 'xxxx.xxxx.de',                                                                                                                                                                        
  ),                                                                                                                                                                                                         
  'datadirectory' => '/storage/0/owncloud',                                                                                                                                                                  
  'dbtype' => 'mysql',                                                                                                                                                                                       
  'version' => '7.0.2.1',                                                                                                                                                                                    
  'appstoreenabled' => false,                                                                                                                                                                                
  'apps_paths' =>                                                                                                                                                                                            
  array (                                                                                                                                                                                                    
    0 =>                                                                                                                                                                                                     
    array (                                                                                                                                                                                                  
      'path' => '/usr/share/owncloud/apps',                                                                                                                                                                  
      'url' => '/apps',                                                                                                                                                                                      
      'writable' => false,                                                                                                                                                                                   
    ),                                                                                                                                                                                                       
  ),                                                                                                                                                                                                         
  'dbname' => 'owncloud',                                                                                                                                                                                    
  'dbhost' => 'db0.xxxx.de',                                                                                                                                                                      
  'dbtableprefix' => 'oc_',                                                                                                                                                                                  
  'dbuser' => 'owncloud',                                                                                                                                                                                    
  'dbpassword' => 'xxxx',                                                                                                                                                                    
  'installed' => true,                                                                                                                                                                                       
  'loglevel' => '3',                                                                                                                                                                                         
  'mail_smtpmode' => 'php',                                                                                                                                                                                  
  'default_language' => 'de',                                                                                                                                                                                
  'mail_from_address' => 'xxxx',                                                                                                                                                                            
  'mail_domain' => 'xxxx.de',                                                                                                                                                                           
);  

Are you using external storage, if yes which one: local Are you using encryption: no(SSL to Webserver only)

Client configuration

Browser: Chrome Operating system: Ubutnu 14.04

Logs

ownCloud log (data/owncloud.log)

^[[A{"app":"PHP","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:43+00:00"}
{"app":"PHP","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:44+00:00"}
{"app":"PHP","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:48+00:00"}
{"app":"PHP","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:48+00:00"}
{"app":"PHP","message":"ldap_next_entry(): supplied resource is not a valid ldap result entry resource at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:51+00:00"}
{"app":"PHP","message":"ldap_next_entry(): supplied resource is not a valid ldap result entry resource at \/usr\/share\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-10-07T13:03:51+00:00"}

Note: There are only 2 users on the LDAP server.

vgeyer avatar Oct 07 '14 13:10 vgeyer

@blizzz can you please have a look? THX

DeepDiver1975 avatar Oct 08 '14 08:10 DeepDiver1975

"Forgotten password" will not work with LDAP since we do not write to LDAP.

Owncloud keeps saying that there is now Mail configured for the user

Where does it say so?

blizzz avatar Oct 10 '14 10:10 blizzz

Well thats funny. The message on my own profile site is one, which told me that. One have just to wait 2 days :D

Is this the normal cache behavior?

vgeyer avatar Oct 10 '14 11:10 vgeyer

iirc one day for personal stuff like email and avatars, because they do not change often. i think thise can be closed therefore?

blizzz avatar Oct 10 '14 11:10 blizzz