Disable a specific ldap configuration

Hi All,

is there a specific occ command to ‘disable’ a specific LDAP config from the command line?
I can only find a delete command.

ok solved the problem myself after some occ digging;

sudo -u www-data php occ ldap:set-config s02 ldapConfigurationActive 0

where s02 is the ldap config ID and 0 = disabled

2 Likes

Thank you for posting this!

Because of this post I was able to get into the NC settings and disable a bad config (admin settings page was throwing an Internal Service Error when LDAP was enabled. Disabling the LDAP plugin removes the config options.) While I had to completely delete the LDAP entry and re-add it, I did not lose any data or settings while doing that!

Thank you :slight_smile:

Awesome bro, you save my life/time :smiley: