Quantcast
Channel: Authentication
Viewing all 8277 articles
Browse latest View live

Re: Self registration with admin confirmation

$
0
0

by fred hunter.  

I've managed to resolve this myself and have worked around the placeholder conundrum


Re: Get a user from a section with moodle

$
0
0

by Emma Richardson.  

So, you are trying to set up single sign on from another system?  This is possible but will need to set up from your third-party platform.  

Please make reCAPTCHA on login a regular feature of Moodle 3.3

$
0
0

by Martin Biermann.  

A captcha on login is a requirement of from my IT security administration for my site https://nukit.ihelse.net/moodle

Before I was allowed to launch our national teaching website for Nuclear Medicine specialists in Norway, the system was scrutinized for potential security issues and this was an absolute requirement that I had to fix before my Moodle server could go online.

So please introduce this feature in Moodle 3.3!

I wrote my own PHP code first in Moodle 2.9 and now in Moodle 3.2. In Moodle 3.2, only ./login/index.php needs to be modified. I published my code example on Moodle Tracker as MDL-53368. It is just one code block that needs to be pasted in. Unfortunately, this needs to be done every time Moodle is upgraded. 

As for the captcha on self-registration, the keys should be stored in the database. If the fields with the keys are left blank in the database then the captcha code should not be run. I recently ran my first course on Moodle. Google recaptcha 2 worked fine even on mobile devices and none of my users complained. An alternative could be Google 2-factor authentication, but this is probably too cumbersome for most users.


Re: Please make reCAPTCHA on login a regular feature of Moodle 3.3

$
0
0

by Ken Task.  

Just tinkered with a 3.2+ (Build: 20161208) site and recaptcha ... after acquiring the keys checked the DB and the keys were there.

select * from mdl_config where name like 'recap%';

recaptchaprivatekey =
recaptchapublickey =

Also checked out the https:// url you shared.

Certificate valid?   Might explain issues with reCapcha (of course I could be missing the point)

Try curl -I https://yoursite/moodle/

and see what you get.

'spirit of sharing', Ken

Re: Moodle as SAML Identity Provider

Re: How to use multiple LDAP servers with Moodle 1.8

$
0
0

by Iñaki Arenaza.  

Hi,

I'm a bit behind the promised schedule wink, but here go updated patches for Moodle 3.2 and Moodle master, current as of today.

I'll send patches for Moodle 3.0+ and Moodle 3.1+ in a second message, as I can't attach more than two files per message in this forum.

Saludos. Iñaki.

Re: How to use multiple LDAP servers with Moodle 1.8

$
0
0

by Iñaki Arenaza.  

Hi again,

here are the updated patches for Moodle 3.0+ and Moodle 3.1+.

Saludos. Iñaki.

Re: Login to Moodle using OpenLDAP User

$
0
0

by dawood algharib.  

I have solved the problem through defining the "User attribute" mapped field in LDAP. This should be a mandatory field and not an optional as mentioned in Moodle site in the LDAP Authentication Page, since this field is contribute to the username value used to login to Moodle. 


LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

Re: some issues of CAS authentication

$
0
0

by MrCasa BLR.  

Hello Xing!

Could you share how you solved both issues -

1.  Retrieving email, first name, lastname, userid and such? I also get redirected to a user profile screen after SSO login and they are all black. How do you retrieve the attributes from CAS?

2. How do you login to moodle other than username? Like email / phone?

Also, how do you login as moodle admin?  When I click on moodle login it redirects me to CAS login and how to I make CAS user moodle admin also?


Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Leon Stringer.  

In the Distinguished name field (under Bind settings) you've got CN=Users,.... This needs to be an LDAP user account used for queries, but the name Users suggests it's a group. (I say "needs to be", I think some LDAP servers -- not Active Directory -- will allow anonymous queries).

Is the LDAP server an Active Directory domain controller or some other server (e.g. OpenLDAP)? For AD, User type should be set to MS ActiveDirectory (under User lookup settings).

Re: Directing users to a welcome page instead of home page after email confirmation

$
0
0

by Randy Thornton.  

It's now 2017 and there's still no way to do this.

It's still set in the code in /login/confirm.php to show the Courses button to redirect the user to wwwroot/course/, ignoring the site main navigation setting to use the Dashboard or Frontpage.

Re: Directing users to a welcome page instead of home page after email confirmation

$
0
0

by Randy Thornton.  

Btw, you did not hear this from me, but if you want to hack the core code, you can fix this by changing lines  64 = 100 in /login/confirm.php

where:

echo $OUTPUT->single_button("$CFG->wwwroot/course/", get_string('courses'));

could be set to redirect that button anywhere you wish.

So

echo $OUTPUT->single_button("$CFG->wwwroot/my/", get_string('myhome'));

would do a forced redirect to Dashboard, etc.



Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Touqeer Ahmad.  

Thanks for replying, you are right it is an MS ActiveDirectory and I did changed in User type but the same problem still there.

Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Leon Stringer.  

If it's AD then the value in the Distinguished name field definitely should not be CN=Users..., then as this will be a container, not a user. (For AD this can be in Windows 2000 format, e.g. username@bopsecurity.com).

Also, port 50000 is unusual. Is that definitely correct? Are you connecting from LDAP Explorer etc., on that port? If you remove the port (i.e. Host URL: ldap://192.168.x.x) it will use the default port.


Re: Directing users to a welcome page instead of home page after email confirmation

$
0
0

by Bernard Raja.  

Thanks Randy

above setting working good. 

how to enforce user to set a new password, from New Self-registration link sent to user mail id for validation. 

by default taking to user login page with credentials.



Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Emma Richardson.  

Can you give us some screenshots of your revised settings page please (with any identifying info removed)?

Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Touqeer Ahmad.  

On server side I sync the ADDS (Active Directory Domain Server) with ADLDS (Active Directory Lightweight Directory Services). The ADDS is on port 389 and ADLDS is on 50000. I tested both on LDP.exe (LDAP explorer) both run fine. But on moodle the error is cannot connect to server (as IP and/or port is wrong).

I have also tried port 389 (which doesn't needs to be entered), but still same error

I tried both simple username and username@bopsecurity.com none of them worked

If the entered user name/password doesn't match the server's data it should have shown invalid username/password but instead it show "cannot connect error"

Maybe the firewall or certificates are not allowing it to connect.

Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

Re: LDAP-module cannot connect to any servers: Server: 'ldap://192.168.x.x: 50000', Connection: 'Resource id #14', Bind result: ''?

$
0
0

by Dave Perry.  

Certificates are only an issue if you're using secure LDAP (so ldaps:// in the moodle settings) - and I don't think you are as you've tried port 389 (default insecure LDAP port) and the ldap:// bit of the address we see in the error message.

I'd consider network/firewall at this point yes.

UNLESS you conducted your LDAP Explorer tests from the moodle server?

If you haven't tested connectivity from the moodle server already, try that or telnetting to the ldap ports you've tried with LDAP explorer.

Viewing all 8277 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>