ldap_authentication_user_login_authenticate_validate() can return null (line 287) and this isn't checked for in line 290 causing the following PHP Error to be thrown:

Notice: Trying to get property of non-object in ldap_sso_user_login_sso() (line 290 of /sites/all/modules/contrib/ldap/ldap_sso/ldap_sso.module).

Comments

Adrian Richardson’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB

Patch attached for review

johnbarclay’s picture

Assigned: Unassigned » johnbarclay
johnbarclay’s picture

Status: Needs review » Closed (fixed)
edog2009’s picture

I've used this patch to enable Cosign authentication with the LDAP module on a Drupal website and it works well to overcome the issue.