Is there an existing issue for this?
Describe the issue
If multiple hosts are specified in the ad_server option of SSSD for high availability, adsysd constructs an invalid ldap URL and fails to connect:
DEBUG github.com/ubuntu/adsys/internal/ad/ad.go:259 (*AD).GetPolicies() Getting gpo list with arguments: "--objectclass computer dc1.windows.lan,dc2.windows.lan adsys"
ERRORgithub.com/ubuntu/adsys/cmd/adsysd/main.go:52 main.run() Error from server: error while updating policy: can't get policies for "adsys": failed to retrieve the list of GPO (exited with 2): exit status 2
Failed to connect to ldap URL 'ldap://dc1.windows.lan,dc2.windows.lan' - LDAP client internal error: NT_STATUS_OBJECT_NAME_NOT_FOUND
Failed to connect to 'ldap://dc1.windows.lan,dc2.windows.lan' with backend 'ldap': LDAP client internal error: NT_STATUS_OBJECT_NAME_NOT_FOUND
This is valid SSSD configuration and should be supported by adsys.
Steps to reproduce it
- Set
ad_server in /etc/sssd/sssd.conf to a comma-separated list of multiple DC hostnames
sudo systemctl restart sssd
sudo adsysctl policy update -m -vvv
Ubuntu users: System information
report.txt
Non Ubuntu users: System information
Environment
- adsys version: please run
adsysctl version
- Distribution: (NAME in
/etc/os-release)
- Distribution version: (VERSION_ID on
/etc/os-release):
Log files
Please redact/remove sensitive information:
adsys service logs can be acquired by running `adsysctl service cat -v`.
You can increase the amount of information displayed by increasing the verbosity level (-v) to -vv or -vvv.
Application settings
Please redact/remove sensitive information:
Paste the contents of your adsys.yaml file here, if you created one.
Additional information
No response
Double check your logs
Is there an existing issue for this?
Describe the issue
If multiple hosts are specified in the
ad_serveroption of SSSD for high availability, adsysd constructs an invalid ldap URL and fails to connect:This is valid SSSD configuration and should be supported by adsys.
Steps to reproduce it
ad_serverin /etc/sssd/sssd.conf to a comma-separated list of multiple DC hostnamessudo systemctl restart sssdsudo adsysctl policy update -m -vvvUbuntu users: System information
report.txt
Non Ubuntu users: System information
Environment
adsysctl version/etc/os-release)/etc/os-release):Log files
Please redact/remove sensitive information:
Application settings
Please redact/remove sensitive information:
Additional information
No response
Double check your logs