core icon indicating copy to clipboard operation
core copied to clipboard

what are ldap:create-empty-config and ldap:delete-config for?

Open carlaschroder opened this issue 11 years ago • 4 comments

Will someone explain what the occ commands ldap:create-empty-config and ldap:delete-config are for? I need some basic use cases plz. Are these intended as normal LDAP maintenance commands?

ldap:delete-config configID

Where does the configID come from? ldap:show-config?

carlaschroder avatar Apr 30 '15 20:04 carlaschroder

@blizzz can you help with that?

karlitschek avatar Apr 30 '15 20:04 karlitschek

ldap:create-empty-config

let's you create an empty ldap configiuration on command line. You can modifiy it subsequently by using ldap:set-config $configID $key $value. With the combination of the two commands, you can programmatically set up LDAP configurations without manual interaction.

The equivalent in the wizard is the "Add Configuration" button.

ldap:delete-config

Well, this command deletes an LDAP configuration.

The equivalent in the wizard is the "Delete Configuration" button.

Where does the configID come from? ldap:show-config?

Exactly. It is always at the start of the output, second column, here "s03":

+------------------------------+---------------------------------------------+
| Configuration                | s03                                         |
+------------------------------+---------------------------------------------+
| hasMemberOfFilterSupport     | 0                                           |
| hasPagedResultSupport        |                                             |
…

The first one usually is an empty string.

blizzz avatar May 04 '15 11:05 blizzz

thannsk @blizzz

carlaschroder avatar May 04 '15 14:05 carlaschroder

https://github.com/owncloud/documentation/pull/1098

carlaschroder avatar May 04 '15 22:05 carlaschroder