You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`uri`|**YES**| LDAP connection URI as expected by OpenLDAP. |
95
-
|`bind_dn`| NO | DN or upn to use for binding. (default: none) |
96
-
|`debug`| NO | Enable debug. `0` = off (default), `1` = on. |
97
-
|`password`| NO | Password to use, only SIMPLE auth is supported at the moment. (default: none) |
98
-
|`timeout`| NO | How long to wait for reply, in seconds. (default:30 seconds) |
99
-
|`max_idle_time`| NO | Disconnect from LDAP server after connection has been idle for this many seconds. (default: never) |
100
-
|`tls`| NO | Use TLS?<br/>`yes`: Require either ldaps or successful start TLS<br/> `try`: Send start TLS if necessary (default)<br/> `no`: Do not send start TLS. |
104
+
#### LDAP Settings
105
+
106
+
| Parameter | Mandatory | Description |
107
+
| --------- | --------- | ----------- |
108
+
|`ldap_uris`|**YES**| LDAP connection URI as expected by OpenLDAP. |
109
+
|`ldap_auth_dn`| NO | DN or upn to use for binding. |
110
+
|`ldap_auth_dn_password`| NO | Password to use, only SIMPLE auth is supported at the moment. |
111
+
|`ldap_timeout`| NO | How long to wait for reply, in seconds. (default:30 seconds) |
112
+
|`ldap_max_idle_time`| NO | Disconnect from LDAP server after connection has been idle for this many seconds. |
113
+
|`ldap_debug_level`| NO | Enable debug. `0` = off, `1` = on. |
114
+
|`ldap_starttls`| NO | Causes starttls on a cleartext ldap channel |
115
+
|`ldap_base`| NO | Basedn for the search |
116
+
|`ldap_scope`| NO | Scope of the search |
117
+
|`ldap_filter`| YES | The ldap filter to use |
118
+
|`dict_map_value`| YES | The value to be returned. |
119
+
|`dict_map_pattern`| NO | The pattern for the attribute. Defaults to the filter name. |
101
120
102
121
#### Examples
103
122
104
123
To map a key to a search:
105
-
106
124
```
107
-
map {
108
-
pattern = priv/test/mail
109
-
filter = (mail=*) # the () is required
110
-
base_dn = ou=container,dc=domain
111
-
username_attribute = uid # default is cn
112
-
value_attribute = mail
125
+
dict_map priv/test/mail {
126
+
ldap_filter = (&(uid=%{user})(mail=*))
127
+
ldap_base = ou=container,dc=domain
128
+
value = %{ldap:mail}
113
129
}
114
130
```
115
131
116
132
To do a more complex search:
117
-
118
133
```
119
-
map {
120
-
pattern = priv/test/mail/$location
121
-
filter = (&(mail=*)(location=%{location}) # the () is required
0 commit comments