Warning

This is a design page. It was used to design and discuss the initial implementation of the change. However, the state of this document does not necessarily correspond to the current state of the implementation since we do not keep this document up to date with further changes and bug fixes.

D-Bus Interface: Cached Objects

Related ticket(s):

Related design page(s):

This design document describes how objects can be marked as cached.

  • Allow tools like graphical user management to display a list of users who recently logged in.

  • /org/freedesktop/sssd/infopipe/Users

  • /org/freedesktop/sssd/infopipe/Groups

  • ao List()

  • ao ListByDomain(s:domain_name)

    • Returns list of objects that contains cached attribute.

None.

None.

  • /org/freedesktop/sssd/infopipe/Users/*

  • /org/freedesktop/sssd/infopipe/Groups/*

  • b Store()

  • b Remove()

    • Those methods will add/remove cached attributed to the object under path implementing this interface.

None.

None.

New sysdb attribute ifp_cached is created for users and groups objects. If this attribute is present, the object is considered to be cached on IFP D-Bus. The introspection of an object path /obj/path will report all cached objects in the subtree /obj/path/*.

Call the D-Bus methods and properties. For example with dbus-send tool. A cached object is supposed to appear in introspection.