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
Copy file name to clipboardExpand all lines: doc/libnetconf.doc
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -304,8 +304,8 @@
304
304
* - ::nc_server_set_capab_withdefaults()
305
305
* - ::nc_server_set_capability()
306
306
* - ::nc_server_endpt_count()
307
-
* - ::nc_server_add_endpt_unix_socket_listen()
308
-
* - ::nc_server_del_endpt_unix_socket()
307
+
* - ::nc_server_set_unix_socket_path()
308
+
* - ::nc_server_get_unix_socket_path()
309
309
*
310
310
* Server Configuration
311
311
* ===
@@ -383,7 +383,7 @@
383
383
* You may create this data yourself or by using ::nc_server_config_add_ssh_hostkey().
384
384
*
385
385
* It is important to decide whether the users that can connect to the SSH server should be obtained from the configuration or from the system.
386
-
* If the YANG feature *local-users-supported* is enabled (the default), then the authorized users are derived from the configuration.
386
+
* If the YANG feature *local-users-supported* is enabled (the default), then the authorized users are derived from the configuration.
387
387
* When a client connects to the server, he must be found in the configuration and he must authenticate to **all** of his configured authentication methods.
388
388
* If the feature is disabled, then the system will be used to try to authenticate the client via one of the three
389
389
* methods - publickey, keyboard-interactive or password (only one of them has to succeed).
@@ -493,6 +493,28 @@
493
493
* - ::nc_server_config_add_tls_ctn()
494
494
* - ::nc_server_config_del_tls_ctn()
495
495
*
496
+
* UNIX Socket
497
+
* ===========
498
+
*
499
+
* A UNIX socket endpoint can be established using one of two mechanisms:
500
+
*
501
+
* 1) **Cleartext Path**: The filesystem path is explicitly stored in the configuration.
502
+
* To use this, pass a valid path string to ::nc_server_config_add_unix_socket().
503
+
*
504
+
* 2) **Hidden Path**: The filesystem path is managed via the API and is not visible
505
+
* in the YANG configuration. To use this, pass NULL as the path argument to
506
+
* ::nc_server_config_add_unix_socket(). The actual runtime path must then be set
507
+
* using ::nc_server_set_unix_socket_path().
508
+
*
509
+
* Security Recommendation
510
+
* -----------------------
511
+
* The **Hidden Path** (Option 2) is strongly recommended.
512
+
*
513
+
* If Cleartext paths are enabled, any user with permission to modify the server
514
+
* configuration can change the UNIX socket path via YANG. This allows them to
515
+
* force the server to create or overwrite arbitrary files on the filesystem
0 commit comments