-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: (IAC-1294) viya_admin in sitedefault.yaml breaks LDAP #485
Comments
Please read the information about LDAP in the docs here: https://github.com/sassoftware/viya4-deployment/blob/main/docs/CONFIG-VARS.md#miscellaneous If needed turn off the internal openLDAP and simply supply the correct credentials for the LDAP server you'd like to control user access into the SAS software. |
Hi @thpang, I did not supply the I am supplying my own LDAP server credentials via the SAS Environment Manager, and the presence of the |
Marking as a bug. This will get picked up and an internal JIRA story will be created to track this issue. Thx. |
Hey @bek-afs, |
Hi @jarpat, I'm not running into the issue anymore. I think it would be helpful to have a callout in the |
Hey @bek-afs, I agree, the doc could include a note about users needing to define their own |
Hi,
I've used this viya4-deployment project to deploy SAS Viya 4 version 2023.08 stable on AWS EKS. I'm now trying to configure LDAP via the SAS Environment Manager, and see logs that indicate a successful connection to the LDAP:
{"version":1,"timeStamp":"2023-08-30T15:39:20.748Z","level":"debug","source":"sas-identities","message":"Got Ldap context on server 'ldap://10.212.48.175:3890'","properties":{"logger":"org.springframework.ldap.core.support.AbstractContextSource","thread":"bootstrap-3"}}
but I've been having issues with the Users and Groups populating. I specifically am seeing this error:
{"version":1,"timeStamp":"2023-08-31T15:14:34.497Z","level":"error","source":"sas-identities","message":"[GET_IDENTITY_MEMBER_ERROR] Cannot add viya_admin member to SASAdministrators group because the USER could not be found.","properties":{"logger":"com.sas.identities.config.DefaultMembershipLoader","thread":"configWatchTaskScheduler-1"},"messageKey":"com.sas.identities.LogMessages.GET_IDENTITY_MEMBER_ERROR","messageParameters":{"0":"viya_admin","1":"SASAdministrators","2":"USER"}}
and I notice that the
viya_admin
user is the one being used to perform the fetch of the LDAP users and groups:It appears that the
viya_admin
user is coming from the sitedefault.yaml file in this repo.I deleted that user with a command like
kubectl -n sas-viya exec sas-consul-server-0 -- bash -c "export CONSUL_HTTP_ADDR=https://localhost:8500 && /opt/sas/viya/home/bin/sas-bootstrap-config kv delete config/identities/sas.identities/administrator"
(FYI that command took 20+ tries to go through - that was problematic...) and I finally saw healthy looking trace logs in the sas-identities pod.It successfully fetched 2 groups (as expected by the objectFilter I supplied):
It successfully fetched 1 user (as expected by the objectFilter I supplied):
The problem is that these groups and users are still not showing up in the SAS Environment Manager Users page. Which doesn't make sense because I'm seeing the sas-identities pod successfully fetch them and there are no errors in the logs. I'm logged in as the
sasboot
user (because I'm not aware of any other way to log in as a different user without first connecting LDAP).So this situation raises two serious issues:
viya_admin
user defined in thesitedefault.yaml
(which is included in the deployment as default if no other file is supplied) explicitly causes errors with fetching LDAP users and groups.sasboot
. If it does, then that seems really problematic because I don't know how to log in as a different user without first setting up LDAP.1. EDIT: I did try logging in as the user that was successfully fetched above and that returned "The user ID or password is not valid", so I don't think it's just an issue of the
sasboot
user not having permissions to view the users and groups in the SAS Environment Manager. It still seems to be an issue of the users and groups being fetch successfully but then not actually populated in the SAS Environment Manager, and yet not producing any logs about it..)The text was updated successfully, but these errors were encountered: