LotusScript Name Lookup to gather addresses

Hello everyone,

I am just wondering if anyone has a sample LotusScript that can lookup a username to see if they are a valid user (kind of like SMTP does before allowing a message to be received) and then print out each of the users valid addresses for example:

FirstName LastName/Domain

CN=FirstName LastName/O=Organization@Domain

FirstInitialLastName

FirstInitialLastName@Domain.com

I know some addresses would look different based on your settings but it should be understandable what I am trying to do on my server.

I am thinking I will need to open names.nsf, find user, and then gather necessary dat out of the fields. Anyone have something like this?

Thank you

Subject: Use the NotesDirectory class

Subject: thank you

Thanks for pointing me into the right direction. I will see what I can do with this class.