OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



LDAP Authentication fails

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

LDAP Authentication fails

Postby sean » Tue May 01, 2007 8:25 am

Hi, I posted the following topic in the OJS Discussions forum, but it probably belongs here:

I am trying to get OJS to authenticate via LDAP. I've created users in the local OJS database for the LDAP accounts and entered the LDAP credentials as well as set the authentication source to LDAP. However, I'm getting this error:

Warning: ldap_search() [function.ldap-search]: Search: Operations error in /var/www/html/journals1/plugins/auth/ldap/LDAPAuthPlugin.inc.php on line 270

Warning: ldap_count_entries(): supplied argument is not a valid ldap result resource in /var/www/html/journals1/plugins/auth/ldap/LDAPAuthPlugin.inc.php on line 271

Any idea what is wrong?

Thanks
Last edited by sean on Wed May 02, 2007 9:00 am, edited 1 time in total.
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby sean » Tue May 01, 2007 9:38 am

We got around the error by changing our LDAP settings, but we still can't authenticate via LDAP. The LDAP credential supplied to the OJS work on other apps, any idea why the LDAP auth isn't working for us?
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby sean » Tue May 01, 2007 1:13 pm

We had to make some changes to the LDAPAuthPlugin.inc.php file but eventually got it to work.
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby asmecher » Tue May 01, 2007 3:28 pm

Hi Sean,

Could you provide details on what you had to change, and what LDAP server you're using? We might be able to incorporate this into a fix in the next release.

Thanks,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8905
Joined: Wed Aug 10, 2005 12:56 pm

Postby sean » Wed May 02, 2007 9:53 am

Sure,

We're using MS Active Directory on a Windows Server 2003. Apparently the bind() function in the LDAPAuthPlugin.inc.php file had null parameters as default, and ldap was binding anonymously, meaning it did not have access to the users and other resources. So we had to pass some credentials to that function. We also had to change all occurrences of uid in the file to match with our ADS.

Thanks,

Sean
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests