looking for email address in active server

3 views
Skip to first unread message

stuforman

unread,
Jan 18, 2008, 2:59:17 PM1/18/08
to NYC Foxpro Users Group
I've looked around, but am tring to figure out how to obtain the email
addresses from the server. I do get the name,fullname,description and
class. Can anyone help?

this does not work:
replace usernames.email WITH Child.mail


CLOSE TABLES
CLEAR ALL

oADSobj = GETOBJECT("*****://###.###.###.###")

CREATE TABLE c:\windows\temp\usernames (login c(30),;
fullname c(60),;
fname c(30),;
descript c(60),;
class c(50),;
acctlocked I,;
homedir c(30),;
email c(30),;
profile c(30))
FOR EACH Child IN oADSobj
IF Child.Class = "User"
SELECT usernames
APPEND BLANK
replace usernames.login WITH Child.Name
replace usernames.fullname WITH Child.FullName
replace usernames.descript WITH Child.description
replace usernames.class WITH Child.class
replace usernames.homedir WITH Child.Homedirectory
replace usernames.email WITH Child.mail
IF !ISNULL(Child.Profile) AND Child.Profile!=""
replace username.profile WITH Child.Profile
ENDIF
ENDIF
ENDFOR


thanks,

Stu

Jay Berardinelli

unread,
Jan 18, 2008, 4:14:08 PM1/18/08
to NycF...@googlegroups.com
Stu,
the following is invalid:

oADSobj = GETOBJECT("*****://###.###.###.###")

that cannot be your real code... what are you doing instead?
it could be simply your object doesnt have what you expect.
there is nothing wrong with your code.
Jay

stuforman

unread,
Jan 19, 2008, 10:32:30 AM1/19/08
to NYC Foxpro Users Group
Hi Jay,

no - that isnt the real code (at least that specific line)... i just
didn't feel comfortable to display the email server IP address... it's
probably not a big deal, but i'd rather be more paranoid than less...

Stu
> > Stu- Hide quoted text -
>
> - Show quoted text -

Jay Berardinelli

unread,
Jan 19, 2008, 10:35:59 AM1/19/08
to NycF...@googlegroups.com
i understand that, but what are the *'s ?
you cant open an ip address like that..
what exactly are you trying to do?

stuforman

unread,
Jan 19, 2008, 10:40:40 AM1/19/08
to NYC Foxpro Users Group
the *'s are taking the place of the characters - I think its
winNT://1##.###.#.##

Stu

it's getting me some info - just not the email address which is what i
really need...
> >> - Show quoted text -- Hide quoted text -

Nadya Nosonovsky

unread,
Jan 20, 2008, 12:12:34 PM1/20/08
to NycF...@googlegroups.com
Stu,
 
I had similar code in one of my procedures, but I would need to research for this. Are you sure that the name of the property is mail? Check with AMEMBERS() what properties do you have in Child.
 
Best wishes,
 
Nadya

 

stuforman

unread,
Jan 21, 2008, 7:49:17 AM1/21/08
to NYC Foxpro Users Group
I will check when I get back into the office. I'm in training Monday-
Wednesday this week. I'm not sure that the name is 'mail.' I've tried
about 4 names - searching for this on the web. I don't remember
specifics of what i tried without being at my desk, but i'm thinking
that is the issue...

On Jan 20, 12:12 pm, "Nadya Nosonovsky" <nnosonov...@gmail.com> wrote:
> Stu,
>
> I had similar code in one of my procedures, but I would need to research for
> this. Are you sure that the name of the property is mail? Check with
> AMEMBERS() what properties do you have in Child.
>
> Best wishes,
>
> Nadya
>

stuforman

unread,
Jan 25, 2008, 10:19:04 AM1/25/08
to NYC Foxpro Users Group
ok - i'm tring to use amembers(), but never used this before - i'm
trying something like:

CREATE TABLE c:\windows\temp\usernames (login c(30),;
fullname c(60),;
fname c(30),;
descript c(60),;
class c(50),;
acctlocked I,;
homedir c(30),;
email c(30),;
profile c(30))

FOR EACH Child IN oADSobj
=AMEMBERS(gaPropArray,Child, 3)
DISPLAY MEMORY LIKE gaPropArray

******************************************************************************
******************************************************************************

regarding email usernames - i've tried these 3:
replace usernames.email WITH Child.targetAddress
replace usernames.email WITH Child.userPrincipalName
replace usernames.email WITH Child.mail


On Jan 20, 12:12 pm, "Nadya Nosonovsky" <nnosonov...@gmail.com> wrote:
> Stu,
>
> I had similar code in one of my procedures, but I would need to research for
> this. Are you sure that the name of the property is mail? Check with
> AMEMBERS() what properties do you have in Child.
>
> Best wishes,
>
> Nadya
>
Reply all
Reply to author
Forward
0 new messages