LDAP users can't search mail

Issue #236 resolved
Former user created an issue

We have installed mailpiler 0.1.24 and enabled ldap sync with Active Directory. Our users can login just fine but can't find their mail. LDAP users can find email when they go to advanced search and put their email adress in the to or from field. When I manualy create a user this is no issue. Local Piler users can search just fine.

these are the session objects for our users the first is the admin, second is an ldap user Array ( [lang] => en [failed_logins] => 1 [username] => admin [uid] => 0 [admin_user] => 1 [email] => admin@local [domain] => local [realname] => built-in piler admin [auditdomains] => Array ( [0] => local ) [emails] => Array ( ) [folders] => Array ( ) [extra_folders] => Array ( ) [pagelen] => 50 [theme] => default )

Array ( [lang] => en [username] => testuser [uid] => 3 [admin_user] => 0 [email] => test.user@mydomain.be [domain] => mydomain.be [realname] => testuser [auditdomains] => Array ( [0] => mydomain.be ) [emails] => Array ( [0] => analytics@mydomain.be [1] => test.user@mydomain.be ) [folders] => Array ( ) [extra_folders] => Array ( ) [pagelen] => 20 [theme] => default )

Comments (9)

  1. Janos SUTO repo owner

    Please show me your config-site.php file (you may hide any passwords). Then show me the syslog entries related to the login, and one search query (from the syslog) while just hitting the search button, and one search query when used the advanced form. You may send all of these to my email address, see piler -V output.

  2. c

    jsuto,

    thanks for the quick reply! our config-site.php contains:

    $config['SITE_URL'] = 'http://172.31.0.24/'; $config['DIR_BASE'] = '/var/www/'; $config['ENABLE_SYSLOG'] = 1; $config['SMTP_DOMAIN'] = 'aznikolaas.be'; $config['SMTP_FROMADDR'] = 'no-reply@MAILARCHTSTSVR01.itnet.hosp'; $config['ADMIN_EMAIL'] = 'admin@MAILARCHTSTSVR01.itnet.hosp'; $config['DB_DRIVER'] = 'mysql'; $config['DB_PREFIX'] = ''; $config['DB_HOSTNAME'] = 'localhost'; $config['DB_USERNAME'] = 'piler'; $config['DB_PASSWORD'] = 'piler'; $config['DB_DATABASE'] = 'piler'; $config['SMARTHOST'] = 'mail.mydomain.be'; $config['SMARTHOST_PORT'] = 25; $config['LDAP_ACCOUNT_OBJECTCLASS'] = 'user'; $config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'group'; $config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'member'; $config['ENABLE_LDAP_AUTH'] = 1; $config['LDAP_HOST'] = 'mydomaincontroler.itnet.hosp'; $config['LDAP_BASE_DN'] = 'dc=itnet,dc=hosp'; $config['LDAP_MAIL_ATTR'] = 'mail'; $config['LDAP_HELPER_DN'] = 'cn=adauth, ou=Resourceaccounts, ou=Infrastructuur, dc=itnet, dc=hosp'; $config['LDAP_HELPER_PASSWORD'] = 'xxxxxxx';

  3. Janos SUTO repo owner

    ok, thanks for the info, however I'd like to see the syslog entries I mentioned above.

  4. Janos SUTO repo owner

    Ehh, I wish I documented what we have done. If we can arrange a teamviewer session, then find me on skype (janos.suto).

  5. Log in to comment