The YANG module provides a data-model for the LDAP client.
Copyright 2023, 2024 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:ldap-client": {
- "netgate-ldap:client": {
- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
}
}
LDAP client configuration for PAM subsystem.
netgate.ldap.LdapClient to be added to list
object (netgate.ldap.ldapclient.Client) The LDAP client parameters. |
{- "netgate-ldap:client": {
- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
}
LDAP client configuration for PAM subsystem.
netgate.ldap.LdapClient to be added or updated
object (netgate.ldap.LdapClient) LDAP client configuration for PAM subsystem. |
{- "netgate-ldap:ldap-client": {
- "netgate-ldap:client": {
- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:client": {
- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
}
The LDAP client parameters.
netgate.ldap.ldapclient.Client to be added to list
netgate-ldap:bind-password | string Bind password. |
netgate-ldap:bind-dn | string Distinguished name to bind to the server with. |
Array of objects (netgate.ldap.ldapclient.client.Servers) | |
netgate-ldap:group-dn | string Group DN. |
netgate-ldap:scope | string (netgate.ldap.SearchScope) Enum: "sub" "one" "base" |
object (netgate.ldap.ldapclient.client.Attributes) | |
netgate-ldap:transport | string (netgate.ldap.TransportType) Enum: "tcp" "tcp-starttls" "tcp-ssltls" |
netgate-ldap:version | integer <int64> Protocol version to use. |
netgate-ldap:base-dn | string Base DN to bind to. |
netgate-ldap:peer-ca | string Name of the certificate in the certificate store for the CA which issued the server's certificate. |
netgate-ldap:timeout | integer <int64> Timeout for server requests. |
{- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
The LDAP client parameters.
netgate.ldap.ldapclient.Client to be added or updated
object (netgate.ldap.ldapclient.Client) The LDAP client parameters. |
{- "netgate-ldap:client": {
- "netgate-ldap:bind-password": "string",
- "netgate-ldap:bind-dn": "string",
- "netgate-ldap:servers": [
- {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
], - "netgate-ldap:group-dn": "string",
- "netgate-ldap:scope": "sub",
- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}, - "netgate-ldap:transport": "tcp",
- "netgate-ldap:version": 0,
- "netgate-ldap:base-dn": "string",
- "netgate-ldap:peer-ca": "string",
- "netgate-ldap:timeout": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
returns netgate.ldap.ldapclient.client.Attributes
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/attributes" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}
}
creates netgate.ldap.ldapclient.client.Attributes
netgate.ldap.ldapclient.client.Attributes to be added to list
Array of objects (netgate.ldap.ldapclient.client.attributes.Overrides) |
{- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}
creates or updates netgate.ldap.ldapclient.client.Attributes
netgate.ldap.ldapclient.client.Attributes to be added or updated
object (netgate.ldap.ldapclient.client.Attributes) |
{- "netgate-ldap:attributes": {
- "netgate-ldap:overrides": [
- {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
]
}
}
removes netgate.ldap.ldapclient.client.Attributes
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/attributes" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.ldap.ldapclient.client.attributes.Overrides
netgate.ldap.ldapclient.client.attributes.Overrides to be added to list
netgate-ldap:value | string LDAP value to override from server. |
netgate-ldap:attribute | string (netgate.ldap.PasswordAttributeType) Enum: "userPassword" "gidNumber" "gecos" "homeDirectory" "loginShell" "uidNumber" |
{- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
returns netgate.ldap.ldapclient.client.attributes.Overrides
attribute required | string Id of overrides |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/attributes/overrides=%7Battribute%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:overrides": {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
}
creates or updates netgate.ldap.ldapclient.client.attributes.Overrides
attribute required | string Id of overrides |
netgate.ldap.ldapclient.client.attributes.Overrides to be added or updated
object (netgate.ldap.ldapclient.client.attributes.Overrides) |
{- "netgate-ldap:overrides": {
- "netgate-ldap:value": "string",
- "netgate-ldap:attribute": "userPassword"
}
}
removes netgate.ldap.ldapclient.client.attributes.Overrides
attribute required | string Id of overrides |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/attributes/overrides=%7Battribute%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.ldap.ldapclient.client.Servers
netgate.ldap.ldapclient.client.Servers to be added to list
netgate-ldap:name | string Server handle. |
object (netgate.ldap.ServerTuple) |
{- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
returns netgate.ldap.ldapclient.client.Servers
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/servers=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:servers": {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
}
creates or updates netgate.ldap.ldapclient.client.Servers
name required | string Id of servers |
netgate.ldap.ldapclient.client.Servers to be added or updated
object (netgate.ldap.ldapclient.client.Servers) |
{- "netgate-ldap:servers": {
- "netgate-ldap:name": "string",
- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
}
removes netgate.ldap.ldapclient.client.Servers
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/servers=%7Bname%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Server name or address, and port number.
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/servers=%7Bname%7D/server" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
Server name or address, and port number.
name required | string Id of servers |
netgate.ldap.ServerTuple to be added to list
netgate-ldap:host | string |
netgate-ldap:port | integer <int32> |
{- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
Server name or address, and port number.
name required | string Id of servers |
netgate.ldap.ServerTuple to be added or updated
object (netgate.ldap.ServerTuple) |
{- "netgate-ldap:server": {
- "netgate-ldap:host": "string",
- "netgate-ldap:port": 0
}
}
Server name or address, and port number.
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ldap:ldap-client/client/servers=%7Bname%7D/server" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
operates on netgate.ldap.LdapConfigOperation
object (netgate.ldap.ldapconfigoperation.Input) |
{- "input": {
- "netgate-ldap:request": "string",
- "netgate-ldap:param": "string"
}
}
{- "output": {
- "netgate-ldap:stdout": "string"
}
}