Saves the LDAP settings specified in the request and starts importing/synchronizing users and groups by LDAP.
Name | Description | Type | Example |
settings
sent in body
|
LDAP settings in the serialized string format | string | some text |
acceptCertificate
sent in body
|
Specifies if a certificate will be accepted (true) or not (false) | Bool value | true |
POST api/2.0/settings/ldap Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "settings": "some text", "acceptCertificate": true }
Operation status
application/json
{ "status": 0, "response": { "Completed": true, "Id": true, "Status": true, "Error": true, "Warning": true, "Percents": true, "CertificateConfirmRequest": { "Approved": true, "Requested": true, "SerialNumber": "SerialNumber", "IssuerName": "IssuerName", "SubjectName": "SubjectName", "ValidFrom": "2019-07-26T00:00:00", "ValidUntil": "2019-07-26T00:00:00", "Hash": "Hash", "CertificateErrors": [ 1 ] }, "Source": "Source", "OperationType": "OperationType" } }
text/xml
<result> <status>0</status> <response> <Completed>True</Completed> <Id>True</Id> <Status>True</Status> <Error>True</Error> <Warning>True</Warning> <Percents>True</Percents> <CertificateConfirmRequest> <Approved>True</Approved> <Requested>True</Requested> <SerialNumber>SerialNumber</SerialNumber> <IssuerName>IssuerName</IssuerName> <SubjectName>SubjectName</SubjectName> <ValidFrom>2019-07-26T00:00:00</ValidFrom> <ValidUntil>2019-07-26T00:00:00</ValidUntil> <Hash>Hash</Hash> <CertificateErrors>1</CertificateErrors> </CertificateConfirmRequest> <Source>Source</Source> <OperationType>OperationType</OperationType> </response> </result>