I have a situation where i need to deploy a new printer. no problem there!
only problem is user needs to authenticate trough AD printserver.
this means there is a network password in the users keychain named printerc0(x).
does any of you know how to remove this individual item trough a script.
im looking into the security command but have trouble singling out the exact item see below.
security dump-keychain ~/Library/Keychains/login.keychain
part of the output i'm interested in:
keychain: "/Users/ben/Library/Keychains/login.keychain"
class: "inet"
attributes:
0x00000007 <blob>="printerc02"
0x00000008 <blob>=<NULL>
"acct"<blob>="ben"
"atyp"<blob>=<NULL>
"cdat"<timedate>=0x32303133303532313134303734325A00 "20130521140742Z00"
"crtr"<uint32>=<NULL>
"cusi"<sint32>=<NULL>
"desc"<blob>="Network Password"
"icmt"<blob>=<NULL>
"invi"<sint32>=<NULL>
"mdat"<timedate>=0x32303133303532313134303734325A00 "20130521140742Z00"
"nega"<sint32>=<NULL>
"path"<blob>=<NULL>
"port"<uint32>=0x00000000
"prot"<blob>=<NULL>
"ptcl"<uint32>="smb "
"scrp"<sint32>=<NULL>
"sdmn"<blob>=<NULL>
"srvr"<blob>="ICE2.ice.local"
"type"<uint32>=<NULL>
any help is much appreciated
