Firefox PHP

Module: External Authentication

Posted by Joe Curia 
Re: Module: External Authentication
May 08, 2009 12:54PM
Joe,

You were right that it was missing a closing bracket, good call.
I have it authenticating against the username and items that were currently in the phorum database.
Thanks



Edited 1 time(s). Last edit at 05/21/2009 12:00PM by Chris M..
Re: Module: External Authentication
May 08, 2009 01:30PM
If you are using the base code then chances are your Phorum user is updated with the moodle password. This means that if your Phorum admin has the same username as your Moodle admin but had a different password, that Phorum password has been overwritten with the Moodle password. This assumes that moodle simple generates and md5 hash of the users text password. If Moodle adds any sort of security key before encrypting the password this will cause an issue as Phorum will not add that key. You can see an example of this in the Elgg plugin where they add a "salt" variable to the password before encrypting it. Those are just a couple of possibilities here. Let me know if neither helps.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: External Authentication
May 08, 2009 01:31PM
Is the admin field for that user set to 1 in the phorum user database?
Re: Module: External Authentication
May 08, 2009 01:48PM
Is there a script in the forums here that I can use that will have all the proper hooks for the the Phorum database included that I can upload to be able to run SQL statements against the Phorum database. This will allow me to change the Phorum admin back to active to fix the problem which I think is the admin boolean being changed to zero.

Thank you for all your help!



Edited 1 time(s). Last edit at 05/21/2009 12:02PM by Chris M..
Re: Module: External Authentication
May 08, 2009 02:09PM
Can you log in to phorum and get access to the admin's control center? (from the phorum index page)

If you can, you should see:

User Permissions
You are an Administrator.

on the bottom right of your personal profile

also see if you have ftp access to server
[www.phorum.org]



Edited 1 time(s). Last edit at 05/08/2009 02:14PM by DavidVB.
Re: Module: External Authentication
May 08, 2009 02:21PM
David,

No I do not have that in my control center.
I wrote a short little script that is doing what I need to print out the user info.
I have set the admin to zero like you had explained earlier.

If I setup a user array within this script and then use the phorum_api_user_save_raw($user) function to can i append that data back to my database to update my database. It appears so, right or would there be a better way of doing this.

Thanks!



Edited 1 time(s). Last edit at 05/21/2009 12:03PM by Chris M..
Re: Module: External Authentication
May 08, 2009 02:26PM
To be an admin, that field needs to be a 1.

Maurice's program should work (although that may be a 5.1 version)
[secretsauce.phorum.org]
Re: Module: External Authentication
May 08, 2009 02:33PM
David,

That worked great. Thanks Maurice!

Thank you very much!



Edited 1 time(s). Last edit at 05/21/2009 12:03PM by Chris M..
Re: Module: External Authentication
May 08, 2009 03:36PM
The phorum admin philosophy has been to separate the admin functions from the daily operations of the forums and not to have links to the admin section from the main board. You would usually only want to have 2 or 3 people with admin authority (too easy for too many cooks to spoil things) so manually setting them up is not too difficult of a task. Once you have the forum setup, about the only thing you might have to worry about on a semiregular basis would be to update the ban lists (and if you require registration, even that becomes rare)
Re: Module: External Authentication
May 08, 2009 03:42PM
For this module, you will probably also want to disable the transfer of admin settings (from the module's settings page) otherwise you will need to find some Moodle criteria which will determine if the moodle user is given admin status. If the transfer is disabled, your user's admin status will not be reset to 0 every time the user_session_restore hook is called.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.

Click here to login