1

Topic: iRedAdmin, Username or password is incorrect.

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.2
- Related log if you're reporting an issue:
====
Samba4.2 AD server (ads.domain.local)
iRedMail on mail.domain.com
All users in ou=personal,dc=domain,dc=local
Users vmail and vmailadmin are in dc=domain,dc=local
vmailadmin is in Domain Admins group

After installation i have access only to phpmyadmin, phpldapadmin, roundcube.
Login(postmaster@domain.com) to iredadmin is fail (Error: Username or password is incorrect.) And other web interfaces are not accessible too - incorrect username or password.

settings.py

ldap_uri = "ldap://ads.domain.local"
# LDAP suffix.
# basedn: dn which contains virtual domains.
# domainadmin_dn: dn which contains virtual domain admins.
ldap_basedn = "dc=domain,dc=local"
#ldap_domainadmin_dn = "o=domainAdmins,dc=domain,dc=local"
ldap_domainadmin_dn = "cn=Domain Admins,dc=domain,dc=local"

# Bind dn and password.
#   - bind dn should have write privilege in LDAP.
#   - bind pw is plain text, not encryped/hashed.
ldap_bind_dn = "vmailadmin@domain.local"
ldap_bind_password = "password"

----

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

2

Re: iRedAdmin, Username or password is incorrect.

iRedAdmin uses many LDAP attributes defined in iRedMail LDAP schema, it won't work with AD, so i suggest you give it up.
Why not use AD to manage mail accounts instead?

3

Re: iRedAdmin, Username or password is incorrect.

I need to use aliases and don't understand how to make it in AD. That's why i try to use iredadmin smile. All users in AD get maildirs on mail server and it works, but aliases....:(

About access to httpS://mail.domain.com/cluebringer/
--
  AuthName "This server require authorization!"
  AuthUserFile /usr/local/etc/apache22/htpasswd
  AuthType Basic
  Require user postmaster
--
I see start page now smile and problem when try to follow any links for configure.
"Error connecting to Policyd v2 DB: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) "

cluebringer.conf
--
[database]
#DSN=DBI:SQLite:dbname=policyd.sqlite
DSN=DBI:mysql:host=127.0.0.1;database=cluebringer;user=cluebringer;password=ghdjdjdjdj
Username=cluebringer
Password=ghdjdjdjdj
--

About access to httpS://mail.domain.com/awstats/
--
  AuthName "This server require authorization!"
  AuthUserFile /usr/local/etc/apache22/htpasswd
  AuthType Basic
  Require user postmaster
--
I see start page now too smile and "Never updated (See 'Build/Update' on awstats_setup.html page)" on top of the page. All statistics is 0 0 0 0 0 0

4

Re: iRedAdmin, Username or password is incorrect.

zdymchenko wrote:

I need to use aliases and don't understand how to make it in AD. That's why i try to use iredadmin smile. All users in AD get maildirs on mail server and it works, but aliases....:(

As mentioned in wiki tutorial, we have AD group related ldap queries in Postfix, so you can simple add group in AD, then assign members. It's an alias, or you can say, mail list.

zdymchenko wrote:

"Error connecting to Policyd v2 DB: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) "

Which config file did you update?

zdymchenko wrote:

I see start page now too smile and "Never updated (See 'Build/Update' on awstats_setup.html page)" on top of the page. All statistics is 0 0 0 0 0 0

Check root's cron jobs, Awstats statistics is updated by cron job.

5 (edited by zdymchenko 2014-01-24 23:22:13)

Re: iRedAdmin, Username or password is incorrect.

2 users and allusers group are in ou personal. users were assigned to allusers group.
Result of postmap -q allusers@domain.com ldap:/usr/local/etc/postfix/ldap/virtual_group_maps.cf
is allusers@domain.com

/usr/local/etc/postfix/ldap/virtual_group_maps.cf

server_host     = ads.domain.local
server_port     = 389
version         = 3
bind            = yes
start_tls       = no
bind_dn         = vmail@domain.local
bind_pw         = pass
search_base     = ou=personal,dc=domain,dc=local
scope           = sub
query_filter    = (&(objectClass=group)(mail=%s))
leaf_result_attribute = mail
#result_attribute = userPrincipalName
debuglevel      = 0


Which config file did you update?
1) in /usr/local/etc/apache22/extra/httpd-ssl.conf alias was changed to
Alias /cluebringer "/usr/local/www/policyd/"
2) /usr/local/etc/apache22/Includes/cluebringer.conf
<Directory /usr/local/www/policyd/>
    DirectoryIndex index.php
    Options ExecCGI
    Order allow,deny
    allow from all
  AuthName "This server require authorization!"
  AuthUserFile /usr/local/etc/apache22/htpasswd
  AuthType Basic
  Require user postmaster
</Directory>
3) /usr/local/etc/cluebringer.conf - original

No job in cron. i'll do it