Warning message

The service having id "facebook_widget" is missing, reactivate its module or save again the list of services.

Authenticating with Moodle and single sign on

Comments

Hello Fred, I'd be happy to help you share the settings for authenticating Moodle users against FirstClass. What version of Moodle are you running? We have been developing using Moodle 1.5 and comes with LDAP integration with FirstClass, built in. Navigate to the /auth directory at the top level. Inside you will find a directory /fc. In here you will find all the connection settings that you will need to configure for your particular setup.

/auth/fc

You will need to enable Flexible Provisioning Protocol (FPP) on the FirstClass server and create a new account with subadministrator preferences. See the Readme.txt file, below, for more.

Moodle - FirstClass authentication module
-----------------------------------------
This module uses the FirstClass Flexible Provisining Protocol (FPP) to communicate between the FirstClass server
and the Moodle host. 

Installation
------------

1. Enable FPP on the FirstClass server
FPP is not doumented in the FirstClass documentation and is not enable by default.
To enable the protocol you need to edit the file \FCPO\Server\Netinfo. Open the file and insert the
following lines.  

// TCP port for Flexible Provisioning Protocol (FPP).
TCPFPPPORT = 3333


2. Create an account on the FirstClass server with privilege "Subadministrator".
Using the FPP protocoll this module logs in to the FirstClass server and issuess batch admin commands.
Batch admin command can only be issued in the context of a user with subadministrative privileges.

Default account name is "fcMoodle".


3. Check that the FPP protocoll is working by running a Telnet session. If everyting is working you
should get a "+0" answer from the server. 

> telnet yourhost.domain.com 3333
+0

Check that the "fcMoodle" is working by entering the following sequens of commands:

> telnet yourhost.domain.com 3333
+0
fcMoodle
+0

the_password_you_gave_fcmoodle
+0

Get user some_user_id 1201

1201 0 some_user_id
+0



4. On the Moodle host go to the directory where you have installed Moodle.
Open the folder "auth", where all other authentication modules are installed,
 and create a new directory with the name "fc". 

Copy the files "config.html", "fcFPP.php" and "lib.php" to the "auth" directory.

Now you need to add som strings to the language file. This distribution contains
string for the English (en) and Swedish (sv) translation.

Open the file "auth.php" in the folder "lang/sv" and paste the text from the file
"auth.php - sv.txt" at the end of the file above the line "?>"

Open the file "auth.php" in the folder "lang/en" and paste the text from the file
"auth.php - en.txt" at the end of the file above the line "?>"

in the configuration screen for authentication, http://yourmoodleserver/admin/auth.php?

§1) Select LDAP, enter the URL for your LDAP-server ldap://yourLDAPserver and correct version (3)

§2) I have prevent bind.

§3) cn=users,dc=yourhost,dc=com (my usertype is POSIX)

Hope that's enough to get you going...

Hi TB

Just wanted to thank you for your contribution and for solving the issue that some of the Moodle users have experienced.

HI! I would like to say that you have a very cool site with lots of inetresting information. I had fun being here. I also know one cool music site http://www.mp3city.com.ua/ with great music. Check it out!

Hi -- Do you know if we can enable FPP on a FirstClass server on an X-Serve running OSX 10.4.10? I'm asing because "\FCPO\Server\Netinfo" looks like a Windows path and I don't have any of those path components on my machine.

Any insight you could give would be great.

Thanks.

Barbara Napholtz
Web Developer
Morristown-Beard School

Hello Barbara,

Enabling FPP was done on a FirstClass server running on Mac OS X 10.4

However, it was ages ago that I did this, so hard to remember. The "\FCPO\Server\Netinfo" directory is within the Post Office directory of your FC installation. Have a look in there and see what you can find.

regards

Jonathan

Thanks for the speedy reply, Jonathan. I've found server/netinfo in our backup postoffice ... I'll keep digging for other options. Unless my boss scraps the project on me, I'll be happy to provide this forum with documentation of the steps involved once I get the access working. We're running FirstClass Server 9 on Tiger.

Barbara Napholtz
Web Developer
Morristown-Beard School

Jonathan -- Once more -- thanks.

We're running OS X Server 10.4.10 and FirstClass Server 9.0.

The netinfo file was found at:
/Library/FirstClass\ Server/Volumes/Master/fcns/server/netinfo

Had I realized that our locate database doesn't contain entries for this path [ another headache for another day ... ], I wouldn't have had to have posted a question to this blog in the first place ...

Thanks for being there!

Barbara Napholtz
Web Developer
Morristown-Beard School

Hi Barbara,

You are very welcome... and glad I was able to help - though you have stirred the dim and distant memory bank in saying that the directory is actually deep-rooted within the Library folder.

After you posted, I took a look at your school's website and was impressed with the level of technology you have already embedded into the site. As someone who manages the Stepping Stones School website here in the UK, I was interested to have a trawl around, particularly as I am currently involved in the re-vamp of our site.

Good to hear from you,

with best wishes

Jonathan

Hi Jonathan
I'm currently trying authenticating my moodle (1.9) against LDAP (Ms. Windows 2003), i don't get any error but i always get "Invalid login, please try again" every time i tried login.
this is my configuration :

LDAP server settings
--------------------
Host URL : ldap://10.100.70.5
Version : 3 (since i using win2k3 serv)
LDAP encoding : utf-8

Bind settings
-------------
Hide passwords : No
Distinguished Name : CN=moodle,OU=ProgrammerOU,DC=xxx
Password : ***

User lookup settings
--------------------
User type : MS Active Dir
Contexts : ou=ProgrammerOU
Search subcontexts : Yes
Dereference aliases Choose... : No
User attribute : cn
Member attribute: [empty]
Member attribute uses dn : 0
Member attribute uses dn : [empty]

....

Course creator
--------------
Creators : OU=ProgrammerOU,DC=xxx

thanx before

We are running FirstClass 9.1 on OS X 10.4, and I found the server/netinfo folder, but there is no netinfo file. There is a directory called ports that looks like it might be related, but I can't find any reference to it anywhere. Any ideas?

What about authenticating the other way. ie students log into a system such as FirstClass and then click a button that takes them to their moodle account.

Does Moodle have any provision for logging in this way? I assume there is a post URL with parameters tat would work, but this is clunky.

jeffpatterson@gaggle.net

i need to integrate moodle and typo3 can any one help me out and main inportant topic is SSO

Hi, I am Vinay.
I have set up moodle url in inside the login page of my website.but that link is opening directly also.How to authenticate so that it can accessible after login in my site?

guys, any comment for SSO from another application to Moodle version 2.0.1 or 2.0.2? i have some problem because i haven't detailing information about it, would you to answer my that problem? thank you anymore

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Image CAPTCHA
Enter the characters shown in the image.