#206270 - 2012-11-26 05:43 PM
Active Directory with Kixtart
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Hi,
Just a quick question about the feasibility of a script before I start any work on writing it. I gather from some quick searches of the bulletin board that it's possible to use Kixtart to interface with AD and therefore possible to read user's attributes (phone numbers etc). Would it also be possible to write back some information to those fields? If a user changed their phone number, it'd be useful if they could handle the admin of that task rather than I.T. handling it. Any advice much appreciated.
Thanks!
|
|
Top
|
|
|
|
#206276 - 2012-11-27 10:19 AM
Re: Active Directory with Kixtart
[Re: Lonkero]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
That's fantastic, thanks for that. Are there any pre-requisites? I would presume you need to be able to have the rights to change the info, but i guess if it's your own user info that you're changing then you already have the correct permissions for this script to work...?
|
|
Top
|
|
|
|
#206277 - 2012-11-27 11:15 AM
Re: Active Directory with Kixtart
[Re: kelp7]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Also, do I have to customise the UDF at all? For instance putting in our DC / Domain Name anywhere? Or does it pick up all that sort of info by default?
|
|
Top
|
|
|
|
#206278 - 2012-11-27 11:26 AM
Re: Active Directory with Kixtart
[Re: kelp7]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Don't worry I have run the script (with no parameters) and, as you say, it's very simple and has returned exactly my distinguished name. Thanks again for the help. Brilliant UDF.
|
|
Top
|
|
|
|
#206280 - 2012-11-27 11:58 AM
Re: Active Directory with Kixtart
[Re: Mart]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Thanks for that, I made a short script that retrieved my DN and then passed that back to the UDF again with a change to my telephone number. This worked as expected. I guess I'll have to do some research on how to get this working for a regular user.
|
|
Top
|
|
|
|
#206281 - 2012-11-27 12:56 PM
Re: Active Directory with Kixtart
[Re: kelp7]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
I also believed, as you stated above, that a user would need elevated rights of some kind to make some changes to AD but I have just logged in as a standard user in our domain and exectued this following code:
Break on
$x = ADSIUserInfo()
$x
sleep 2
? "Set the telephone number attribute"
$y = ADSIUserInfo($x,"telephoneNumber","12345678")
sleep 2
Exit
via Kix32.exe and it seems that the telephone number has been updated on this standard user, as expected! (not sure if that highlights a problem with our domain, or whether this is expected behaviour for this particular attribute).
Cheers
|
|
Top
|
|
|
|
#206284 - 2012-11-27 02:47 PM
Re: Active Directory with Kixtart
[Re: Glenn Barnas]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
V2? Interesting.... what's new?
|
|
Top
|
|
|
|
#206287 - 2012-11-27 03:26 PM
Re: Active Directory with Kixtart
[Re: Glenn Barnas]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Glenn,
Thanks very much for the full explanation. I'm going to be writing a small Kixforms-based compiled script to allow users to modify their Phone Number, Job Title and Dept in AD so this UDF is going to be very useful. It's interesting that if you google this kind of utility some companies are charging an awful lot of money for their tools to do this!
Thanks again Ben
|
|
Top
|
|
|
|
#206289 - 2012-11-27 04:24 PM
Re: Active Directory with Kixtart
[Re: Mart]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Just so I fully understand the thread, could you explain the SELF token? Presumably part of AD? Is this addressed / referenced in the UDF itself somewhere? I searched the UDF for 'SELF' but nothing found.
|
|
Top
|
|
|
|
#206291 - 2012-11-27 04:49 PM
Re: Active Directory with Kixtart
[Re: Glenn Barnas]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
Okay, that's excellent, found it (you may realise at this point i'm not a sys admin ) Thanks all for the help!
|
|
Top
|
|
|
|
#206299 - 2012-11-28 12:19 PM
Re: Active Directory with Kixtart
[Re: ShaneEP]
|
kelp7
Starting to like KiXtart
Registered: 2002-08-12
Posts: 124
Loc: UK
|
ShaneEP, yep exactly what I said I'm going to do a few posts above here. Will make it a lot more user friendly. Will also compile via kix2exe.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 429 anonymous users online.
|
|
|