Page 1 of 1 1
Topic Options
#75901 - 2003-07-15 06:22 PM Phone Number
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Is it possible to retrieve the Work Phone number without an LDAP Query?

code:
 CLS
BREAK ON
$groupobj = GetObject("WinNT://DOMAIN/GROUP")
FOR EACH $userobj IN $groupobj.members
?$List = $List + $UserObj.Name + ' - ' + $UserObj.FullName + ' - ' + $UserObj.telephoneNumber + @crlf
NEXT
?$List
$groupobj = 0
GET $k

Thanks,

Kent

[ 15. July 2003, 18:23: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#75902 - 2003-07-15 06:29 PM Re: Phone Number
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
No, but you can use Howard's TranslateName UDF to translate each WinNT object into it's appropriate ADsPath. Having to do something similar myself.
Top
#75903 - 2003-07-15 07:26 PM Re: Phone Number
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
I have a UDF for this Kent. You could modify to not bring back all the data if you want.

LDAP is required because the WinNT provider does not understand how to access many of the properties that AD contains.

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000329

Top
#75904 - 2003-07-15 07:36 PM Re: Phone Number
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
It is kinda frustrating that you can do the Userid and fullname without LDAP. However, I understand.. [Smile]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#75905 - 2003-07-15 08:58 PM Re: Phone Number
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
frustrating?
I think it's obvious.
these fields are provided via old style simple methods.
these also are properties that every account has.
phonenumber is not one of them.
_________________________
!

download KiXnet

Top
#75906 - 2003-07-15 09:08 PM Re: Phone Number
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jooel,

Yes, you are right it is obvious. Call me lazy as I wanted to do this simpler.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1955 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org