title: Where is the LDAP auth settings stored in the Moodle server?
body: <p>I have recently updated the Moodle LDAP-auth settings under <em>Site Administration</em> > <em>Plugins</em> > <em>Authentication</em> > <strong><em>LDAP Server</em></strong></p>
  
  <p>I have done this to change the LDAP server settings from using our old <strong>EDIR</strong> to our new and preferred <strong>AD</strong>.</p>
  
  <p>Now I can't log-in.</p>
  
  <p>I have gone into the db and updated the settings (reverted back to exactly how it was before the changes) in the config_plugins table (mdl_config_plugins), but the change does not seem to have taken effect.</p>
  
  <p>Still getting the error when I try to log in:</p>
  
  <blockquote>
    <p>LDAP-module cannot connect to any servers: Server: '[new-ad-server].[business-domain].[foo].[bar]:3268', Connection: 'Resource id #17', Bind result: ''</p>
  </blockquote>
  
  <p>Not sure why it's still using the "new-ad-server", when I've updated the settings to be our old (working) ldap server...</p>
  
  <p>Obviously, the settings seem to be stored somewhere in cache, or in-memory somewhere, but I can't seem to find it.</p>
  
  <p><strong>Where are these settings stored in the moodle directory?</strong></p>
  
  <p>Alternatively, how on earth do I fix this issue when I can't log in (using either ldap, or manual login) to update the settings?</p>