Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    New Pligger dwithnall's Avatar
    Joined
    Jul 2007
    Posts
    2
    Thanks
    Received:0
    Given: 0

    [MOD] LDAP Integration

    Greetings all,

    I've whipped up an LDAP integration module.
    It's entirely based on the WikiMedia LDAP plugin and all I've done is modify a few bits to work with Pligg. See here for more details

    Basically it validates the user against the LDAP and then if the user exists in the Pligg DB it will update the details with the latest password & email address.
    If not it will create a new user.

    Pligg will then continue on it's normal login procedure and validate the details against the newly created/edited user.

    This method provided minimal disruption to the core Pligg code.

    The code snippet below needs to be added to the Authenticate function in
    /libs/login.php to add a new hook for Pligg to use on authentication.

    function Authenticate($username, $pass, $remember=false, $already_salted_pass='') {
    global $db;
    $dbusername=$db->escape($username);

    $authArray = array("username" => $dbusername,
    "password" => $pass,
    "remember" => $remember,
    "salted_pass" => $already_salted_pass);

    check_actions('user_authentication', $authArray );

    $user=$db->get_row("SELECT user_id, user_pass, user_login FROM " . table_users . " WHERE user_login = '$dbusername'");
    The attached zip contains the module. Just plug it in as normal.

    I have configured and tested it in my environment only. It may or may not support all of the functionality provided by the wikimedia plugin. I do not plan on making any improvements to this module as I am setting things up for a short term test environment.
    Attached Files Attached Files

  2. #2
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    Great work and thanks for sharing, will try and report in here.

  3. #3
    New Pligger nspuum's Avatar
    Joined
    Aug 2007
    Posts
    22
    Thanks
    Received:0
    Given: 0
    after install this module and edit the login.php and also the ldap.dll enable . am i need set the ldap_seeting.php ?
    i am not sure about the LDAP server name ? who should i check in my company? network admin?

  4. #4
    New Pligger captmega's Avatar
    Joined
    Oct 2007
    Posts
    1
    Thanks
    Received:0
    Given: 0
    Good work on adapting this mod. Thanks!

  5. #5
    New Pligger sems's Avatar
    Joined
    Mar 2008
    Posts
    2
    Thanks
    Received:0
    Given: 0
    My LDAP server does not use any TLS or SSL, so I setup ldap_settings.php as:

    $LDAPEncryptionType = array("myhost" => "clear");

    However, when I try to login as a user, I receive:

    Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Can't contact LDAP server in /var/www/pligg/modules/ldap/ldap_main.php on line 166

    What am I missing?

  6. #6
    New Pligger sems's Avatar
    Joined
    Mar 2008
    Posts
    2
    Thanks
    Received:0
    Given: 0
    Found my issue, in ldap_main.php, you need to specify your domain:

    $_SESSION["LDAPDomain"] = "myhost";

  7. #7
    New Pligger jalemathai's Avatar
    Joined
    May 2008
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Hello,

    I have the LDAP integration working however the user's 'email' address/attribute is not being written to the local pligg database.

    Does anyone have some expertise with this module?

  8. #8
    New Pligger pgb315's Avatar
    Joined
    Jan 2009
    Posts
    7
    Thanks
    Received:0
    Given: 0
    Does anyone have this working with RC2? It shows up at the top of the modules list for me outside of the table structure without an install link. Worked fine in the old beta.

    Thanks!

  9. #9
    New Pligger jbukowb's Avatar
    Joined
    Jan 2009
    Posts
    1
    Thanks
    Received:0
    Given: 0
    We're upgrading from 9.9.0 to RC2, and weren't able to get the module working either. I saw the same results; it shows up at the top of the module list, without an 'install' link.

    Was anyone able to get it working with RC1?

  10. #10
    New Pligger pgb315's Avatar
    Joined
    Jan 2009
    Posts
    7
    Thanks
    Received:0
    Given: 0
    Credit the pligg developers with this fix: this module needed a ldap_readme.htm file. Thanks guys!

    Just create a file with that name in the modules/ldap directory and you'll be able to install it.

    Unfortunately, I still can't get it to work like it does in the earlier betas. If anyone else has any luck wih this, please let us know.

    Thanks.

Page 1 of 2 12 LastLast

Similar Threads

  1. digg integration
    By bbrian017 in forum Questions & Comments
    Replies: 0
    Last Post: 06-04-2008, 07:11 PM
  2. LDAP integration guidance
    By kartiksubbarao in forum Questions & Comments
    Replies: 3
    Last Post: 05-28-2008, 08:58 AM
  3. Ldap ?
    By skelley in forum Questions & Comments
    Replies: 3
    Last Post: 09-10-2007, 01:35 AM
  4. ImperialBB integration
    By tenkabuto in forum Questions & Comments
    Replies: 0
    Last Post: 12-27-2006, 09:08 AM
  5. SMF integration
    By mealex in forum Questions & Comments
    Replies: 0
    Last Post: 03-24-2006, 08:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg