Skip to content

Commit 7a9712e

Browse files
committed
doc UPDATE ref UNIX authentication
1 parent 9531207 commit 7a9712e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/server_config.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ int nc_server_config_del_endpt(const char *endpt_name, struct lyd_node **config)
139139
/**
140140
* @brief Creates new YANG data nodes for a UNIX socket endpoint.
141141
*
142+
* To learn how authentication works, look at ::nc_server_config_add_unix_user_mapping().
143+
*
142144
* @param[in] ctx libyang context.
143145
* @param[in] endpt_name Arbitrary identifier of the endpoint.
144146
* If an endpoint with this identifier already exists, its contents might be changed.
@@ -162,11 +164,11 @@ int nc_server_config_add_unix_socket(const struct ly_ctx *ctx, const char *endpt
162164
*
163165
* Specifies who can connect to a UNIX socket endpoint. There are 3 following scenarios:
164166
*
165-
* 1) If no mappings are configured for the client @p system_user, then the client can
167+
* 1) If no mappings are configured for the client @p system_user, then the client can
166168
* only connect if its username matches @p netconf_user.
167169
*
168170
* 2) If a mapping for the client @p system_user is configured, but no @p netconf_user s
169-
* are specified, then the client cannot connect as any username.
171+
* are specified, then the client cannot connect with any username.
170172
*
171173
* 3) If a mapping for the client @p system_user is configured, and at least one @p netconf_user
172174
* is specified, then the client can connect only with one of the specified usernames.

0 commit comments

Comments
 (0)