1

Topic: phpldapadmin - Error: Inappropriate authentication (48) for login

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Open LDAP 2.4.39
- Web server (Apache or Nginx): apache 2.2.15
- Linux/BSD distribution name and version: CentOS 6.6 x86_64
- Related log if you're reporting an issue:
====

I installed the latest phpldapadmin v1.2.3 from source and configured the thing in part as:

$servers->setValue('server','host','localhost');
$servers->setValue('server','port',389);
$servers->setValue('login','auth_type','session'); (also tried 'cookie')
$servers->setValue('server','base',array('o=domains,dc=MYSITE,dc=TLD')); (also omitted this)

I tried a large number of config permutations and tried logging in with
cn=Manager,dc=MYSITE,dc=TLD  and the password supplied for that account.

I always get the connection failure:

Unable to connect to LDAP server Charbelite LDAP
Error: Inappropriate authentication (48) for login
error    Failed to Authenticate to server
Invalid Username or Password.

I used a windows LDAP client on my laptop and was able to access the database just fine.

phpldapadmin used to be supplied with iRedMail, so I am wondering if there are picky config settings for it?

When I used the command line ldapsearch I noticed that it uses ldap_sasl_bind, but using the right config params I could also connect to the LDAP db.

Any ideas?

----

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

2

Re: phpldapadmin - Error: Inappropriate authentication (48) for login

If you check iRedMail script of old release, you can find we just set two settings and file owner/permissions:

- hide_template_warning -> true
- custom_templates_only -> true

Try to use its default settings, it should work just fine.

https://bitbucket.org/zhb/iredmail/src/ … at=default

3

Re: phpldapadmin - Error: Inappropriate authentication (48) for login

Thanks. I also had to apply the PHP 5.5 patch because I was running that newer version. CentOS 6.X only has the older 5.3 and other software I have running needs 5.4+. I had already manually patched the password_hash function name, but needed to add the other updates also.

Everything works fine now, so this can be closed.

4

Re: phpldapadmin - Error: Inappropriate authentication (48) for login

I had the same problem, I followed the install script, but I also had to comment out the following:

// $servers->setValue('login','attr','uid');

This set its so you need the full DN to login. I couldn't get it to work with the default setting of using UID attribute. I guess that would required some DNs in the bind DN array thingie.