Kohana Auth and LDAP

I just put a new project up on GitHub that some people might find useful. Hopefully. I mean, that’s the point, right? It’s a module for Kohana that allows their Auth module to authenticate using LDAP. Oh, and it does a couple other neat LDAP-related things as well.

It’s not quite complete, so make sure you read the fine print. It seems to be working well for me so far, though.

Hooray for my first open-sourcey project publification.

Post Revisions:

There are no revisions for this post.

3 thoughts on “Kohana Auth and LDAP

  1. I’m using this in one of my projects. I’ve written similar LDAP classes to handle authentication with custom frameworks. I’m new to Kohana so I’m happy someone did the leg work for me. One thing I did add to the adLDAP library was a nullable account suffix when using an ad_user to connect.

    ln :373

    // Added nullable account suffix when connecting with a ad user - mcamden
    if($this->_account_suffix != null) {
    $this->_bind = @ldap_bind($this->_conn,$this->_ad_username.$this->_account_suffix,$this->_ad_password);
    } else {
    $this->_bind = @ldap_bind($this->_conn,$this->_ad_username,$this->_ad_password);
    }

    Thanks for your work.

  2. Hey guys, thanks for the tips. The project I was making this library for got canceled so I haven’t been able to make any updates lately, but I am maintaining a to-do list and considering setting up an LDAP server on my personal network just to play around with it some. If that happens I’ll be sure add your suggestions to the code.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>