1

Topic: Can't login into Roundcubemail after LDAP import

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3
- Deployed with iRedMail Easy or the downloadable installer?  Downloadable installer
- Linux/BSD distribution name and version: Debian 11.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?  No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

After Importing Ldap from ldif file my roundcube mail login stops working postmaster account can't login to roundcubemail. Before I imported LDAP i have Imported SQL databases like iredadmin, iredapd, amasvid , roundcubemail fro an old Iredmail server and i could login to the postmaster account but after LDAP i can't.

I'am using LDAP Account Manager and Adminer for SQL.

Post's attachments

dovecot.log 15.47 kb, file has never been downloaded. 

imap.log 4.84 kb, file has never been downloaded. 

mail.log 14.77 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can't login into Roundcubemail after LDAP import

- Is this LDIF file exported from an old iRedMail release?
- Did you read our tutorial here: https://docs.iredmail.org/backup.restore.html#ldap

3 (edited by Hellspawn 2023-05-30 18:15:04)

Re: Can't login into Roundcubemail after LDAP import

Yes it's from a old Iredmail 0.9.7  , things I have done before importing LDAP :

Before Importing LDAP i have Imported SQL databases using :

All Databases have utf8_general_ci only roundcube has utf8mb4_unicode_ci.

mysql -p -u root amavisd < amavisd.sql
mysql -p -u root roundcubemail < roundcubemail.sql
mysql -p -u root iredapd < iredapd.sql
mysql -p -u root iredadmin < iredadmin.sql

After that I have  :

1) Taken passwords from iRedMail.tips  cn=vmail , cn=vmailadmin and converted them to  SSHA format using :  slappasswd -h '{ssha}' -s 'py2BQwM0zoRM5nciK68AlP8dyu2Mq6'
2) I changed passwords in ldif that I have to import to a fresh LDAP.
3) I have removed everything from :  rm -rf /var/lib/ldap/exapmle.org/*
4) Restarted slapd.conf
5) Stopped slapd.conf , Started slapd.conf to create  data.mdb  lock.mdb
6) Using slapadd -f /etc/ldap/slapd.conf -l /tmp/test.ldif  I have imported the LDAP file
7) After that my roundcube mail has stopped working , all other interfaces work iredadmin, netdata, LDAP Account Manager , Adminer only Roundcube does not want to login.

4

Re: Can't login into Roundcubemail after LDAP import

LDAP data has been changed too since iRedMail-0.9.7. You must go through all upgrade tutorials for 0.9.7 to apply LDAP data changes.

5

Re: Can't login into Roundcubemail after LDAP import

Problem solved , roundcubemail config file was not configured properly.