phpScheduleIt
June 19, 2013, 09:27:27 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Use same login and role provider in both Wordpress and phpScheduleIt?  (Read 1361 times)
projektgrupp.projekt.alby
Newbie
*

Karma: 0
Posts: 5


« on: February 21, 2011, 05:16:33 PM »

Hello!

We are working on a student project, were we will try to add phpScheduleIt to a Wordpress site. The plugin seems to work, but we have a question about the login and role provider systems. Wordpress has one system for login and role provider, and phpScheduleIt has another. Is it possible to make phpScheduleIt use the same login and role provider as the Wordpress site? If yes, does anyone have any advice how to make it work? Links to tutorials? Any help you can give us is warmly appreciated.

Have a good evening!

Friendly greetings from us!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: February 22, 2011, 01:44:10 PM »

If you're comfortable with PHP I'd suggest taking a look at how the LDAPEngine class works.  This approach is similar to what would be needed to integrate with any external credential store.
Logged
projektgrupp.projekt.alby
Newbie
*

Karma: 0
Posts: 5


« Reply #2 on: February 24, 2011, 02:20:03 PM »

Thanks for your reply Nick! We have mostly studied .Net, but have also taken a course in PHP. So we are not experts on PHP, but know a fair bit. It would be very nice if you can give us a short description as to what LDAP Engine is, and how it works. We found variables for LDAP in config-file in phpScheduleIt, but have not found a class with that name. Do you know of any tutorials or information were we can learn how to use LDAP Engine to solve our problem? Any advice is warmly appreciated!

Thanks again! Have a good day!
Logged
projektgrupp.projekt.alby
Newbie
*

Karma: 0
Posts: 5


« Reply #3 on: February 24, 2011, 02:44:30 PM »

Oh by the way: Are you the same Nick that has created phpScheduleIt? If so: WELL DONE! Very impressive! So very nice of you to share your magic. Very nice indeed! Keep up the good work! If you are not the same Nick: Then thanks a million for sharing your knowledge about php and this plugin. So either way: Thanks Nick! :=)
Logged
projektgrupp.projekt.alby
Newbie
*

Karma: 0
Posts: 5


« Reply #4 on: February 26, 2011, 03:57:12 AM »

We have now found the LDAPEngine class, but we still have not found out how to use it to solve our problem. Does anybody have any ideas? I guess there must be others out there who has used phpScheduleIt on sites that already has a login and roleproviding system. How did you solve this problem? Any advice is highly appreciated. Thanks in advance.

Have a great saturday!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #5 on: February 28, 2011, 01:25:27 PM »

This is how I typically suggest account integration (which is very similar to how the LDAPEngine works).

Accept login request
Authenticate against source (in this case, wordpress)
If authentication fails, inform the user
If authentication success, check if user exists in phpScheduleIt database
If yes, update phpScheduleIt user information
If no, create phpScheduleIt account
Proceed with phpScheduleIt login


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!