Azure / Azure/azure-linux-extensions
Azure aadlogin package on ubuntu vm stops working after a short period of time
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
**What happened:**
we have aadlogin package installed on our bastions, which allows users to connect to vm with their AD creds, however normally within 10 minutes, it's stops and asks for **password**
**What you expected to happen:**
where normal behavior it will prompt a user with this message:
`This preview capability is not for production use. When you sign in, verify the name of the app on the sign-in screen is "Azure Linux VM Sign-in" and the IP address of the target VM is correct.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code to authenticate. Press ENTER when ready.`
**How to reproduce it (as minimally and precisely as possible):**
just wait 10 - 15min and it will ask for password when trying to login
**Anything else we need to know?:**
problem getting logs from /var/log/auth.log and journalctl, which produced very little info.
Have updated to the latest packages,
**Workaround for now:**
a cron job which originally reinstalled the package every 15 min, had to adjust it down to every 5 minutes
**Environment:**
uname -a:
`Linux ytvm 5.0.0-1023-azure #24~18.04.1-Ubuntu SMP Wed Oct 2 20:23:29 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`
packages tried:
aadlogin=1.0.008500001
aadlogin=1.0.006350001
aadlogin=1.0.008450001
current:
aadlogin=1.0.009820001
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure after 10–15 minutes on the stated Ubuntu Azure VM environment, then inspect /var/log/auth.log and journalctl. Compare the listed aadlogin package versions and record what changes when the login falls back to a password. Done means the device-login prompt continues working without reinstalling the package every few minutes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, linux, ubuntu
- Domain
- authentication, cloud, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100