diff options
Diffstat (limited to 'src/responder/ssh/sshsrv.c')
-rw-r--r-- | src/responder/ssh/sshsrv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c index 8a66f223..410e631a 100644 --- a/src/responder/ssh/sshsrv.c +++ b/src/responder/ssh/sshsrv.c @@ -118,6 +118,14 @@ int ssh_process_init(TALLOC_CTX *mem_ctx, ssh_ctx->rctx = rctx; ssh_ctx->rctx->pvt_ctx = ssh_ctx; + ret = sss_names_init_from_args(ssh_ctx, + "(?P<name>[^@]+)@?(?P<domain>[^@]*$)", + "%1$s@%2$s", &ssh_ctx->snctx); + if (ret != EOK) { + DEBUG(SSSDBG_FATAL_FAILURE, ("fatal error initializing regex data\n")); + goto fail; + } + /* Enable automatic reconnection to the Data Provider */ ret = confdb_get_int(ssh_ctx->rctx->cdb, CONFDB_SSH_CONF_ENTRY, |