Code Monkey home page Code Monkey logo

Comments (8)

ElusiveMind avatar ElusiveMind commented on June 30, 2024

I had this problem too. Are you trying to connect to MS Active Directory? If so, then that is your problem. I just recently modified this to patch the problem with newer versions of EE and add an option for Active Directory. If you need the code, let me know. I'm trying to contact the author to contribute back my work so it gets into GIT.

from ldap-authentication-for-expressionengine.

leffj003 avatar leffj003 commented on June 30, 2024

Yes we are using AD. That would be great if you could provide the code. Out of curiosity, what was the underlying issue?

Jeremy Leff
IT Specialist/Webmaster
Auburn University College of Business
210 Lowder Business Building
Auburn University, AL 36849
[email protected]

-----Original Message-----
From: Michael R. Bagnall [mailto:[email protected]]
Sent: Tuesday, June 19, 2012 8:53 AM
To: leffj003
Subject: Re: [LDAP-Authentication-for-ExpressionEngine] ldap_search Operations Error (#14)

I had this problem too. Are you trying to connect to MS Active Directory? If so, then that is your problem. I just recently modified this to patch the problem with newer versions of EE and add an option for Active Directory. If you need the code, let me know. I'm trying to contact the author to contribute back my work so it gets into GIT.


Reply to this email directly or view it on GitHub:
#14 (comment)

from ldap-authentication-for-expressionengine.

ElusiveMind avatar ElusiveMind commented on June 30, 2024

PHP has a few LDAP options which in their default states are not compatible with active directory. These need to be modified before PHP LDAP will connect. I have attached the module with an Active Directory setting. The lines of code int he extension are 386-389:

if ($this->settings['is_active_directory'] === 'yes') {
  ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
  ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
}

That fixes the problem when the extensions sets up the connection to LDAP.

I've spent the last week working on this with the client. Finally able to figure it out using Google.

Also of note… I could not get this to work with Anonymous Binding. I still do not know if this is a module/PHP issue or on the client's Active Directory server. But it is untested with Anonymous Binding.

I'm emailing you the code now.

from ldap-authentication-for-expressionengine.

allnyguy avatar allnyguy commented on June 30, 2024

Where would this go within the ext.nce_ldap.php file??? i am having issues and this could possibly fix it, but i am not sure where in the code it would need to go... any help would be appreciated

from ldap-authentication-for-expressionengine.

ElusiveMind avatar ElusiveMind commented on June 30, 2024

This was a long time ago. I may need to review it a bit.

from ldap-authentication-for-expressionengine.

allnyguy avatar allnyguy commented on June 30, 2024

any help you could give would be appreciated

This was in the post:
Just trying to figure out where it would need to be placed in the code... i
am a novice when it comes to php and not sure exactly where it should go...
thanks if you can remember...

if ($this->settings['is_active_directory'] === 'yes') {
ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
}

On Wed, Mar 26, 2014 at 11:49 AM, Michael R. Bagnall <
[email protected]> wrote:

This was a long time ago. I may need to review it a bit.

Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-38700565
.

from ldap-authentication-for-expressionengine.

allnyguy avatar allnyguy commented on June 30, 2024

nothing clicked yet??? lol

just curious... had some of our developers here looking over the code and
what you posted and they made what they thought were modifications that
would work... but still running into some issues. Weird thing is that it
seems to bind, but cannot look-up any users, constantly returning incorrect
username/password... EXCEPT for one, system user that we have... that one
connects and creates a user with no problem?!?!?! crazy!

thanks again

On Wed, Mar 26, 2014 at 11:50 AM, allnyguy [email protected] wrote:

any help you could give would be appreciated

This was in the post:
Just trying to figure out where it would need to be placed in the code...
i am a novice when it comes to php and not sure exactly where it should
go...
thanks if you can remember...

if ($this->settings['is_active_directory'] === 'yes') {
ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
}

On Wed, Mar 26, 2014 at 11:49 AM, Michael R. Bagnall <
[email protected]> wrote:

This was a long time ago. I may need to review it a bit.

Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-38700565
.

from ldap-authentication-for-expressionengine.

allnyguy avatar allnyguy commented on June 30, 2024

hey... i think i figured it out and am getting some authentication/population of users now.. thanks for your help and at responding... my weird issue and i think it is just an AD issue on our side is certain users, like i said above, are not authenticating and i am thinking it is because of the amount of groups they belong to and their default cn that is being transmitted... it might be larger than can be handled... i think the max is 255 characters. users with no AD groups, authenticate fine and get created with no issues... weird.

from ldap-authentication-for-expressionengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.