| 1 |
.. _dellemc.enterprise_sonic.sonic_ldap_module: |
| 2 |
|
| 3 |
|
| 4 |
*********************************** |
| 5 |
dellemc.enterprise_sonic.sonic_ldap |
| 6 |
*********************************** |
| 7 |
|
| 8 |
**Configure global LDAP server settings on SONiC.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 2.5.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides configuration management of global LDAP server parameters on devices running SONiC. |
| 21 |
- Configure VRF instance before configuring VRF to be used for LDAP server connection. |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
Parameters |
| 27 |
---------- |
| 28 |
|
| 29 |
.. raw:: html |
| 30 |
|
| 31 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 32 |
<tr> |
| 33 |
<th colspan="4">Parameter</th> |
| 34 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 35 |
<th width="100%">Comments</th> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<td colspan="4"> |
| 39 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 40 |
<b>config</b> |
| 41 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 42 |
<div style="font-size: small"> |
| 43 |
<span style="color: purple">list</span> |
| 44 |
/ <span style="color: purple">elements=dictionary</span> |
| 45 |
</div> |
| 46 |
</td> |
| 47 |
<td> |
| 48 |
</td> |
| 49 |
<td> |
| 50 |
<div>Specifies the LDAP server related configuration.</div> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
<tr> |
| 54 |
<td class="elbow-placeholder"></td> |
| 55 |
<td colspan="3"> |
| 56 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 57 |
<b>base</b> |
| 58 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 59 |
<div style="font-size: small"> |
| 60 |
<span style="color: purple">string</span> |
| 61 |
</div> |
| 62 |
</td> |
| 63 |
<td> |
| 64 |
</td> |
| 65 |
<td> |
| 66 |
<div>Configure base distinguished name.</div> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="3"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>bind_timelimit</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">integer</span> |
| 77 |
</div> |
| 78 |
</td> |
| 79 |
<td> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
<div>Configure connect time limit (0 to 65535).</div> |
| 83 |
</td> |
| 84 |
</tr> |
| 85 |
<tr> |
| 86 |
<td class="elbow-placeholder"></td> |
| 87 |
<td colspan="3"> |
| 88 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 89 |
<b>binddn</b> |
| 90 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 91 |
<div style="font-size: small"> |
| 92 |
<span style="color: purple">string</span> |
| 93 |
</div> |
| 94 |
</td> |
| 95 |
<td> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
<div>Configure distinguished name to bind.</div> |
| 99 |
</td> |
| 100 |
</tr> |
| 101 |
<tr> |
| 102 |
<td class="elbow-placeholder"></td> |
| 103 |
<td colspan="3"> |
| 104 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 105 |
<b>bindpw</b> |
| 106 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 107 |
<div style="font-size: small"> |
| 108 |
<span style="color: purple">dictionary</span> |
| 109 |
</div> |
| 110 |
</td> |
| 111 |
<td> |
| 112 |
</td> |
| 113 |
<td> |
| 114 |
<div>Configure credentials to bind</div> |
| 115 |
</td> |
| 116 |
</tr> |
| 117 |
<tr> |
| 118 |
<td class="elbow-placeholder"></td> |
| 119 |
<td class="elbow-placeholder"></td> |
| 120 |
<td colspan="2"> |
| 121 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 122 |
<b>encrypted</b> |
| 123 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 124 |
<div style="font-size: small"> |
| 125 |
<span style="color: purple">boolean</span> |
| 126 |
</div> |
| 127 |
</td> |
| 128 |
<td> |
| 129 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 130 |
<li>no</li> |
| 131 |
<li>yes</li> |
| 132 |
</ul> |
| 133 |
</td> |
| 134 |
<td> |
| 135 |
<div>Indicates whether the password is encrypted text.</div> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
<tr> |
| 139 |
<td class="elbow-placeholder"></td> |
| 140 |
<td class="elbow-placeholder"></td> |
| 141 |
<td colspan="2"> |
| 142 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 143 |
<b>pwd</b> |
| 144 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 145 |
<div style="font-size: small"> |
| 146 |
<span style="color: purple">string</span> |
| 147 |
/ <span style="color: red">required</span> |
| 148 |
</div> |
| 149 |
</td> |
| 150 |
<td> |
| 151 |
</td> |
| 152 |
<td> |
| 153 |
<div>Authentication password for the bind.</div> |
| 154 |
</td> |
| 155 |
</tr> |
| 156 |
|
| 157 |
<tr> |
| 158 |
<td class="elbow-placeholder"></td> |
| 159 |
<td colspan="3"> |
| 160 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 161 |
<b>idle_timelimit</b> |
| 162 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 163 |
<div style="font-size: small"> |
| 164 |
<span style="color: purple">integer</span> |
| 165 |
</div> |
| 166 |
</td> |
| 167 |
<td> |
| 168 |
</td> |
| 169 |
<td> |
| 170 |
<div>Configure NSS idle time limit (0 to 65535).</div> |
| 171 |
<div>Applicable only for global and nss.</div> |
| 172 |
</td> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<td class="elbow-placeholder"></td> |
| 176 |
<td colspan="3"> |
| 177 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 178 |
<b>map</b> |
| 179 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 180 |
<div style="font-size: small"> |
| 181 |
<span style="color: purple">dictionary</span> |
| 182 |
</div> |
| 183 |
</td> |
| 184 |
<td> |
| 185 |
</td> |
| 186 |
<td> |
| 187 |
<div>Configure LDAP server for map.</div> |
| 188 |
<div>Applicable only for global.</div> |
| 189 |
</td> |
| 190 |
</tr> |
| 191 |
<tr> |
| 192 |
<td class="elbow-placeholder"></td> |
| 193 |
<td class="elbow-placeholder"></td> |
| 194 |
<td colspan="2"> |
| 195 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 196 |
<b>attribute</b> |
| 197 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 198 |
<div style="font-size: small"> |
| 199 |
<span style="color: purple">list</span> |
| 200 |
/ <span style="color: purple">elements=dictionary</span> |
| 201 |
</div> |
| 202 |
</td> |
| 203 |
<td> |
| 204 |
</td> |
| 205 |
<td> |
| 206 |
<div>Configure attribute map.</div> |
| 207 |
<div><em>from</em> and <em>to</em> are required together.</div> |
| 208 |
</td> |
| 209 |
</tr> |
| 210 |
<tr> |
| 211 |
<td class="elbow-placeholder"></td> |
| 212 |
<td class="elbow-placeholder"></td> |
| 213 |
<td class="elbow-placeholder"></td> |
| 214 |
<td colspan="1"> |
| 215 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 216 |
<b>from</b> |
| 217 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 218 |
<div style="font-size: small"> |
| 219 |
<span style="color: purple">string</span> |
| 220 |
</div> |
| 221 |
</td> |
| 222 |
<td> |
| 223 |
</td> |
| 224 |
<td> |
| 225 |
<div>Configure attribute map key.</div> |
| 226 |
</td> |
| 227 |
</tr> |
| 228 |
<tr> |
| 229 |
<td class="elbow-placeholder"></td> |
| 230 |
<td class="elbow-placeholder"></td> |
| 231 |
<td class="elbow-placeholder"></td> |
| 232 |
<td colspan="1"> |
| 233 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 234 |
<b>to</b> |
| 235 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 236 |
<div style="font-size: small"> |
| 237 |
<span style="color: purple">string</span> |
| 238 |
</div> |
| 239 |
</td> |
| 240 |
<td> |
| 241 |
</td> |
| 242 |
<td> |
| 243 |
<div>Configure attribute map value.</div> |
| 244 |
</td> |
| 245 |
</tr> |
| 246 |
|
| 247 |
<tr> |
| 248 |
<td class="elbow-placeholder"></td> |
| 249 |
<td class="elbow-placeholder"></td> |
| 250 |
<td colspan="2"> |
| 251 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 252 |
<b>default_attribute</b> |
| 253 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 254 |
<div style="font-size: small"> |
| 255 |
<span style="color: purple">list</span> |
| 256 |
/ <span style="color: purple">elements=dictionary</span> |
| 257 |
</div> |
| 258 |
</td> |
| 259 |
<td> |
| 260 |
</td> |
| 261 |
<td> |
| 262 |
<div>Configure default attribute map.</div> |
| 263 |
<div><em>from</em> and <em>to</em> are required together.</div> |
| 264 |
</td> |
| 265 |
</tr> |
| 266 |
<tr> |
| 267 |
<td class="elbow-placeholder"></td> |
| 268 |
<td class="elbow-placeholder"></td> |
| 269 |
<td class="elbow-placeholder"></td> |
| 270 |
<td colspan="1"> |
| 271 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 272 |
<b>from</b> |
| 273 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 274 |
<div style="font-size: small"> |
| 275 |
<span style="color: purple">string</span> |
| 276 |
</div> |
| 277 |
</td> |
| 278 |
<td> |
| 279 |
</td> |
| 280 |
<td> |
| 281 |
<div>Configure default attribute map key.</div> |
| 282 |
</td> |
| 283 |
</tr> |
| 284 |
<tr> |
| 285 |
<td class="elbow-placeholder"></td> |
| 286 |
<td class="elbow-placeholder"></td> |
| 287 |
<td class="elbow-placeholder"></td> |
| 288 |
<td colspan="1"> |
| 289 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 290 |
<b>to</b> |
| 291 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 292 |
<div style="font-size: small"> |
| 293 |
<span style="color: purple">string</span> |
| 294 |
</div> |
| 295 |
</td> |
| 296 |
<td> |
| 297 |
</td> |
| 298 |
<td> |
| 299 |
<div>Configure default attribute map value.</div> |
| 300 |
</td> |
| 301 |
</tr> |
| 302 |
|
| 303 |
<tr> |
| 304 |
<td class="elbow-placeholder"></td> |
| 305 |
<td class="elbow-placeholder"></td> |
| 306 |
<td colspan="2"> |
| 307 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 308 |
<b>map_remote_groups_to_sonic_roles</b> |
| 309 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 310 |
<div style="font-size: small"> |
| 311 |
<span style="color: purple">list</span> |
| 312 |
/ <span style="color: purple">elements=dictionary</span> |
| 313 |
</div> |
| 314 |
</td> |
| 315 |
<td> |
| 316 |
</td> |
| 317 |
<td> |
| 318 |
<div>Configure mapping for remote groups to sonic roles.</div> |
| 319 |
<div><em>remote_group</em> and <em>sonic_roles</em> are required together.</div> |
| 320 |
</td> |
| 321 |
</tr> |
| 322 |
<tr> |
| 323 |
<td class="elbow-placeholder"></td> |
| 324 |
<td class="elbow-placeholder"></td> |
| 325 |
<td class="elbow-placeholder"></td> |
| 326 |
<td colspan="1"> |
| 327 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 328 |
<b>remote_group</b> |
| 329 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 330 |
<div style="font-size: small"> |
| 331 |
<span style="color: purple">string</span> |
| 332 |
</div> |
| 333 |
</td> |
| 334 |
<td> |
| 335 |
</td> |
| 336 |
<td> |
| 337 |
<div>Map remote groups to SONiC roles.</div> |
| 338 |
</td> |
| 339 |
</tr> |
| 340 |
<tr> |
| 341 |
<td class="elbow-placeholder"></td> |
| 342 |
<td class="elbow-placeholder"></td> |
| 343 |
<td class="elbow-placeholder"></td> |
| 344 |
<td colspan="1"> |
| 345 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 346 |
<b>sonic_roles</b> |
| 347 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 348 |
<div style="font-size: small"> |
| 349 |
<span style="color: purple">list</span> |
| 350 |
/ <span style="color: purple">elements=string</span> |
| 351 |
</div> |
| 352 |
</td> |
| 353 |
<td> |
| 354 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 355 |
<li>admin</li> |
| 356 |
<li>operator</li> |
| 357 |
<li>netadmin</li> |
| 358 |
<li>secadmin</li> |
| 359 |
</ul> |
| 360 |
</td> |
| 361 |
<td> |
| 362 |
<div>Configure SONiC roles.</div> |
| 363 |
</td> |
| 364 |
</tr> |
| 365 |
|
| 366 |
<tr> |
| 367 |
<td class="elbow-placeholder"></td> |
| 368 |
<td class="elbow-placeholder"></td> |
| 369 |
<td colspan="2"> |
| 370 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 371 |
<b>objectclass</b> |
| 372 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 373 |
<div style="font-size: small"> |
| 374 |
<span style="color: purple">list</span> |
| 375 |
/ <span style="color: purple">elements=dictionary</span> |
| 376 |
</div> |
| 377 |
</td> |
| 378 |
<td> |
| 379 |
</td> |
| 380 |
<td> |
| 381 |
<div>Configure Objectclass map.</div> |
| 382 |
<div><em>from</em> and <em>to</em> are required together.</div> |
| 383 |
</td> |
| 384 |
</tr> |
| 385 |
<tr> |
| 386 |
<td class="elbow-placeholder"></td> |
| 387 |
<td class="elbow-placeholder"></td> |
| 388 |
<td class="elbow-placeholder"></td> |
| 389 |
<td colspan="1"> |
| 390 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 391 |
<b>from</b> |
| 392 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 393 |
<div style="font-size: small"> |
| 394 |
<span style="color: purple">string</span> |
| 395 |
</div> |
| 396 |
</td> |
| 397 |
<td> |
| 398 |
</td> |
| 399 |
<td> |
| 400 |
<div>Configure Objectclass map key.</div> |
| 401 |
</td> |
| 402 |
</tr> |
| 403 |
<tr> |
| 404 |
<td class="elbow-placeholder"></td> |
| 405 |
<td class="elbow-placeholder"></td> |
| 406 |
<td class="elbow-placeholder"></td> |
| 407 |
<td colspan="1"> |
| 408 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 409 |
<b>to</b> |
| 410 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 411 |
<div style="font-size: small"> |
| 412 |
<span style="color: purple">string</span> |
| 413 |
</div> |
| 414 |
</td> |
| 415 |
<td> |
| 416 |
</td> |
| 417 |
<td> |
| 418 |
<div>Configure Objectclass map value.</div> |
| 419 |
</td> |
| 420 |
</tr> |
| 421 |
|
| 422 |
<tr> |
| 423 |
<td class="elbow-placeholder"></td> |
| 424 |
<td class="elbow-placeholder"></td> |
| 425 |
<td colspan="2"> |
| 426 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 427 |
<b>override_attribute</b> |
| 428 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 429 |
<div style="font-size: small"> |
| 430 |
<span style="color: purple">list</span> |
| 431 |
/ <span style="color: purple">elements=dictionary</span> |
| 432 |
</div> |
| 433 |
</td> |
| 434 |
<td> |
| 435 |
</td> |
| 436 |
<td> |
| 437 |
<div>Configure override attribute map.</div> |
| 438 |
<div><em>from</em> and <em>to</em> are required together.</div> |
| 439 |
</td> |
| 440 |
</tr> |
| 441 |
<tr> |
| 442 |
<td class="elbow-placeholder"></td> |
| 443 |
<td class="elbow-placeholder"></td> |
| 444 |
<td class="elbow-placeholder"></td> |
| 445 |
<td colspan="1"> |
| 446 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 447 |
<b>from</b> |
| 448 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 449 |
<div style="font-size: small"> |
| 450 |
<span style="color: purple">string</span> |
| 451 |
</div> |
| 452 |
</td> |
| 453 |
<td> |
| 454 |
</td> |
| 455 |
<td> |
| 456 |
<div>Configure override attribute map key.</div> |
| 457 |
</td> |
| 458 |
</tr> |
| 459 |
<tr> |
| 460 |
<td class="elbow-placeholder"></td> |
| 461 |
<td class="elbow-placeholder"></td> |
| 462 |
<td class="elbow-placeholder"></td> |
| 463 |
<td colspan="1"> |
| 464 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 465 |
<b>to</b> |
| 466 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 467 |
<div style="font-size: small"> |
| 468 |
<span style="color: purple">string</span> |
| 469 |
</div> |
| 470 |
</td> |
| 471 |
<td> |
| 472 |
</td> |
| 473 |
<td> |
| 474 |
<div>Configure override attribute map value.</div> |
| 475 |
</td> |
| 476 |
</tr> |
| 477 |
|
| 478 |
|
| 479 |
<tr> |
| 480 |
<td class="elbow-placeholder"></td> |
| 481 |
<td colspan="3"> |
| 482 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 483 |
<b>name</b> |
| 484 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 485 |
<div style="font-size: small"> |
| 486 |
<span style="color: purple">string</span> |
| 487 |
/ <span style="color: red">required</span> |
| 488 |
</div> |
| 489 |
</td> |
| 490 |
<td> |
| 491 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 492 |
<li>global</li> |
| 493 |
<li>nss</li> |
| 494 |
<li>pam</li> |
| 495 |
<li>sudo</li> |
| 496 |
</ul> |
| 497 |
</td> |
| 498 |
<td> |
| 499 |
<div>Specifies the LDAP type.</div> |
| 500 |
</td> |
| 501 |
</tr> |
| 502 |
<tr> |
| 503 |
<td class="elbow-placeholder"></td> |
| 504 |
<td colspan="3"> |
| 505 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 506 |
<b>nss_base_group</b> |
| 507 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 508 |
<div style="font-size: small"> |
| 509 |
<span style="color: purple">string</span> |
| 510 |
</div> |
| 511 |
</td> |
| 512 |
<td> |
| 513 |
</td> |
| 514 |
<td> |
| 515 |
<div>Configure NSS search base for group map.</div> |
| 516 |
<div>Applicable only for global and nss.</div> |
| 517 |
</td> |
| 518 |
</tr> |
| 519 |
<tr> |
| 520 |
<td class="elbow-placeholder"></td> |
| 521 |
<td colspan="3"> |
| 522 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 523 |
<b>nss_base_netgroup</b> |
| 524 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 525 |
<div style="font-size: small"> |
| 526 |
<span style="color: purple">string</span> |
| 527 |
</div> |
| 528 |
</td> |
| 529 |
<td> |
| 530 |
</td> |
| 531 |
<td> |
| 532 |
<div>Configure NSS search base for netgroup map.</div> |
| 533 |
<div>Applicable only for global and nss.</div> |
| 534 |
</td> |
| 535 |
</tr> |
| 536 |
<tr> |
| 537 |
<td class="elbow-placeholder"></td> |
| 538 |
<td colspan="3"> |
| 539 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 540 |
<b>nss_base_passwd</b> |
| 541 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 542 |
<div style="font-size: small"> |
| 543 |
<span style="color: purple">string</span> |
| 544 |
</div> |
| 545 |
</td> |
| 546 |
<td> |
| 547 |
</td> |
| 548 |
<td> |
| 549 |
<div>Configure NSS search base for passwd map.</div> |
| 550 |
<div>Applicable only for global, nss and pam.</div> |
| 551 |
</td> |
| 552 |
</tr> |
| 553 |
<tr> |
| 554 |
<td class="elbow-placeholder"></td> |
| 555 |
<td colspan="3"> |
| 556 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 557 |
<b>nss_base_shadow</b> |
| 558 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 559 |
<div style="font-size: small"> |
| 560 |
<span style="color: purple">string</span> |
| 561 |
</div> |
| 562 |
</td> |
| 563 |
<td> |
| 564 |
</td> |
| 565 |
<td> |
| 566 |
<div>Configure NSS search base for shadow map.</div> |
| 567 |
<div>Applicable only for global and nss.</div> |
| 568 |
</td> |
| 569 |
</tr> |
| 570 |
<tr> |
| 571 |
<td class="elbow-placeholder"></td> |
| 572 |
<td colspan="3"> |
| 573 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 574 |
<b>nss_base_sudoers</b> |
| 575 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 576 |
<div style="font-size: small"> |
| 577 |
<span style="color: purple">string</span> |
| 578 |
</div> |
| 579 |
</td> |
| 580 |
<td> |
| 581 |
</td> |
| 582 |
<td> |
| 583 |
<div>Configure NSS search base for sudoers map.</div> |
| 584 |
<div>Applicable only for global and nss.</div> |
| 585 |
</td> |
| 586 |
</tr> |
| 587 |
<tr> |
| 588 |
<td class="elbow-placeholder"></td> |
| 589 |
<td colspan="3"> |
| 590 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 591 |
<b>nss_initgroups_ignoreusers</b> |
| 592 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 593 |
<div style="font-size: small"> |
| 594 |
<span style="color: purple">string</span> |
| 595 |
</div> |
| 596 |
</td> |
| 597 |
<td> |
| 598 |
</td> |
| 599 |
<td> |
| 600 |
<div>Configure NSS init groups ignore users.</div> |
| 601 |
<div>Applicable only for global and nss.</div> |
| 602 |
</td> |
| 603 |
</tr> |
| 604 |
<tr> |
| 605 |
<td class="elbow-placeholder"></td> |
| 606 |
<td colspan="3"> |
| 607 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 608 |
<b>nss_skipmembers</b> |
| 609 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 610 |
<div style="font-size: small"> |
| 611 |
<span style="color: purple">boolean</span> |
| 612 |
</div> |
| 613 |
</td> |
| 614 |
<td> |
| 615 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 616 |
<li>no</li> |
| 617 |
<li>yes</li> |
| 618 |
</ul> |
| 619 |
</td> |
| 620 |
<td> |
| 621 |
<div>Configure NSS skipmembers</div> |
| 622 |
</td> |
| 623 |
</tr> |
| 624 |
<tr> |
| 625 |
<td class="elbow-placeholder"></td> |
| 626 |
<td colspan="3"> |
| 627 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 628 |
<b>pam_filter</b> |
| 629 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 630 |
<div style="font-size: small"> |
| 631 |
<span style="color: purple">string</span> |
| 632 |
</div> |
| 633 |
</td> |
| 634 |
<td> |
| 635 |
</td> |
| 636 |
<td> |
| 637 |
<div>Configure PAM filter.</div> |
| 638 |
<div>Applicable only for global and pam.</div> |
| 639 |
</td> |
| 640 |
</tr> |
| 641 |
<tr> |
| 642 |
<td class="elbow-placeholder"></td> |
| 643 |
<td colspan="3"> |
| 644 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 645 |
<b>pam_group_dn</b> |
| 646 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 647 |
<div style="font-size: small"> |
| 648 |
<span style="color: purple">string</span> |
| 649 |
</div> |
| 650 |
</td> |
| 651 |
<td> |
| 652 |
</td> |
| 653 |
<td> |
| 654 |
<div>Configure PAM Group Distinguished name.</div> |
| 655 |
<div>Applicable only for global and pam.</div> |
| 656 |
</td> |
| 657 |
</tr> |
| 658 |
<tr> |
| 659 |
<td class="elbow-placeholder"></td> |
| 660 |
<td colspan="3"> |
| 661 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 662 |
<b>pam_login_attribute</b> |
| 663 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 664 |
<div style="font-size: small"> |
| 665 |
<span style="color: purple">string</span> |
| 666 |
</div> |
| 667 |
</td> |
| 668 |
<td> |
| 669 |
</td> |
| 670 |
<td> |
| 671 |
<div>Configure PAM Login attribute.</div> |
| 672 |
<div>Applicable only for global and pam.</div> |
| 673 |
</td> |
| 674 |
</tr> |
| 675 |
<tr> |
| 676 |
<td class="elbow-placeholder"></td> |
| 677 |
<td colspan="3"> |
| 678 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 679 |
<b>pam_member_attribute</b> |
| 680 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 681 |
<div style="font-size: small"> |
| 682 |
<span style="color: purple">string</span> |
| 683 |
</div> |
| 684 |
</td> |
| 685 |
<td> |
| 686 |
</td> |
| 687 |
<td> |
| 688 |
<div>Configure PAM Member attribute.</div> |
| 689 |
<div>Applicable only for global and pam.</div> |
| 690 |
</td> |
| 691 |
</tr> |
| 692 |
<tr> |
| 693 |
<td class="elbow-placeholder"></td> |
| 694 |
<td colspan="3"> |
| 695 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 696 |
<b>port</b> |
| 697 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 698 |
<div style="font-size: small"> |
| 699 |
<span style="color: purple">integer</span> |
| 700 |
</div> |
| 701 |
</td> |
| 702 |
<td> |
| 703 |
</td> |
| 704 |
<td> |
| 705 |
<div>Configure server port (1 to 65535).</div> |
| 706 |
</td> |
| 707 |
</tr> |
| 708 |
<tr> |
| 709 |
<td class="elbow-placeholder"></td> |
| 710 |
<td colspan="3"> |
| 711 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 712 |
<b>retry</b> |
| 713 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 714 |
<div style="font-size: small"> |
| 715 |
<span style="color: purple">integer</span> |
| 716 |
</div> |
| 717 |
</td> |
| 718 |
<td> |
| 719 |
</td> |
| 720 |
<td> |
| 721 |
<div>Configure retransmit attempt (0 to 10).</div> |
| 722 |
</td> |
| 723 |
</tr> |
| 724 |
<tr> |
| 725 |
<td class="elbow-placeholder"></td> |
| 726 |
<td colspan="3"> |
| 727 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 728 |
<b>scope</b> |
| 729 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 730 |
<div style="font-size: small"> |
| 731 |
<span style="color: purple">string</span> |
| 732 |
</div> |
| 733 |
</td> |
| 734 |
<td> |
| 735 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 736 |
<li>sub</li> |
| 737 |
<li>one</li> |
| 738 |
<li>base</li> |
| 739 |
</ul> |
| 740 |
</td> |
| 741 |
<td> |
| 742 |
<div>Configure the search scope.</div> |
| 743 |
<div>Applicable only for global, nss and pam.</div> |
| 744 |
</td> |
| 745 |
</tr> |
| 746 |
<tr> |
| 747 |
<td class="elbow-placeholder"></td> |
| 748 |
<td colspan="3"> |
| 749 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 750 |
<b>security_profile</b> |
| 751 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 752 |
<div style="font-size: small"> |
| 753 |
<span style="color: purple">string</span> |
| 754 |
</div> |
| 755 |
</td> |
| 756 |
<td> |
| 757 |
</td> |
| 758 |
<td> |
| 759 |
<div>Configure security profile for LDAP.</div> |
| 760 |
<div>Applicable only for global.</div> |
| 761 |
</td> |
| 762 |
</tr> |
| 763 |
<tr> |
| 764 |
<td class="elbow-placeholder"></td> |
| 765 |
<td colspan="3"> |
| 766 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 767 |
<b>servers</b> |
| 768 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 769 |
<div style="font-size: small"> |
| 770 |
<span style="color: purple">list</span> |
| 771 |
/ <span style="color: purple">elements=dictionary</span> |
| 772 |
</div> |
| 773 |
</td> |
| 774 |
<td> |
| 775 |
</td> |
| 776 |
<td> |
| 777 |
<div>Configure host name or IP address for a LDAP server.</div> |
| 778 |
<div>Applicable only for global.</div> |
| 779 |
</td> |
| 780 |
</tr> |
| 781 |
<tr> |
| 782 |
<td class="elbow-placeholder"></td> |
| 783 |
<td class="elbow-placeholder"></td> |
| 784 |
<td colspan="2"> |
| 785 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 786 |
<b>address</b> |
| 787 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 788 |
<div style="font-size: small"> |
| 789 |
<span style="color: purple">string</span> |
| 790 |
/ <span style="color: red">required</span> |
| 791 |
</div> |
| 792 |
</td> |
| 793 |
<td> |
| 794 |
</td> |
| 795 |
<td> |
| 796 |
<div>Hostname or IP address of LDAP server.</div> |
| 797 |
</td> |
| 798 |
</tr> |
| 799 |
<tr> |
| 800 |
<td class="elbow-placeholder"></td> |
| 801 |
<td class="elbow-placeholder"></td> |
| 802 |
<td colspan="2"> |
| 803 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 804 |
<b>port</b> |
| 805 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 806 |
<div style="font-size: small"> |
| 807 |
<span style="color: purple">integer</span> |
| 808 |
</div> |
| 809 |
</td> |
| 810 |
<td> |
| 811 |
</td> |
| 812 |
<td> |
| 813 |
<div>Configure server port number (1 to 65535).</div> |
| 814 |
</td> |
| 815 |
</tr> |
| 816 |
<tr> |
| 817 |
<td class="elbow-placeholder"></td> |
| 818 |
<td class="elbow-placeholder"></td> |
| 819 |
<td colspan="2"> |
| 820 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 821 |
<b>priority</b> |
| 822 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 823 |
<div style="font-size: small"> |
| 824 |
<span style="color: purple">integer</span> |
| 825 |
</div> |
| 826 |
</td> |
| 827 |
<td> |
| 828 |
</td> |
| 829 |
<td> |
| 830 |
<div>Configure priority (1 to 99).</div> |
| 831 |
</td> |
| 832 |
</tr> |
| 833 |
<tr> |
| 834 |
<td class="elbow-placeholder"></td> |
| 835 |
<td class="elbow-placeholder"></td> |
| 836 |
<td colspan="2"> |
| 837 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 838 |
<b>retry</b> |
| 839 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 840 |
<div style="font-size: small"> |
| 841 |
<span style="color: purple">integer</span> |
| 842 |
</div> |
| 843 |
</td> |
| 844 |
<td> |
| 845 |
</td> |
| 846 |
<td> |
| 847 |
<div>Configure retransmit attempt (0 to 10).</div> |
| 848 |
</td> |
| 849 |
</tr> |
| 850 |
<tr> |
| 851 |
<td class="elbow-placeholder"></td> |
| 852 |
<td class="elbow-placeholder"></td> |
| 853 |
<td colspan="2"> |
| 854 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 855 |
<b>server_type</b> |
| 856 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 857 |
<div style="font-size: small"> |
| 858 |
<span style="color: purple">string</span> |
| 859 |
</div> |
| 860 |
</td> |
| 861 |
<td> |
| 862 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 863 |
<li>all</li> |
| 864 |
<li>nss</li> |
| 865 |
<li>sudo</li> |
| 866 |
<li>pam</li> |
| 867 |
<li>nss_sudo</li> |
| 868 |
<li>nss_pam</li> |
| 869 |
<li>sudo_pam</li> |
| 870 |
</ul> |
| 871 |
</td> |
| 872 |
<td> |
| 873 |
<div>Configure server type.</div> |
| 874 |
</td> |
| 875 |
</tr> |
| 876 |
<tr> |
| 877 |
<td class="elbow-placeholder"></td> |
| 878 |
<td class="elbow-placeholder"></td> |
| 879 |
<td colspan="2"> |
| 880 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 881 |
<b>ssl</b> |
| 882 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 883 |
<div style="font-size: small"> |
| 884 |
<span style="color: purple">string</span> |
| 885 |
</div> |
| 886 |
</td> |
| 887 |
<td> |
| 888 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 889 |
<li>on</li> |
| 890 |
<li>off</li> |
| 891 |
<li>start_tls</li> |
| 892 |
</ul> |
| 893 |
</td> |
| 894 |
<td> |
| 895 |
<div>Configure TLS configuration.</div> |
| 896 |
</td> |
| 897 |
</tr> |
| 898 |
|
| 899 |
<tr> |
| 900 |
<td class="elbow-placeholder"></td> |
| 901 |
<td colspan="3"> |
| 902 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 903 |
<b>source_interface</b> |
| 904 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 905 |
<div style="font-size: small"> |
| 906 |
<span style="color: purple">string</span> |
| 907 |
</div> |
| 908 |
</td> |
| 909 |
<td> |
| 910 |
</td> |
| 911 |
<td> |
| 912 |
<div>Configure source interface to be used as source IP for the LDAP packets.</div> |
| 913 |
<div>Applicable only for global.</div> |
| 914 |
<div>Full name of the Layer 3 interface, i.e. Eth1/1.</div> |
| 915 |
</td> |
| 916 |
</tr> |
| 917 |
<tr> |
| 918 |
<td class="elbow-placeholder"></td> |
| 919 |
<td colspan="3"> |
| 920 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 921 |
<b>ssl</b> |
| 922 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 923 |
<div style="font-size: small"> |
| 924 |
<span style="color: purple">string</span> |
| 925 |
</div> |
| 926 |
</td> |
| 927 |
<td> |
| 928 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 929 |
<li>on</li> |
| 930 |
<li>off</li> |
| 931 |
<li>start_tls</li> |
| 932 |
</ul> |
| 933 |
</td> |
| 934 |
<td> |
| 935 |
<div>Configure TLS configuration.</div> |
| 936 |
</td> |
| 937 |
</tr> |
| 938 |
<tr> |
| 939 |
<td class="elbow-placeholder"></td> |
| 940 |
<td colspan="3"> |
| 941 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 942 |
<b>sudoers_base</b> |
| 943 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 944 |
<div style="font-size: small"> |
| 945 |
<span style="color: purple">string</span> |
| 946 |
</div> |
| 947 |
</td> |
| 948 |
<td> |
| 949 |
</td> |
| 950 |
<td> |
| 951 |
<div>Configure sudo base distinguished name for queries.</div> |
| 952 |
<div>Applicable only for global and sudo.</div> |
| 953 |
</td> |
| 954 |
</tr> |
| 955 |
<tr> |
| 956 |
<td class="elbow-placeholder"></td> |
| 957 |
<td colspan="3"> |
| 958 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 959 |
<b>sudoers_search_filter</b> |
| 960 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 961 |
<div style="font-size: small"> |
| 962 |
<span style="color: purple">string</span> |
| 963 |
</div> |
| 964 |
</td> |
| 965 |
<td> |
| 966 |
</td> |
| 967 |
<td> |
| 968 |
<div>Configure sudo search filter for queries.</div> |
| 969 |
<div>Applicable only for global and sudo.</div> |
| 970 |
</td> |
| 971 |
</tr> |
| 972 |
<tr> |
| 973 |
<td class="elbow-placeholder"></td> |
| 974 |
<td colspan="3"> |
| 975 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 976 |
<b>timelimit</b> |
| 977 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 978 |
<div style="font-size: small"> |
| 979 |
<span style="color: purple">integer</span> |
| 980 |
</div> |
| 981 |
</td> |
| 982 |
<td> |
| 983 |
</td> |
| 984 |
<td> |
| 985 |
<div>Configure search time limit (1 to 65535).</div> |
| 986 |
</td> |
| 987 |
</tr> |
| 988 |
<tr> |
| 989 |
<td class="elbow-placeholder"></td> |
| 990 |
<td colspan="3"> |
| 991 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 992 |
<b>version</b> |
| 993 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 994 |
<div style="font-size: small"> |
| 995 |
<span style="color: purple">integer</span> |
| 996 |
</div> |
| 997 |
</td> |
| 998 |
<td> |
| 999 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 1000 |
<li>2</li> |
| 1001 |
<li>3</li> |
| 1002 |
</ul> |
| 1003 |
</td> |
| 1004 |
<td> |
| 1005 |
<div>Configure LDAP version 2 or 3.</div> |
| 1006 |
</td> |
| 1007 |
</tr> |
| 1008 |
<tr> |
| 1009 |
<td class="elbow-placeholder"></td> |
| 1010 |
<td colspan="3"> |
| 1011 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 1012 |
<b>vrf</b> |
| 1013 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 1014 |
<div style="font-size: small"> |
| 1015 |
<span style="color: purple">string</span> |
| 1016 |
</div> |
| 1017 |
</td> |
| 1018 |
<td> |
| 1019 |
</td> |
| 1020 |
<td> |
| 1021 |
<div>Configure VRF to be used for LDAP server connection.</div> |
| 1022 |
<div>Applicable only for global.</div> |
| 1023 |
</td> |
| 1024 |
</tr> |
| 1025 |
|
| 1026 |
<tr> |
| 1027 |
<td colspan="4"> |
| 1028 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 1029 |
<b>state</b> |
| 1030 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 1031 |
<div style="font-size: small"> |
| 1032 |
<span style="color: purple">string</span> |
| 1033 |
</div> |
| 1034 |
</td> |
| 1035 |
<td> |
| 1036 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 1037 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 1038 |
<li>deleted</li> |
| 1039 |
<li>replaced</li> |
| 1040 |
<li>overridden</li> |
| 1041 |
</ul> |
| 1042 |
</td> |
| 1043 |
<td> |
| 1044 |
<div>Specifies the operation to be performed on the LDAP server configured on the device.</div> |
| 1045 |
<div>In case of merged, the input configuration will be merged with the existing LDAP server configuration on the device.</div> |
| 1046 |
<div>In case of deleted, the existing LDAP server configuration will be removed from the device.</div> |
| 1047 |
<div>In case of overridden, all the existing LDAP server configuration will be deleted and the specified input configuration will be installed.</div> |
| 1048 |
<div>In case of replaced, the existing LDAP server configuration on the device will be replaced by the configuration in the playbook for each LDAP server group configured by the playbook.</div> |
| 1049 |
</td> |
| 1050 |
</tr> |
| 1051 |
</table> |
| 1052 |
<br/> |
| 1053 |
|
| 1054 |
|
| 1055 |
Notes |
| 1056 |
----- |
| 1057 |
|
| 1058 |
.. note:: |
| 1059 |
- Supports ``check_mode``. |
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
Examples |
| 1064 |
-------- |
| 1065 |
|
| 1066 |
.. code-block:: yaml |
| 1067 |
|
| 1068 |
# Using "deleted" state |
| 1069 |
# |
| 1070 |
# Before state: |
| 1071 |
# ------------- |
| 1072 |
# |
| 1073 |
# sonic# show running-configuration vrf Vrf_1 |
| 1074 |
# ! |
| 1075 |
# ip vrf Vrf_1 |
| 1076 |
# sonic# show running-configuration | grep ldap |
| 1077 |
# ldap-server port 389 |
| 1078 |
# ldap-server version 2 |
| 1079 |
# ldap-server nss-base-passwd password |
| 1080 |
# ldap-server nss-initgroups-ignoreusers username1 |
| 1081 |
# ldap-server nss scope sub |
| 1082 |
# ldap-server nss timelimit 15 |
| 1083 |
# ldap-server nss idle-timelimit 25 |
| 1084 |
# ldap-server nss nss-base-group group1 |
| 1085 |
# ldap-server nss nss-base-sudoers sudo1 |
| 1086 |
# ldap-server pam base admin |
| 1087 |
# ldap-server pam binddn CN=example.com |
| 1088 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1089 |
# ldap-server sudo retry 10 |
| 1090 |
# ldap-server sudo ssl start_tls |
| 1091 |
# ldap-server sudo bind-timelimit 15 |
| 1092 |
# ldap-server vrf Vrf_1 |
| 1093 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1094 |
# ldap-server host 20.20.20.10 retry 1 |
| 1095 |
# ldap-server host example.com priority 10 ssl off |
| 1096 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1097 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1098 |
# ldap-server map objectclass attr1 to attr3 |
| 1099 |
# sonic# |
| 1100 |
|
| 1101 |
- name: Delete the LDAP server configurations |
| 1102 |
sonic_ldap: |
| 1103 |
config: |
| 1104 |
- name: "global" |
| 1105 |
servers: |
| 1106 |
- address: "example.com" |
| 1107 |
vrf: "Vrf_1" |
| 1108 |
- name: "nss" |
| 1109 |
idle_timelimit: 25 |
| 1110 |
scope: "sub" |
| 1111 |
- name: "sudo" |
| 1112 |
state: deleted |
| 1113 |
|
| 1114 |
# After state: |
| 1115 |
# ------------ |
| 1116 |
# |
| 1117 |
# sonic# show running-configuration | grep ldap |
| 1118 |
# ldap-server port 389 |
| 1119 |
# ldap-server version 2 |
| 1120 |
# ldap-server nss-base-passwd password |
| 1121 |
# ldap-server nss-initgroups-ignoreusers username1 |
| 1122 |
# ldap-server nss timelimit 15 |
| 1123 |
# ldap-server nss nss-base-group group1 |
| 1124 |
# ldap-server nss nss-base-sudoers sudo1 |
| 1125 |
# ldap-server pam base admin |
| 1126 |
# ldap-server pam binddn CN=example.com |
| 1127 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1128 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1129 |
# ldap-server host 20.20.20.10 retry 1 |
| 1130 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1131 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1132 |
# ldap-server map objectclass attr1 to attr3 |
| 1133 |
# sonic# |
| 1134 |
|
| 1135 |
|
| 1136 |
# Using "merged" state |
| 1137 |
# |
| 1138 |
# Before state: |
| 1139 |
# ------------- |
| 1140 |
# |
| 1141 |
# sonic# show running-configuration vrf Vrf_1 |
| 1142 |
# ! |
| 1143 |
# ip vrf Vrf_1 |
| 1144 |
# ! |
| 1145 |
# sonic# show running-configuration | grep ldap |
| 1146 |
# sonic# |
| 1147 |
|
| 1148 |
- name: Add the LDAP server configurations |
| 1149 |
sonic_ldap: |
| 1150 |
config: |
| 1151 |
- name: "global" |
| 1152 |
servers: |
| 1153 |
- address: "example.com" |
| 1154 |
priority: 10 |
| 1155 |
ssl: "on" |
| 1156 |
- address: "10.10.10.1" |
| 1157 |
priority: 5 |
| 1158 |
port: 1550 |
| 1159 |
port: 389 |
| 1160 |
version: 2 |
| 1161 |
nss_base_passwd: password |
| 1162 |
- name: "pam" |
| 1163 |
base: "admin" |
| 1164 |
binddn: "CN=example.com" |
| 1165 |
pam_login_attribute: "loginattrstring" |
| 1166 |
- name: "sudo" |
| 1167 |
bind_timelimit: 20 |
| 1168 |
retry: 10 |
| 1169 |
state: merged |
| 1170 |
|
| 1171 |
# After state: |
| 1172 |
# ------------ |
| 1173 |
# |
| 1174 |
# sonic# show running-configuration | grep ldap |
| 1175 |
# ldap-server port 389 |
| 1176 |
# ldap-server version 2 |
| 1177 |
# ldap-server nss-base-passwd password |
| 1178 |
# ldap-server pam base admin |
| 1179 |
# ldap-server pam binddn CN=example.com |
| 1180 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1181 |
# ldap-server sudo retry 10 |
| 1182 |
# ldap-server sudo bind-timelimit 20 |
| 1183 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1184 |
# ldap-server host example.com priority 10 ssl on |
| 1185 |
# sonic# |
| 1186 |
|
| 1187 |
|
| 1188 |
# Using "merged" state |
| 1189 |
# |
| 1190 |
# Before state: |
| 1191 |
# ------------- |
| 1192 |
# |
| 1193 |
# sonic# show running-configuration vrf Vrf_1 |
| 1194 |
# ! |
| 1195 |
# ip vrf Vrf_1 |
| 1196 |
# ! |
| 1197 |
# sonic# show running-configuration | grep ldap |
| 1198 |
# ldap-server port 389 |
| 1199 |
# ldap-server version 2 |
| 1200 |
# ldap-server nss-base-passwd password |
| 1201 |
# ldap-server pam base admin |
| 1202 |
# ldap-server pam binddn CN=example.com |
| 1203 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1204 |
# ldap-server sudo retry 10 |
| 1205 |
# ldap-server sudo bind-timelimit 20 |
| 1206 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1207 |
# ldap-server host example.com priority 10 ssl on |
| 1208 |
# sonic# |
| 1209 |
|
| 1210 |
- name: Add the LDAP server configurations |
| 1211 |
sonic_ldap: |
| 1212 |
config: |
| 1213 |
- name: "global" |
| 1214 |
servers: |
| 1215 |
- address: "example.com" |
| 1216 |
ssl: "off" |
| 1217 |
- address: "20.20.20.10" |
| 1218 |
retry: 1 |
| 1219 |
nss_base_passwd: password |
| 1220 |
pam_login_attribute: "globallogin" |
| 1221 |
nss_initgroups_ignoreusers: "username1" |
| 1222 |
vrf: "Vrf_1" |
| 1223 |
map: |
| 1224 |
default_attribute: |
| 1225 |
- from: "attr1" |
| 1226 |
to: "attr2" |
| 1227 |
- from: "attr3" |
| 1228 |
to: "attr4" |
| 1229 |
objectclass: |
| 1230 |
- from: "attr1" |
| 1231 |
to: "attr3" |
| 1232 |
map_remote_groups_to_sonic_roles: |
| 1233 |
- remote_group: "group1" |
| 1234 |
sonic_roles: |
| 1235 |
- admin |
| 1236 |
- operator |
| 1237 |
- name: "nss" |
| 1238 |
nss_base_netgroup: "group1" |
| 1239 |
idle_timelimit: 25 |
| 1240 |
timelimit: 15 |
| 1241 |
scope: "sub" |
| 1242 |
nss_base_sudoers: "sudo1" |
| 1243 |
- name: "sudo" |
| 1244 |
bind_timelimit: 15 |
| 1245 |
ssl: "start_tls" |
| 1246 |
state: merged |
| 1247 |
|
| 1248 |
# After state: |
| 1249 |
# ------------ |
| 1250 |
# |
| 1251 |
# sonic# show running-configuration | grep ldap |
| 1252 |
# ldap-server port 389 |
| 1253 |
# ldap-server version 2 |
| 1254 |
# ldap-server nss-base-passwd password |
| 1255 |
# ldap-server pam-login-attribute globallogin |
| 1256 |
# ldap-server nss-initgroups-ignoreusers username1 |
| 1257 |
# ldap-server nss scope sub |
| 1258 |
# ldap-server nss timelimit 15 |
| 1259 |
# ldap-server nss idle-timelimit 25 |
| 1260 |
# ldap-server nss nss-base-group group1 |
| 1261 |
# ldap-server nss nss-base-sudoers sudo1 |
| 1262 |
# ldap-server pam base admin |
| 1263 |
# ldap-server pam binddn CN=example.com |
| 1264 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1265 |
# ldap-server sudo retry 10 |
| 1266 |
# ldap-server sudo ssl start_tls |
| 1267 |
# ldap-server sudo bind-timelimit 15 |
| 1268 |
# ldap-server vrf Vrf_1 |
| 1269 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1270 |
# ldap-server host 20.20.20.10 retry 1 |
| 1271 |
# ldap-server host example.com priority 10 ssl off |
| 1272 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1273 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1274 |
# ldap-server map objectclass attr1 to attr3 |
| 1275 |
# ldap-server map remote-groups-override-to-sonic-roles group1 to admin,operator |
| 1276 |
# sonic# |
| 1277 |
|
| 1278 |
|
| 1279 |
# Using "replaced" state |
| 1280 |
# |
| 1281 |
# Before state: |
| 1282 |
# ------------- |
| 1283 |
# |
| 1284 |
# sonic# show running-configuration vrf Vrf_1 |
| 1285 |
# ! |
| 1286 |
# ip vrf Vrf_1 |
| 1287 |
# sonic# show running-configuration | grep ldap |
| 1288 |
# ldap-server port 389 |
| 1289 |
# ldap-server version 2 |
| 1290 |
# ldap-server nss-base-passwd password |
| 1291 |
# ldap-server nss-initgroups-ignoreusers username1 |
| 1292 |
# ldap-server nss idle-timelimit 25 |
| 1293 |
# ldap-server nss nss-base-group group1 |
| 1294 |
# ldap-server nss nss-base-sudoers sudo1 |
| 1295 |
# ldap-server pam base admin |
| 1296 |
# ldap-server pam binddn CN=example.com |
| 1297 |
# ldap-server pam pam-login-attribute loginattrstring |
| 1298 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1299 |
# ldap-server host 20.20.20.10 retry 1 |
| 1300 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1301 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1302 |
# ldap-server map objectclass attr1 to attr3 |
| 1303 |
# sonic# |
| 1304 |
|
| 1305 |
- name: Replace the LDAP server configurations |
| 1306 |
sonic_ldap: |
| 1307 |
config: |
| 1308 |
- name: "nss" |
| 1309 |
scope: "one" |
| 1310 |
bindpw: |
| 1311 |
pwd: "password" |
| 1312 |
- name: "pam" |
| 1313 |
version: 3 |
| 1314 |
port: 2000 |
| 1315 |
timelimit: 20 |
| 1316 |
pam_group_dn: "DNAME" |
| 1317 |
- name: "sudo" |
| 1318 |
sudoers_search_filter: "filter1" |
| 1319 |
base: "base_name" |
| 1320 |
version: 3 |
| 1321 |
state: replaced |
| 1322 |
|
| 1323 |
# After state: |
| 1324 |
# ------------ |
| 1325 |
# |
| 1326 |
# sonic# show running-configuration | grep ldap |
| 1327 |
# ldap-server port 389 |
| 1328 |
# ldap-server version 2 |
| 1329 |
# ldap-server nss scope one |
| 1330 |
# ldap-server nss bindpw U2FsdGVkX1+t8PR9IIi+qjZpYoNwjmd78D1WDBdkLxs= encrypted |
| 1331 |
# ldap-server pam version 3 |
| 1332 |
# ldap-server pam port 2000 |
| 1333 |
# ldap-server pam timelimit 20 |
| 1334 |
# ldap-server pam pam-group-dn DNAME |
| 1335 |
# ldap-server sudo version 3 |
| 1336 |
# ldap-server sudo base base_name |
| 1337 |
# ldap-server sudo sudoers-search-filter filter1 |
| 1338 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1339 |
# ldap-server host 20.20.20.10 retry 1 |
| 1340 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1341 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1342 |
# ldap-server map objectclass attr1 to attr3 |
| 1343 |
# sonic# |
| 1344 |
|
| 1345 |
|
| 1346 |
# Using "overridden" state |
| 1347 |
# |
| 1348 |
# Before state: |
| 1349 |
# ------------- |
| 1350 |
# |
| 1351 |
# sonic# show running-configuration vrf Vrf_1 |
| 1352 |
# ! |
| 1353 |
# ip vrf Vrf_1 |
| 1354 |
# sonic# show running-configuration | grep ldap |
| 1355 |
# ldap-server port 389 |
| 1356 |
# ldap-server version 2 |
| 1357 |
# ldap-server nss scope one |
| 1358 |
# ldap-server nss bindpw U2FsdGVkX1+t8PR9IIi+qjZpYoNwjmd78D1WDBdkLxs= encrypted |
| 1359 |
# ldap-server pam version 3 |
| 1360 |
# ldap-server pam port 2000 |
| 1361 |
# ldap-server pam timelimit 20 |
| 1362 |
# ldap-server pam pam-group-dn DNAME |
| 1363 |
# ldap-server sudo version 3 |
| 1364 |
# ldap-server sudo base base_name |
| 1365 |
# ldap-server sudo sudoers-search-filter filter1 |
| 1366 |
# ldap-server host 10.10.10.1 port 1550 priority 5 |
| 1367 |
# ldap-server host 20.20.20.10 retry 1 |
| 1368 |
# ldap-server map default-attribute-value attr1 to attr2 |
| 1369 |
# ldap-server map default-attribute-value attr3 to attr4 |
| 1370 |
# ldap-server map objectclass attr1 to attr3 |
| 1371 |
# sonic# |
| 1372 |
|
| 1373 |
- name: Override the LDAP server configurations |
| 1374 |
sonic_ldap: |
| 1375 |
config: |
| 1376 |
- name: "global" |
| 1377 |
source_interface: "Eth1/1" |
| 1378 |
security_profile: "default" |
| 1379 |
vrf: "Vrf_1" |
| 1380 |
servers: |
| 1381 |
- address: "client.com" |
| 1382 |
- address: "host.com" |
| 1383 |
server_type: "sudo_pam" |
| 1384 |
map: |
| 1385 |
override_attribute: |
| 1386 |
- from: "attr1" |
| 1387 |
to: "attr2" |
| 1388 |
map_remote_groups_to_sonic_roles: |
| 1389 |
- remote_group: "group1" |
| 1390 |
sonic_roles: |
| 1391 |
- admin |
| 1392 |
- operator |
| 1393 |
idle_timelimit: 20 |
| 1394 |
- name: "pam" |
| 1395 |
ssl: "off" |
| 1396 |
scope: "base" |
| 1397 |
state: overridden |
| 1398 |
|
| 1399 |
# After state: |
| 1400 |
# ------------ |
| 1401 |
# |
| 1402 |
# sonic# show running-configuration | grep ldap |
| 1403 |
# ldap-server idle-timelimit 20 |
| 1404 |
# ldap-server pam ssl off |
| 1405 |
# ldap-server pam scope base |
| 1406 |
# ldap-server source-interface Eth1/1 |
| 1407 |
# ldap-server security-profile default |
| 1408 |
# ldap-server vrf Vrf_1 |
| 1409 |
# ldap-server host client.com |
| 1410 |
# ldap-server host host.com use-type sudo_pam |
| 1411 |
# ldap-server map override-attribute-value attr1 to attr2 |
| 1412 |
# ldap-server map remote-groups-override-to-sonic-roles group1 to admin,operator |
| 1413 |
# sonic# |
| 1414 |
|
| 1415 |
|
| 1416 |
|
| 1417 |
Return Values |
| 1418 |
------------- |
| 1419 |
Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module: |
| 1420 |
|
| 1421 |
.. raw:: html |
| 1422 |
|
| 1423 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 1424 |
<tr> |
| 1425 |
<th colspan="1">Key</th> |
| 1426 |
<th>Returned</th> |
| 1427 |
<th width="100%">Description</th> |
| 1428 |
</tr> |
| 1429 |
<tr> |
| 1430 |
<td colspan="1"> |
| 1431 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1432 |
<b>after</b> |
| 1433 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1434 |
<div style="font-size: small"> |
| 1435 |
<span style="color: purple">list</span> |
| 1436 |
</div> |
| 1437 |
</td> |
| 1438 |
<td>when changed</td> |
| 1439 |
<td> |
| 1440 |
<div>The resulting configuration module invocation.</div> |
| 1441 |
<br/> |
| 1442 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1443 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1444 |
as the parameters above.</div> |
| 1445 |
</td> |
| 1446 |
</tr> |
| 1447 |
<tr> |
| 1448 |
<td colspan="1"> |
| 1449 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1450 |
<b>after_generated</b> |
| 1451 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1452 |
<div style="font-size: small"> |
| 1453 |
<span style="color: purple">list</span> |
| 1454 |
</div> |
| 1455 |
</td> |
| 1456 |
<td>when <code>check_mode</code></td> |
| 1457 |
<td> |
| 1458 |
<div>The generated configuration module invocation.</div> |
| 1459 |
<br/> |
| 1460 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1461 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1462 |
as the parameters above.</div> |
| 1463 |
</td> |
| 1464 |
</tr> |
| 1465 |
<tr> |
| 1466 |
<td colspan="1"> |
| 1467 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1468 |
<b>before</b> |
| 1469 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1470 |
<div style="font-size: small"> |
| 1471 |
<span style="color: purple">list</span> |
| 1472 |
</div> |
| 1473 |
</td> |
| 1474 |
<td>always</td> |
| 1475 |
<td> |
| 1476 |
<div>The configuration prior to the module invocation.</div> |
| 1477 |
<br/> |
| 1478 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1479 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1480 |
as the parameters above.</div> |
| 1481 |
</td> |
| 1482 |
</tr> |
| 1483 |
<tr> |
| 1484 |
<td colspan="1"> |
| 1485 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1486 |
<b>commands</b> |
| 1487 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1488 |
<div style="font-size: small"> |
| 1489 |
<span style="color: purple">list</span> |
| 1490 |
</div> |
| 1491 |
</td> |
| 1492 |
<td>always</td> |
| 1493 |
<td> |
| 1494 |
<div>The set of commands pushed to the remote device.</div> |
| 1495 |
<br/> |
| 1496 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1497 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['command 1', 'command 2', 'command 3']</div> |
| 1498 |
</td> |
| 1499 |
</tr> |
| 1500 |
</table> |
| 1501 |
<br/><br/> |
| 1502 |
|
| 1503 |
|
| 1504 |
Status |
| 1505 |
------ |
| 1506 |
|
| 1507 |
|
| 1508 |
Authors |
| 1509 |
~~~~~~~ |
| 1510 |
|
| 1511 |
- Santhosh Kumar T(@santhosh-kt) |