Skip to content

Commit

Permalink
fix(example): Allow connection with username and password without enc…
Browse files Browse the repository at this point in the history
…ryption
NoelGraf committed Jan 24, 2025
1 parent 10256ed commit a597b34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/access_control/server_access_control.c
Original file line number Diff line number Diff line change
@@ -65,6 +65,8 @@ setCustomAccessControl(UA_ServerConfig *config) {
int main(void) {
UA_Server *server = UA_Server_new();
UA_ServerConfig *config = UA_Server_getConfig(server);
/* Allow clients without encryption support to connect with username and password. Not recommended! */
config->allowNonePolicyPassword = true;
setCustomAccessControl(config);

UA_StatusCode retval = UA_Server_runUntilInterrupt(server);

0 comments on commit a597b34

Please sign in to comment.