Description Usage Arguments Examples
View source: R/ldap_functions.R
This function allows you to verify a username and password on an LDAP server.
1 2 3 4 5 6 7 8 9 | ldap_login(input, output, ui_name, modal = FALSE, ldap.url, ldap.dc,
ldap.filtro = "sAMAccountName", ldap.dominio, ldap.campos,
label.user = "User", label.pass = "Password",
label.button.go = "Login", label.button.cancel = "Cancel",
label.button.modal = "Close", label.title = "Shiny LDAP Login",
show.button.cancel = TRUE, show.button.modal = FALSE,
msg.list = list(empty = "These fields cannot be empty!", time =
"Please! Wait a moment before login again."),
callback.return = function(result) { })
|
input |
Shiny input object passed from the server. |
output |
Shiny output object passed from the server. |
ui_name |
the name of the UI output. That is, put |
modal |
boolean (TRUE / FALSE) indicating the form mode. |
ldap.url |
ldap server url |
ldap.dc |
ldap server DC |
ldap.filtro |
'sAMAccountName', # for AD LDAP Server |
ldap.dominio |
ldap server domain |
ldap.campos |
ldap fields to get |
label.user |
user label |
label.pass |
= password label |
label.button.go |
= login button label |
label.button.cancel |
= cancel button label |
label.button.modal |
= modal button label |
label.title |
= Login dialog title |
show.button.cancel |
= Show the cancel button |
show.button.modal |
= Show the modal button |
msg.list |
= Message list |
callback.return |
a function called when the user click a response button. This function can return a error message. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | shinyldap::ldap_login(input, output,
ui_name = 'ui_login',
modal = TRUE,
ldap.url = secrets.ldap.url,
ldap.dc = secrets.ldap.dc,
ldap.filtro = secrets.ldap.filtro,
ldap.dominio = secrets.ldap.dominio,
ldap.campos = secrets.ldap.campos,
label.user = 'User',
label.pass = 'Password',
label.button.go = 'Login',
label.button.cancel = 'Cancel',
label.button.modal = 'Close',
label.title = 'Shiny LDAP Login',
show.button.cancel = TRUE,
show.button.modal = FALSE,
msg.list = list(empty = 'These fields cannot be empty!', time = 'Please! Wait a moment before login again.' ),
callback.return = ldap.callback.return)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.