[systemd-devel] How to authenticate login using org.freedesktop.login1
Lal, Arun
arun.lal at intel.com
Wed May 24 06:42:05 UTC 2023
Hi All,
I was trying to authenticate a user from a deamon running in my machine. And I found systemd-login can be used.
I went through documentation for interface org.freedesktop.login1, but I am not clear on how it can be used.
Lets assume that there is a deamon called xyz running in my device which has a webserver component. And it receives a request to login from https side.
And once the deamon has username and password, I would like to invoke some dbus calls to org.freedesktop.login1 to perform the authentication.
Assuming org.freedesktop.systemd1.Privileged("true"), I see that I can use CreateSession and ReleaseSession from interface org.freedesktop.login1.Manager.
But I have some doubts:
* Is this recommended approach.
* I am not seeing an argument in CreateSession method that takes password, what am I missing here?
Thanks in advance 😊
Regards,
Arun Lal K M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230524/b9148d25/attachment-0001.htm>
More information about the systemd-devel
mailing list