Support » Plugin: Simple AD Authentication » [Plugin: Simple AD Authentication] Bug Account Creation

  • I was using your Simple AD Authentication V0.9 and I noticed a bug in your code. This bug will prevent the retrieval of user data such as the user’s name and email address when creating the wordpress account.

    On line 211

    $result = @ldap_search($ldap_base_dn_id, $multi_base_dns, $uid_filter,
    	array('sn', 'givenname', 'mail', $sn_lang, $gn_lang)

    $ldap_base_dn_id is passed to the ldap search function but because $ldap_base_dn_id is an array, $result will always be NULL. One way to fix this is to change $ldap_base_dn_id to $ldap or $ldap_base_dn_id[0]. I’m not sure if this should also be changed in the _user_in_group function?

  • The topic ‘[Plugin: Simple AD Authentication] Bug Account Creation’ is closed to new replies.