![]() |
New LDAP Library! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: New LDAP Library! (/showthread.php?tid=13211) |
New LDAP Library! - El Forum - 03-13-2009 [eluser]Wil Wazka[/eluser] To be honest and fair, this is a very needed library, always requested as part of the 'database' core drivers. However in the other hand, it is worth to take time for improving. Right now I'm using this, but found some flexibility lacks, two of them pointed out here as 'issues', but they are easily solved with some group work. As I'm highly interested in this library, let's take some time to point this two first 'issues' and my proposal for solution (sorry for my bad english, not my mother language). 1) As noted by @traveler, trying to initialize the library as explained in the documentation, just doesn't work, because the constructor requires a config array parameter to be passed in to the Code: $this->load->library('ldap') From here, and by looking into the code, I just wonder why don't we provide any Code: init() and connect() Besides... what about a config file instead or as complement of the constants alternative? 2) As pointed by someone here up, there's a lack of some error handling, from the OO sight, IMHO. In the following code, I've included these behaviours: a. Test the presence of 'connection data' using empty instead of direct NULL comparation. b. Try to connect to the server anonymously if the above condition isn't true. c. Check the _error() method at the bottom, and it's usage within the constructor. Hope this may be useful at least as example. May this common effort lead us into a very useful plus flexible solution. Cheers! Code: /** New LDAP Library! - El Forum - 05-08-2009 [eluser]Unknown[/eluser] Iverson, Thanks for contributing this library! It has saved me a lot of time. New LDAP Library! - El Forum - 05-21-2009 [eluser]Wiggum[/eluser] I am the author of adLDAP, which you've kindly ripped my class, changed my licence, and removed my details. Users of this library, be aware that it's stolen work, non-attributed, and I'm considering my options in regards to the licence breach. I'm not unreasonable, if the author reinstates the licence and attributes it to me instead of just stealing my (our) work, then I'd actively encourage Code Igniter to use the derivative work. Thanks, Scott. New LDAP Library! - El Forum - 06-03-2009 [eluser]Wiggum[/eluser] On reflection I hope the licencing problem is just a misunderstanding. adLDAP is licenced under the LGPL, anyone is welcome to redistribute it. The LGPL is really a licenced designed to actively encourage derivative works, but all derivatives are still LGPL. Please note that it's also perfectly healthy within the LGPL for anyone to modify adLDAP and keep their changes internally, you don't have to distribute them. If anyone (including the original author) is interested in this work and is happy to make it available for code igniter developers with the licence restored, we'd really be keen to see this happen. We'd probably even be happy to host it as part of adLDAP on sourceforge if you're interested in joining the project ![]() Cheers, Scott. New LDAP Library! - El Forum - 06-04-2009 [eluser]33cent[/eluser] Hi, i'm interested in Linux version of LDAP library, because this library doesn't work with OpenLDAP on Linux. New LDAP Library! - El Forum - 06-26-2009 [eluser]sammaeliv[/eluser] how can i get this library? can somebody sendme a link that works?? plz... post it here (plz) New LDAP Library! - El Forum - 07-06-2009 [eluser]idxman[/eluser] [quote author="Wiggum" date="1244088146"]If anyone (including the original author) is interested in this work and is happy to make it available for code igniter developers with the licence restored, we'd really be keen to see this happen. We'd probably even be happy to host it as part of adLDAP on sourceforge if you're interested in joining the project ![]() Cheers, Scott.[/quote] I'm very interested in this sort of thing for use with CI. I've been using adLDAP for a number of years now with my hodge-podge homegrown framework of sorts and it's been a great help in a corporate environment. At this point all I'm looking to do is require AD authentication on 95% of the controllers and also use AD groups to control various aspects of the application. New LDAP Library! - El Forum - 07-28-2009 [eluser]whobutsb[/eluser] What happened to the download link for the LDAP library? I would like to use it on my project! New LDAP Library! - El Forum - 07-28-2009 [eluser]Derek Jones[/eluser] See the moderator's edit to the original post, whobutsb. New LDAP Library! - El Forum - 07-28-2009 [eluser]whobutsb[/eluser] Thanks Derek. I should've followed the links around. |