Page 1 of 1 1
Topic Options
#127258 - 2004-09-30 02:19 PM How to get an attributte from Active Directory ?
Anonymous
Unregistered


Hi, I have a script where it writes values in a txt file. In my netowork we use Active Directory domain and I wish to get the "user extension" from Active Directory.
There are any way to do this ? If yes, how to to ??


Thanks
André Wolf
Santa Catarina-Brasil

Top
#127259 - 2004-09-30 02:56 PM Re: How to get an attributte from Active Directory ?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not sure what you mean by "user extension" but ADSI can get you user attributes. There are lots of ADSI examples posted here and VBS examples available from Microsoft.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#127260 - 2004-09-30 03:05 PM Re: How to get an attributte from Active Directory ?
Anonymous
Unregistered


Hi, my english is the problem :-)
Well, my wish is to get the ( ramal , extension line, phone number) from user in Active Directory.
Example: user=Maria , getADattribute extension line from user Maria.


Top
#127261 - 2004-09-30 03:14 PM Re: How to get an attributte from Active Directory ?
Anonymous
Unregistered


Improving the question. My wish is to query the attribute tha contains the extension number, Idon't know the correct name of this attribute in Active Directory.
Top
#127262 - 2004-09-30 03:30 PM Re: How to get an attributte from Active Directory ?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
See this thread for a script that will list all available object properties for you.

enumerate object properties

This will get you the names of all the properties. Then you will need to read about using the methods GET, PUT, GetEX, PutEx. For some items you must use GetEx as an array is returned.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


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

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

Generated in 0.052 seconds in which 0.024 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