1

Topic: Problems with new install - cant loginto iredadmin

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Ubuntu
- Related log if you're reporting an issue:
====
I am using iRedMail-0.8.6(1).tar.bz2
iRedAdmin-Pro-LDAP-2.0(1).tar.bz2

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"

LDAP backend.

I can log into my mail using postmaster@mydomain.co.nz
I can log into LDAP, phpMyadmin etc using the passwords and info from the config file.
I can get a response using ldapsearch -x -D 'YOUR_BIND_DN' -W
I can log into mySQL.

My install process was ito install and run the iRedMail install from iRedMail-0.8.6(1).tar.bz2

i could log in ok from that.

I followed the instructions found here: http://www.iredmail.org/wiki/index.php? … ro/OSE-Pro

I did find that settings.py and settings.ini exist.   I understood settings.ini only was required for older versions. at one stage there was error messages for settings.ini missing, so I redid the install and resolved that.

i have logged in via the web to ldap, pulled the passwords etc for the vmailadmin user and tried logging in using those. no success. It is as if the iredadmin is not authenticating against ldap.

iredapd.log shows.

2014-01-13 14:14:23 INFO Starting iRedAPD (version: 1.4.2, backend: ldap), listening on 127.0.0.1:7777.
2014-01-13 14:14:23 INFO Loading plugin: ldap_maillist_access_policy
2014-01-13 14:14:23 INFO Loading plugin: ldap_amavisd_block_blacklisted_senders
2014-01-13 14:14:23 INFO Loading plugin: ldap_recipient_restrictions


ssl_access.log shows:
1.2.3.4- - [14/Jan/2014:12:08:31 +1300] "POST /iredadmin/login HTTP/1.1" 303 677 "https://mydomain.co.nz/iredadmin/login? … REDENTIALS" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"
1.2.3.4 - - [14/Jan/2014:12:08:31 +1300] "GET /iredadmin/login?msg=INVALID_CREDENTIALS HTTP/1.1" 200 1700 "https://mydomain.co.nz/iredadmin/login? … REDENTIALS" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"

My /usr/shared/apache2 folder looks like:
root@mail01:/usr/share/apache2# ls -alh
total 52K
drwxr-xr-x 10 root      root      4.0K Jan 14 11:50 .
drwxr-xr-x 95 root      root      4.0K Jan 13 11:57 ..
-rwxr-xr-x  1 root      root      1.6K Jul 13  2013 ask-for-passphrase
drwxr-xr-x  2 root      root      4.0K Jan 13 11:54 build
drwxr-xr-x  2 root      root      4.0K Jan 13 11:54 default-site
drwxr-xr-x  3 root      root      4.0K Jan 13 11:54 error
drwxr-xr-x  3 root      root       12K Jan 13 11:54 icons
lrwxrwxrwx  1 root      root        22 Jan 14 11:50 iredadmin -> iRedAdmin-Pro-LDAP-2.0
dr-xr-xr-x  9 iredadmin iredadmin 4.0K Jan 13 12:00 iRedAdmin-0.3
dr-xr-xr-x  9 iredadmin iredadmin 4.0K Jan 14 11:51 iRedAdmin-Pro-LDAP-2.0
dr-xr-xr-x  9 iredadmin iredadmin 4.0K Jan 13 13:44 iRedAdmin-Pro-LDAP-2.0_Notworking
lrwxrwxrwx  1 root      root        38 Jan 13 12:00 roundcubemail -> /usr/share/apache2/roundcubemail-0.9.5
drwxr-xr-x 11 root      root      4.0K Jan 13 12:00 roundcubemail-0.9.5


my iredadmin folder looks like:

root@mail01:/usr/share/apache2/iredadmin# ls -alh
total 100K
dr-xr-xr-x  9 iredadmin iredadmin 4.0K Jan 14 11:51 .
drwxr-xr-x 10 root      root      4.0K Jan 14 11:50 ..
-r-xr-xr-x  1 iredadmin iredadmin   49 Nov 22 18:27 AUTHORS
-r-xr-xr-x  1 iredadmin iredadmin  24K Nov 22 18:27 ChangeLog.ldap
dr-xr-xr-x  7 iredadmin iredadmin 4.0K Nov 22 18:27 controllers
dr-xr-xr-x  3 iredadmin iredadmin 4.0K Nov 22 18:27 docs
-r-xr-xr-x  1 iredadmin iredadmin  550 Nov 22 18:27 EULA
dr-xr-xr-x 18 iredadmin iredadmin 4.0K Nov 22 18:27 i18n
-r-xr-xr-x  1 iredadmin iredadmin  402 Nov 22 18:27 iredadmin.py
dr-xr-xr-x  7 iredadmin iredadmin 4.0K Jan 14 11:32 libs
-r-xr-xr-x  1 iredadmin iredadmin  416 Nov 22 18:27 README
-r-xr-xr-x  1 iredadmin iredadmin 4.2K Jan 14 11:35 settings.ini
-r-xr-xr-x  1 iredadmin iredadmin 4.1K Nov 22 18:27 settings.ini.ldap.sample
-r--------  1 iredadmin iredadmin 4.5K Jan 13 12:00 settings.py
dr-xr-xr-x  4 iredadmin iredadmin 4.0K Nov 22 18:27 static
dr-xr-xr-x  3 iredadmin iredadmin 4.0K Nov 22 18:27 templates
dr-xr-xr-x  2 iredadmin iredadmin 4.0K Nov 22 18:27 tools


Any thoughts?

----

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

2

Re: Problems with new install - cant loginto iredadmin

found it - sorry for the hassle.

/usr/share/apache2/iredadmin/settings.ini

had the settings
basedn = o=domains,dc=iredmail,dc=org
domainadmin_dn = o=domainAdmins,dc=iredmail,dc=org

so I changed them to
basedn = o=domains,dc=mydomain, dc=net,dc=nz
domainadmin_dn = o=domainAdmins,dc=mydomains,dc=net,dc=nz

restarted apache and it went. Must have missed changing it in the setup somewhere.

PS - where does the debug log show?

Thanks

Shane

3

Re: Problems with new install - cant loginto iredadmin

vbconz wrote:

PS - where does the debug log show?

In Apache log file.