Disable LDAP authentication using Database or code

Disable LDAP authentication using Database or code

by Harald H -
Number of replies: 3

I tried to activate the ldap authentication, i does not work...

but the big Problem, i'm not able to login to the moodle site. 

i did not deactivate the other authentication methods.

Can anyone tell me how to disable the ldap  authentication in the database or a config file?

Moodle is 3.2

Thanks a lot !!!!!

Harald

Average of ratings: -
In reply to Harald H

Re: Disable LDAP authentication using Database or code

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

You can disable it in the mdl_config table.

However, if you did not disable the manual mode, you should still be able to log in with the admin account.

In reply to Emma Richardson

Re: Disable LDAP authentication using Database or code

by Ken Task -
Picture of Particularly helpful Moodlers

Can also set default authentications via config.php file.

$CFG->auth='manual,email';

No need to edit tables in DB nor restart any services.   Once that line is in place, the next user that hits the site can use only those two.

Suggest after you've been able to login do whatever, commenting that line out by placing // in front.  It's there then for the next 'hickup' (should there be any). smile

'spirit of sharing', Ken

In reply to Ken Task

Re: Disable LDAP authentication using Database or code

by Harald H -

Thanks for answering,

actually, it was not the ldap enrollment that causes the login error.

There was some mobile client that tried continuously to log in to the moodle site. 

After disabling the mobile app everything works fine.

thanks

Harald