Astra Linux Directory Client Core API  1.7.0
SSSDInfo.h
1 
2 #ifndef SSSDINFO_H
3 #define SSSDINFO_H
4 
5 #include <string>
6 #include <dbus/dbus.h>
7 
8 using namespace std;
9 
10 namespace ALD
11 {
12 
13 class SSSDInfo
14 {
15 protected:
16 
17  string m_strDomain;
18  char *m_domain_opath;
19  DBusError m_err;
20  DBusConnection *m_con;
21 
22  string m_strHometype;
23  string m_strHomeserver;
24  ald_string_list m_lstAllowedHosts;
25  ald_string_list m_lstAllowedHostGroups;
26  ald_string_list m_lstLocalGroups;
27  ald_user_caps m_Caps;
28 
29  void init();
30  void fill_user_info(const char *attr, const char *value);
31 
32 public:
33 
34  SSSDInfo();
35  SSSDInfo(const string &domain);
36  bool IsOnline();
37  bool UserGet(const char *name);
38  string UserHometype();
39  string UserHomeserver();
40  bool UserIsLocked();
41  void UserAllowedHosts(ald_string_list &hosts);
42  void UserAllowedHostGroups(ald_string_list &hosts);
43  void UserLocalGroups(ald_string_list &groups);
44  virtual ~SSSDInfo();
45 
46 };
47 
48 } // ALD
49 
50 #endif // SSSDINFO_H
51 
list< string > ald_string_list
Список строк
Definition: ALDUtils.h:152
Definition: SSSDInfo.h:13
Пространство имен основного интерфейса Astra Linux Directory.
Definition: action-definitions.h:9
STL namespace.
unsigned int ald_user_caps
Вектор ALD привилегий
Definition: ALDObjects.h:416