![]() |
|
Authenticating new/existing accounts with LDAP - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Authenticating new/existing accounts with LDAP (/thread-8165.html) |
Authenticating new/existing accounts with LDAP - Celcius - 2011-01-27 I was wondering if anyone has any experience with using LDAP to authenticate their accounts. I have a directory with all my accounts and I was hoping to use LDAP to authenticate them. Anyone do this before? I don't see a plugin which is too bad. Authenticating new/existing accounts with LDAP - sbillard - 2011-01-27 So far, no one has done this. However, it is feasible, but will require an extension to the Zenphoto_Authority class. Provision has been made for this kind of thing--an alternate lib-auth can be placed into the plugins folder. I would be interested in such an effort. If you have the knowledge of the LDAP side, create a ticket for this effort and we can continue the converstaion there. Authenticating new/existing accounts with LDAP - Celcius - 2011-01-27 Having this feature on my ZenPhoto gallery would make it the perfect tool for what I want to accomplish. However I am currently only working part time and am not sure if I could commit that much time to helping you build this. I will submit a ticket, and see what we can get going. Authenticating new/existing accounts with LDAP - spelth - 2013-01-13 Hi, The autentication itself is done via LDAP, but all user properties are stored in the zenphoto-DB To distinguish between a local and a ldap-user i used the 'other-credentials' DB-field with the value 'ldap'. At the moment i'm struggling with two issues:
The LDAP-authentication works fine, but what is missing is the ldap-user registration part on the admin->users page. I tried to modify the page, but my php-knowlegde is not as good as i wish. So my question is, if anybody is interested to do the admin-users-page modification, but addition i have to mention that i also have no github-experience. Authenticating new/existing accounts with LDAP - acrylian - 2013-01-13 I am not familiar with the login stuff or LDAP itself. I could imagine that it might be easier to extend the federated_logon plugin. But my colleague sbillard surely knows more about that. Also the admin-users.php has a filter to attach extra information via plugins (currently there are extra fields shown if the comment_form plugin is enabled though). See the plugin tutorial on the user guide. Authenticating new/existing accounts with LDAP - spelth - 2013-01-13 Thanks for the information. Well, a few changes need to be done regarding user-management, but i'm looking forward to complete these tasks during the next (2) week(s). Can i contact sbillard in some way (pn,mail,ticket,..) to talk about this feature? I would like to contribute it. Authenticating new/existing accounts with LDAP - acrylian - 2013-01-14 First please read the two links within http://www.zenphoto.org/pages/get-involved Then there are basically two ways to contribute generally:
Authenticating new/existing accounts with LDAP - sbillard - 2013-01-14 I know it is a bit late, but you should also take a look at the In this case there are no Zenphoto users created in the database. All rights come from the external source which is preferable, since otherwise it violates the addage that if you have two copies of something then one of them will be wrong. Authenticating new/existing accounts with LDAP - spelth - 2013-01-15 I thought about it, you're right. It is much more simpler, after the code review of the external_auth.php i understand the principals of the user handling a little bit better, that was the missing link. Authenticating new/existing accounts with LDAP - spelth - 2013-01-15 Hi, Authenticating new/existing accounts with LDAP - sbillard - 2013-01-15 I should have mentioned that the class defined in external_auth is intended to be a base for a class you define--your class extends the external auth one. Then you make your own methods which retrn the appropriate data. There are some filter hooks that you use to intercept the logon stuff.
`
Authenticating new/existing accounts with LDAP - sbillard - 2013-01-15 I would also like to note that we have had other requests for LDAP authorizations, so your work will be greatly appreciated by the community when it is done. I am sorry I am not very available at the moment. But I will try to check in from time to time. It might help if you create an account on GitHub for this effort, then perhaps we can make it a collaborative effort. Authenticating new/existing accounts with LDAP - sbillard - 2013-01-19 @spelth: I've emailed the full MyBB plugin to your mail address in your forum profile. If you do not get it let me know and we will find another way to deliver it. I obtained permission from the person who contracted it to share it with you. An example always helps. Authenticating new/existing accounts with LDAP - spelth - 2013-01-24 @sbillard: I finished the MS Active Directory integration today, both - the AD and OpenLDAP authentication are working. Authenticating new/existing accounts with LDAP - sbillard - 2013-01-24 Congratulations. I know that this will be well received. We usually prefer that the developer maintain code when we have not means for testing. So your GitHub repository account sounds the right way to go. We can add a link on our site to your repository so that others will have an easy time finding it. If you would prefer we could instead link to a WEB page that you create describing the plugin. Just let us know what you wish. Authenticating new/existing accounts with LDAP - spelth - 2013-01-26 The plugin can be found under https://github.com/spelth/zenLdap When it is activated the images won't be created in the cache and they are displayed as empty (i use an external datasource, with the few images in my test-environment i see all pics). Authenticating new/existing accounts with LDAP - sbillard - 2013-01-26 I have made some comments as issues on your repository. |