Manage Password and Security Settings<\/a>\u200b\u200b\u200b\u200b\u200b\u200b.<\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\nLDAP API Attributes<\/p>\n\n\n\n
Attributes are available for the JumpCloud V2 API \/ldapservers\/{id}<\/strong> endpoint. The values for each attribute are disable<\/strong> and remove<\/strong>:<\/p>\n\n\n\n\nuserLockoutAction<\/strong> – This attribute controls the action taken when a user is locked out due to repeated failed login attempts. If set to remove<\/strong>, when a lockout occurs, the user is removed from the LDAP server and no longer exists in the LDAP service. If set to disable<\/strong>, when a lockout occurs, they remain in LDAP but can\u2019t authenticate against the LDAP service.<\/li>\n\n\n\nuserPasswordExpirationAction<\/strong> – This attribute controls the action taken when a user\u2019s JumpCloud account password expires. If set to remove<\/strong>, the user is removed from the LDAP server and no longer exists in the LDAP service when their account password expires. If set to disable<\/strong>, they remain in LDAP but can\u2019t authenticate against the LDAP service when their password expires. To see a list of LDAP servers and their settings for the attributes, complete an HTTP GET request. See the Sample Requests below for an example GET call.<\/li>\n<\/ul>\n\n\n\nSample Requests<\/h2>\n\n\n\n The following sample is an example request of an HTTP PATCH call containing the new attributes.<\/p>\n\n\n\n
\n
curl -X PATCH https:\/\/console.jumpcloud.com\/api\/v2\/ldapservers\/{LDAP_ID} \\ -H ‘Accept: application\/json’ \\ -H ‘Content-Type: application\/json’ \\ -H ‘x-api-key: {API_KEY}’ \\ -d ‘{ “userLockoutAction”: “remove”, “userPasswordExpirationAction”: “disable” }’<\/p>\n<\/div><\/div>\n\n\n\n
The following sample is an example request of an HTTP GET call to see a list of LDAP servers.<\/p>\n\n\n\n
\n
curl -X GET https:\/\/console.jumpcloud.com\/api\/v2\/ldapservers\/ \\ -H ‘Accept: application\/json’ \\ -H ‘Content-Type: application\/json’ \\ -H ‘x-api-key: {API_KEY}’ \\<\/p>\n<\/div><\/div>\n\n\n\n
Be sure to replace {API_KEY}<\/strong> and {LDAP_ID}<\/strong> with your own values and remember to remove the brackets { }<\/strong> around the values.<\/p>\n","protected":false},"excerpt":{"rendered":"LDAP API Attributes Attributes are available for the JumpCloud V2 API \/ldapservers\/{id} endpoint. The values for each attribute are disable […]<\/p>\n","protected":false},"author":206,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","inline_featured_image":false,"footnotes":""},"support_category":[2917,2845,2856,2896,3004,2850],"support_tag":[],"coauthors":[2842],"acf":[],"yoast_head":"\n
LDAP API Attributes for User Lockout and Password Expiration - JumpCloud<\/title>\n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n\t \n\t \n\t \n