Skip to content

Commit

Permalink
Fix more stuff for GLPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Mar 28, 2024
1 parent 787c445 commit 1cb291c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inventoryformat/InventoryFormatOCS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,12 +968,15 @@ InventoryFormatOCS::_AddSoftwaresInfo()
void
InventoryFormatOCS::_AddUsersInfo()
{
return;
tinyxml2::XMLElement* users = fDocument->NewElement("USERS");

UsersRoster usersInfo;
user_entry userEntry;
while (usersInfo.GetNext(userEntry)) {
tinyxml2::XMLElement* domain = fDocument->NewElement("DOMAIN");
domain->LinkEndChild(fDocument->NewText(userEntry.logindomain.c_str()));
users->LinkEndChild(domain);

tinyxml2::XMLElement* login = fDocument->NewElement("LOGIN");
login->LinkEndChild(fDocument->NewText(userEntry.login.c_str()));
users->LinkEndChild(login);
Expand Down

0 comments on commit 1cb291c

Please sign in to comment.