How to authenticate login using org.freedesktop.login1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

 

 


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux