How to connect Moodle to a PostNuke database
This explains how to use Moodle's external authentication so that users can log in to Moodle using existing PostNuke accounts. When they log in on Moodle, their username and password is compared against the Postnuke database. If there is a match they are logged in to Moodle. The first time they log in their Moodle account is created and populated with data from the Postnuke account. On subsequent logins only the username/password are checked without changing and Moodle account data they may have entered (eg city, country, description etc)
Here are the steps for the admin to set this up
- As admin, go to the "Authentication" setup.
- Select "Use an External database".
- Set up the first five variables to specify access to the database that contains the Postnuke tables (eg auth_dbhost, auth_dbtype, auth_dbname, auth_dbuser, auth_dbpass)
- auth_dbtable = nuke_users (the name of the Postnuke user table)
- auth_dbfielduser = pn_uname
- auth_dbfieldpass = pn_pass
- auth_dbpasstype = "Md5 Encryption"
- (Optional) You can specify other nuke_users fields to use in the remaining entries. For example if you put "pn_email" in the entry for "Email address", then the Postnuke email address will be copied into the Moodle email field for each user as they authenticate the first time. If you don't do this then users will be prompted to fill in missing fields before they can use any courses.
- For "Instructions", write something meaningful to explain to your users which username/account they should be using.
- For "Change password URL" put in the URL of the page in your PostNuke setup where they would change their Postnuke password.
- Finally, you can choose to allow/disallow the "Login as Guest" button on the login page.
You're done! Save the changes then go and try to login using a PostNuke account.
- The data gets transered to the users table. (Good.)
- Browser gets locked in a META REFRESH loop. (Not Good
)
- Canceling this locked-loop thingie causes a blank page, however returning to the default homepage, allows me to continue on as that user. (sorta OK for me, but not others)
- commenting out line 1108 in /lib/weblib.php:
// echo "<META HTTP-EQUIV='Refresh' CONTENT='$delay; URL=$url'>";stops the looping, but nothing else will work
- Turning the debug on doesn't provide me with any insights.
Here's my platform:
-
Windows 2000 Server SP3
-
PHP 4.2.3
-
MySQL 4.0.4-beta-max-nt
-
Moodle 1.0.8 (latest one from the site)
Any Suggestions?
Many thanks for such a great tool!
Ryan Kern-Mount
This is bizarre! It only affects new accounts created AFTER the link between PostNuke and moodle. Prevously created accounts are OK, but new account logins go into an endless loop!
Martin - u can check it out at www.maxinfo.com.sg/ILM/moodle. Create a new account and see. I've tried it for both 1.0.8 and 1.0.8.1
Can you try this fix for me?
In user/edit.php, near the top, is this line:
if ($user->confirmed and !$user->email) {Can you please change it to:
if ($user->confirmed and user_not_fully_set_up($user)) {And try it again?
Re: How to connect Moodle to a PostNuke database
Re: How to connect Moodle to a PostNuke database
Re: How to connect Moodle to a PostNuke database
Hi
Just wondering if the above instructions would allow anyone logging into moodle to pass the user name, nick, password, email information to more than one database, if for example someone has to login several times on a system. Or am I looking at this from the wrong direction? What I want to do is have someone login to moodle and have all the user information sent to a central database or sent to more than one database. Is this possible?
Thanks
Hey, the chess man is back!
Cas Nuy recently contributed a module for PostNuke called pnMoodle that encapsulates Moodle and allows a single sign-on. Is that what you need?
See the bottom of this page for downloads and details: http://moodle.org/download/modules/
Hi Martin
Good morning, you must be just getting up, down under.
Nice to see your system has moved into the mainstream, as they say the cream always comes to the top.
Hope things are well.
Just dropped by to see how things were going, and I was reading the article about alternate databases and was just wondering if it is possible to automaticly transfer user information to another database after the user logs into moodle.
I will look at the module, but I don't think it is exactly what I want.
Anyways you have a great day.
Some new Information about the moodle integration to postnuke
and the download for a postnuke sideblock for moodle
http://www.nuy.info/726/modules.php?op=modload&name=UpDownload&file=index
這一討論區的貼文已經被移除
Re: How to connect Moodle to a PostNuke database
The explanation you made, means that the database of phpnuke is always in communication with the moodle database??, so the user name and password in php nuke are the same for moodle??
Is the same thing with mambo??
i hope you can help me with that, because in the platform that i want to develop the people who buy my courses pay in my web site in mambo, after they pay, they can go to moodle, so i need to understand how make that connection

this afternoon i going to try the external authentication like you explain before but with mambo, wishme luck.
Claudia
Hi,
Pls where can I download pnMoodle. The links below are not working:
http://download.moodle.org/download.php/modules/pnMoodle.zip and http://download.moodle.org/download.php/modules/pnMoodle20.zip
Thanks for your response.
You know what would be great? Make Moodle a PN Module or just embed Moodle using a tool like PostWrap. (Martin any comments?)
<Social Constructivist Rant>
Moodle has all the right ingredients for something quite extraordinary. While PostNuke is on the right path for a CMS product, Moodle has all of the necessarily components for an excellent alternative to other LMSes.
The Social Constructivist methodology is perfect for Internet-based projects. In fact, many of its detractors (and there are tons of them), participate in Social Constructivist acitivites on the Internet and don't even know it! HA! LOL.
The many to many model, which is the raw building blocks of social constructivism, IMHO, finds a happy (and somewhat secret) home on the Internet.
</Social Constructivist Rant>
Ryan Kern-Mount
> You know what would be great? Make PostNuke into a Moodle module.
Heck, either way would be OK with me. My current project is to create an LMS for my corporate PostNuke developer portal. Since I'm a closet social constructivist, which is usually not compatible (at least superficially) with your typical corporate ideology, Moodle makes perfect sense. And besides, it's really interesting!
Now I could run two separate sites, but that wouldn't be elegant. So I'll have to give it more thought.
> I would disagree that social constructivism is a methodology as such, it's more a perspective, but I think you're right that it's very compatible with the Internet! I would disagree that social constructivism is a methodology as such, it's more a perspective, but I think you're right that it's very compatible with the Internet!
I feel that is it a methodology; a somewhat anarchistic one. It's certainly a perspective too! In the writing/critical theory pedagogy (my background), we've developed entire curricula around it. Weve also be chastised by the State of California in some respects for promoting it. Seems conservatives dont like it, but this is a conversation for another thread perhaps.
I dunno, maybe were arguing about our terms. Much of the same arguments have been made of Deconstruction: it's not something you practice/methodology, it's more of a way of being. (Now wouldn't Derrida love that assertion! What do you mean by "being"? )
I think, however, that I'm among good company and I'm thrilled to have found a software project that upholds the just values of social constructivism.
Best Wishes,
Ryan Kern-Mount