Adding Prefix parameter
-
I’m not super familiar with AD / LDAP to know whether the scenario I encountered with getting connectivity to work is common or not. But wanted to list what I had to do in case it is worth adding to a future version of the plugin.
Issue: Could not get WPDIRAuth or any other LDAP plugin to work without customization. Core issue is that a prefix parameter (“company/”) is required during authentication / search but not username / pass validation.
Resolution
- Anywhere that accountSuffix or similar variable is stored, include an accountPrefix variable.
- Add data entry field to plugin above suffix field
- In wpDirAuth_retrieveUserDetails before generating rscResult…
$accountPrefix = get_site_option('dirAuthAccountPrefix'); if($accountPrefix) { //echo "PRE: strFilterQuery = " . $strFilterQuery . " and prefix = " . $accountPrefix . "<br/>"; $strFilterQuery = str_replace( $accountPrefix , "", $strFilterQuery ); //echo "POST: strFilterQuery = " . $strFilterQuery . "<br/>"; }
Would be happy to share full version of edits if desired. Just let me know preferred method to share to plugin devs (email, pastebin, etc).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding Prefix parameter’ is closed to new replies.