Hi
Is it possible to get a username out of an id file via lotusscript. I have a database that I attach Id files to and want to populate a field with the username.
Thanks
Mark.
Hi
Is it possible to get a username out of an id file via lotusscript. I have a database that I attach Id files to and want to populate a field with the username.
Thanks
Mark.
Subject: ID file information via lotusscript
after you define sesion as New Notes Session you can use values from sesion, and commonusername is one of this value.
by example:
dim sesion as New NotesSession
username = sesion.commonusername
Subject: ID file information via lotusscript
Yes, it is possible, since the user name is stored in the clear in the id file and LotusScript allows you to open files as Binary. I don’t know, though, if there’s a neat fixed-byte-offset that will allow you to get the name all at one swoop, or whether you’d need to essentially load the whole id file into a string and go looking the hard way (searching for CN=, which occurs in more than one location, and going until you have encountered O= plus a value followed by a null).
Subject: RE: ID file information via lotusscript
This sounds like it would serve the purpose.dgg
Subject: RE: ID file information via lotusscript
thanks Dallas that looks perfect
Subject: RE: ID file information via lotusscript
thanks for your answers.
Subject: ID file information via lotusscript
Look here: