Code Monkey home page Code Monkey logo

designbyfront / ldap-authentication-for-expressionengine Goto Github PK

View Code? Open in Web Editor NEW
30.0 7.0 16.0 674 KB

An ExpressionEngine Extension that allows the authentication of users via LDAP. LDAP details are copied to the EE database before standard MySQL authentication is performed. If user is not found on LDAP, MySQL authentication will still be performed (useful for EE users not in LDAP)

Home Page: http://www.designbyfront.com

PHP 100.00%

ldap-authentication-for-expressionengine's Introduction

LDAP Authentication for ExpressionEngine

An ExpressionEngine Extension that allows the authentication of users via LDAP. LDAP details are copied to the EE database before standard MySQL authentication is performed. If user is not found on LDAP, MySQL authentication will still be performed (useful for EE users not in LDAP).

Available in both EE1 and EE2 versions.

Installation

Choose EE1 or EE2 (depending on your installation).
Use the structure provided to place the files within your current EE installation.
Enable the extension in your EE control panel.

Support

For more information and support, please use the issues page or contact us at [email protected]

License and Attribution

This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA

This extension extends and modifies the functionality of NCE LDAP
Released under: if you've used this module and found that it needed something then please hand it back so that it can be shared with the world

No Warranty
As this program is licensed free of charge, there is no warranty for the program, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the program "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the program is with you. should the program prove defective, you assume the cost of all necessary servicing, repair or correction.
In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the program as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the program to operate with any other programs), even if such holder or other party has been advised of the possibility of such damages.

Created by Front

Useful, memorable and satisfying things for the web
We create amazing online experiences that delight users and help our clients grow.

Web Design by Front

ldap-authentication-for-expressionengine's People

Contributors

designbyfront avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ldap-authentication-for-expressionengine's Issues

ldap_search Operations Error

I'm having a bit of trouble with this extension.

After installing the extension and enabling it, I get the following error message when a user attempts to login:

A PHP Error was encountered
Severity: Warning
Message: ldap_search() [function.ldap-search]: Search: Operations error
Filename: nce_ldap/ext.nce_ldap.php
Line Number: 332

I have verified that all LDAP settings are correct and that the server is working. Thanks!

Multiple LDAP servers

Is there a way we can modify this to work with more then one LDAP server?
I am building an Intranet for our company and we have more then one Active Directory that we want to authenticate with.

Line 293 - stomps unrelated data

WHen you update to set the photo filename you stomp all the other photos in the member table. Might want to add a ' where member_id=' clause to that query.

Can not login

Hi there,
First of, thank you for the work and this extension.
Giving it a first round of test so excuse the ignorance with ldap. It seems that everyone goes fine but the account does not get created in EE...it simply throws EE native message of:
"Invalid username or password"

Thanks again.

Secure LDAP Authentication (LDAPS)

Can this extension support secure LDAP (LDAPS) authentication when the authentication server is not on the same network as the system?
What are the steps necessary if LDAPS is possible?

Couple of issues

Hi,

in the create_ee_user function around line 294:
$this->EE->db->query('INSERT INTO exp_member_data...
&
$this->EE->db->query('INSERT INTO exp_member_homepage...

Both causes unique DB errors as I think the $this->EE->member_model->create_member now creates the DB entries for you. If I comment them out then new users register fine.

Also in the same function you have hard coded the group_id to be 6, in my particular case the member group_id was 5 - no big deal, but perhaps make it a config option?

Cheers Jon

TLS Support

Is this planned

Something I can hire you to do?

Please advise - we really need Start TLS support

Message: Undefined property: EE::$member_model

Hi front,

I'm testing this extension and seem to be running into this error:

A PHP Error was encountered

Severity: Notice
Message: Undefined property: EE::$member_model
Filename: nce_ldap/ext.nce_ldap.php
Line Number: 286

Ever seen this? Everything seems to be validating according to the debug output until after Inserting user with data.

Help with OS X Server LDAP?

Hi,

Is there any reason you can think of why the plugin wouldn't work with OS X server's Open Directory? I'm pretty sure I've got all the settings correct, yet I still get an invalid name/password error on login.

No login events in CP Log

I noticed this extension isn't calling the logger function, and my Control Panel log was full of only log out events so I patched this in the login_authenticate_start function, after the $this->sync_user_details($result); line.

$query = $this->EE->db->query("SELECT member_id FROM exp_members WHERE username ='".$this->EE->db->escape_str($result['username'])."' LIMIT 0, 1");

if ($query->num_rows() > 0)
{
    foreach($query->result_array() as $row)
    {
        $this->EE->session->userdata['member_id'] = $row['member_id'];
        $this->EE->session->userdata['username'] = $this->EE->db->escape_str($result['username']);
    }
}


$this->EE->load->library('logger');
$this->EE->logger->log_action("Logged in via LDAP");

How do I know this extension is working?

Hi, I installed the LDAP extension on my EE 2.3.1 and I'm trying to test it to see if it works but not sure how to do so? Is there any documentation or info somewhere on how to test this? Any help is appreciated.

Thank you,

Mike

Why am I logged in as another user?

I have extension LDAP authentication version 1.3 on EE 2.10.1 and after I open a website shows me that i'm logged in as another random user who is registered on website.

Please help...
Thanks

Daylight Savings

After upgrading to EE 2.7 the ldap module will not create new users because its trying to insert a y/n into the ext_members table for a "daylight_savings" column that doesn't exists. I was able to comment out line the "$data['daylight_savings'] = 'n';"

Still active?

Is this module still active? I'm looking at using it for a project that requires LDAP authentication. But if it is no longer compatible with the latest EE version (2.7 at the moment), that might not be the best plan.

Cannot login into the Control Panel

I just installed the LDAP plugin.
I got the settings information from IT and filled them out.
Here are my settings:

image

Once I update the settings I am not able to log into EE control Panel -- both my Active Directory and ExpressionEngine uname and password aren't working. It just goes to http://myuniversity.edu/admin.php?S=0&D=cp&C=login&M=authenticate and returns server error.

Assuming that the settings are correct, could there be any other reason why this is happening?

Please help..
Muthu

Question: members group

Does the extension remember which group the user has been assigned to (if you assigned him to another than the default member group) or is he assigned to the default group again every time the credentials are compared with the LDAP server information?

LDAP User Account Creation in Template Login Form

I have an issue with the extension not creating new ee user accounts from LDAP when authenticating through a login form in a template or the /member/login template. It works great when using the control panel login. Is there a setting that I'm missing?

Add LDAP Protocol and referrals options

Had trouble doing a full domain search on Windows 2003 AD server. Though the ldap_search says it should be doing subtree searches, it did not do so on my setup.

From comments on http://www.php.net/manual/en/function.ldap-search.php

If you add the following options, AD will do the subtree search properly.

ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);

Could these be added as setting options?

Issue with EE 2.4

I am on EE 2.4 and it looks like one of the functions that this plugin uses has been deprecated. I am seeing the following error being thrown in my developer log

The system has detected an add-on that is using outdated code that may stop working or cause issues with the system. What does this mean?
Deprecated function hash() called in \nce_ldap\ext.nce_ldap.php on line 246.
Deprecated since 2.0. Use Security_helper::do_hash instead.

Any chance this can be patched?

EE 2.2.1 Support?

Looks like this add-on may have issues with 2.2, as EL changed the authentication method.

Can you verify?

Users change password

We have an issue where users that change their password can no longer login to the website using this plugin. They change their password on there primary accounts and subsequently cannot login on our site. My best guess is that the locally created EE user remains with the old password and the LDAP check is never made so they can no longer login in.

Any way to address this?

Extension configured and enabled. What next?

After switching this extension on I was expecting to see users pre-registered under member group 5 (default for the extension). Either the config/settings aren't quite right or I'm missing something. What would the next steps be after enabling the extension?

Thanks in advance.

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.