Answer 1: Null password will returns true on servers where anonymous access is allowed. You can either disable anonymous access in LDAP server or use next release of 3.2/3.3 stable where this bug will be fixed.
Answer 2: Not supported currently since all Ldap users will be put in one user group.
> Answer 1:
> Null password will returns true on servers where anonymous
> access is allowed. You can either disable anonymous access in
> LDAP server or use next release of 3.2/3.3 stable where this bug > will be fixed.
Thanks Wenyue! I have resolved the second question using a parameter in LDAP to send the user to a concrete user group with a specific role. But first question is more difficult. I'm using ezpublish-3.2-3 and i have the same problem.
Sorry, I mean 3.2-4 release or 3.3 beta2, the fix is only available in svn. You can add following line in kernel/classes/datatypes/ezuser/ezldapuser.php
------------------------------------------------
if( !$password )
{
$password = crypt( microtime() );
}
-----------------------------------------------
before
// authenticated user
if ( !@ldap_bind( $ds, $info[0]['dn'], $password ) )
{
return false; }
You must be logged in to post messages in this topic!