You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanting to get a list of all saved (generic) passwords for a given service. Using something like the following works for looking up one password (.first) but I've not been able to get the search working. Tried removing '.matching. and '.containedIn' options but no luck.
let pwQuery = GenericPasswordQuery(service: "some.service")
.matching(account: "some.account")
.containedIn(keychainGroup: "shared.group")
do {
let passwordObj = try myHaversack.first(where: pwQuery)
print("passwordObj: \(String(data: passwordObj.passwordData ?? Data(), encoding: .utf8) ?? "")") // works
let passwordObjs = try myHaversack.search(where: pwQuery) // does not work
print("haversack found \(passwordObjs.count) matches")
} catch {
print("failed haversack lookup")
}
Not a whole lot in the log:
Timestamp Thread Type Activity PID TTL
2024-09-17 14:37:02.918241-0400 0x243c368 Info 0x0 53983 0 loginWindowSwiftUI: [com.jamf.haversack:search] Searching for an item of class genp
2024-09-17 14:37:03.004637-0400 0x243c368 Info 0x0 53983 0 loginWindowSwiftUI: [com.jamf.haversack:search] Searching for an item of class genp
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Wanting to get a list of all saved (generic) passwords for a given service. Using something like the following works for looking up one password (.first) but I've not been able to get the search working. Tried removing '.matching. and '.containedIn' options but no luck.
Not a whole lot in the log:
Beta Was this translation helpful? Give feedback.
All reactions