Step 4: Update the LDAP Gateway

PUT {{apiPath}}/environments/{{envID}}/gateways/{{gatewayID}}

Request Body

{"name"=>"LDAP Gateway1", "description"=>"LDAP gateway", "type"=>"LDAP", "enabled"=>false, "vendor"=>"PingDirectory", "serversHostAndPort"=>["host1:389", "host.domain.com:389", "10.10.10.10:636", "2001:0db8:85a3:0000:0000:8a2e:0370:7334:389"], "bindDN"=>"cn=svc-account", "bindPassword"=>"{{bindPassword}}", "searchBaseDN"=>"o=example", "userCorrelationFilterPattern"=>"(|(uid=$username$)(mail=$username$))", "userTypes"=>[{"id"=>"{{userTypeID}}", "name"=>"typeName", "passwordAuthority"=>"LDAP", "searchBaseDn"=>"dc=example,dc=com", "orderedCorrelationAttributes"=>["externalid", "uid", "username"], "allowPasswordChanges"=>false, "newUserLookup"=>{"ldapFilterPattern"=>"(|(uid=${identifier})(mail=${identifier}))", "population"=>{"id"=>"{{popID}}"}, "attributeMappings"=>[{"name"=>"username", "value"=>"${ldapAttributes.uid}"}]}}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring