SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

Grafana in SystemLink: User Name and Login instead of niuaId.

Does any one tried Grafana in SystemLink? I found it from Install Grafana for SystemLink Server Edition - NI 

 

When managing Users I got some thing weird in the user list. It shows niuaId under user email and login while displaying nothing under the name.

ThamS_0-1709781982348.png

 

And when we go to the "Edit user" menu,  we can't change any of them under User Information might be caused by the Synced via Auth Proxy

ThamS_1-1709782164300.png

 

I assume it's kind of bugs. Is there any way to figure out to fix it?

at least we can see First Name in the Name field

 

0 Kudos
Message 1 of 5
(796 Views)

Any Idea? Anyone?

0 Kudos
Message 2 of 5
(611 Views)

I found that we could add a user name and other user information as header to Grafana during proxy authentication.

 

 

 

[auth.proxy]
enabled = true
header_name = X-Remote-User
header_property = username
auto_sign_up = true
;sync_ttl = 60
;whitelist = 192.168.1.1, 192.168.2.1
# Optionally define more headers to sync other user attributes
# Example `headers = Name:X-WEBAUTH-NAME Role:X-WEBAUTH-ROLE Email:X-WEBAUTH-EMAIL Groups:X-WEBAUTH-GROUPS`
headers = Name:X-WEBAUTH-NAME Email:X-WEBAUTH-EMAIL 
# Read the auth proxy docs for details on what the setting below enables
;enable_login_token = false

 

 

 

 

And found in NI web server directory ... 57_Grafana.conf where the auth.proxy is performed:

 

 

  RequestHeader set X-Remote-User expr=%{REMOTE_USER}

 

 

 seems like the REMOTE_USER variables is the niauId number.

thanks to mure Carson who replied me on my posted issue

 

Question:

  • How can we get other variables (or List of Variables) which contain user information? (e.g. name, email, login, etc)
  • I know that, once the user is logged in, we could get user detail from NI Web HTTP API: 
    localhost/niauth/v1/auth​

    but How to implement it in "NI Web Server [*.conf] file" ?

0 Kudos
Message 3 of 5
(432 Views)

I did observe this early on, but this was resolved when I switched to using SSO.

0 Kudos
Message 4 of 5
(417 Views)

The End User Company uses MS Active Directory. 

0 Kudos
Message 5 of 5
(412 Views)