Page 2 of 2 <12
Topic Options
#92176 - 2003-06-19 02:22 PM Re: KiXforms - Active Directory Browser
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
This routine is interesting ...

code:
If Exist("%WINDIR%\System32\dsuiext.dll")
$imgList.Images.Add("dsuiext.dll;1") $c=64
$imgList.Images.Add("dsuiext.dll;7") $g=65
$imgList.Images.Add("dsuiext.dll;12") $u=66
$imgList.Images.Add("dsuiext.dll;13") $o=67
$imgList.Images.Add("dsquery.dll;0")
$frmMain.Icon = $imgList.Images(68)
Else
$c=53 $g=35 $u=34 $o=50
EndIf

And I already know, that Chris knows, that as soon as the next batch of icons get added to the library, that this code will not work as expected. Going to add something in the next build that will fix this situation forever. The ImageList.Images.Add() function will return the index number of the added icon, so the above code becomes ...

code:
If Exist("%WINDIR%\System32\dsuiext.dll")
$c = $imgList.Images.Add("dsuiext.dll;1")
$g = $imgList.Images.Add("dsuiext.dll;7")
$u = $imgList.Images.Add("dsuiext.dll;12")
$o = $imgList.Images.Add("dsuiext.dll;13")
$f = $imgList.Images.Add("dsquery.dll;0")
$frmMain.Icon = $imgList.Images($f)
Else
$c=53 $g=35 $u=34 $o=50
EndIf

-Shawn

[ 19. June 2003, 14:23: Message edited by: Shawn ]

Top
#92177 - 2003-06-20 06:10 PM Re: KiXforms - Active Directory Browser
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Update to script to fix minor issues.
  • Status label would not display the proper amount of objects if the tab was changed while enumerating.
  • View button now displays the correct view icon for the currently selected tab.
Shawn, thanks for updating the next version with the Images.Add index. If you didn't want to make that change, however, one could aways do this...


If Exist("%WINDIR%\System32\dsuiext.dll")
    $imgList.Images.Add("dsuiext.dll;1"$c=$imgList.Images.Count-1
    $imgList.Images.Add("dsuiext.dll;7"$g=$imgList.Images.Count-1
    $imgList.Images.Add("dsuiext.dll;12"$u=$imgList.Images.Count-1
    $imgList.Images.Add("dsuiext.dll;13"$o=$imgList.Images.Count-1
    $imgList.Images.Add("dsquery.dll;0"$f=$imgList.Images.Count-1
    $frmMain.Icon = $imgList.Images($f)
Else
    $c=53 $g=35 $u=34 $o=50
EndIf



As always, I leave the decision to you.

Top
#92178 - 2003-06-20 06:12 PM Re: KiXforms - Active Directory Browser
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Clever work-around. I love this script ! The change has already been done though.
Top
#92179 - 2003-06-20 07:22 PM Re: KiXforms - Active Directory Browser
Kdyer Offline
KiX Supporter
*****

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

Looks like we may have an issue here..

I have 12 kdyer computer accounts (RIS).

A couple of weeks ago, corporate reduced the number of Domain Admins from 37 to 8. However, I have elevated privaleges to delete, reset, edit scripts, etc. Noticed in your script, I try to delete one of the RIS accounts and the delete option is not available.

I can go into AD Users and computers and do this fine.

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

Top
#92180 - 2003-06-20 07:39 PM Re: KiXforms - Active Directory Browser
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Well, I haven't added any functionality to act on objects within the browser other than to copy the ADsPath onto the clipboard for pasting into other scripts.

It was not really meant to replace AD Users & Computers as a tool to manipulate one's AD environment. While I could certainly do that, I don't see the value in it since it would mirror the AD Users & Computers tool. Seems redundant to me.

If you (or others) can convince me that there are other uses for this application or some that there are things missing from AD Users & Computers that could be scripted into this app, well... I suppose I could be talked into further development.

Top
#92181 - 2003-06-20 08:54 PM Re: KiXforms - Active Directory Browser
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I think this is so cool.. It should not matter what the application is, there should be no issue is deleting an object, resetting password, etc.

Adding those pieces to your application would be pretty cool too. I know that Ben - http://www.rgcweb.org/kix/ has a pretty extensive user management tool as well.

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

Top
#92182 - 2003-06-20 09:03 PM Re: KiXforms - Active Directory Browser
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Well, to be honest you got me thinking and I may have come up with a few things to make it a little more useful than AD Users & Computers.

For example...

I can check if an account is locked and display a different icon for that account. That way you have a visual indication of accounts that are locked. You could then quickly (maybe even from a context menu) identify and unlock it.

I've already (in my test script, not the version listed here) updated the user icons to display a different icon for disabled accounts and locked accounts.

So... I guess you've talked me into some further development. I'll work on it as I get the time. In the meantime, think about and post ideas on how to make it better. [Big Grin]

Top
#92183 - 2003-08-09 11:30 PM Re: KiXforms - Active Directory Browser
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
It Works !!! WooooHoooooo !!!!!!

But now I got another problem. When I resize the form, the toolbar and the buttons at the top go all funny ...

-Shawn

By the way, I am using Kixforms 2.3.0 Beta 4

hehee

[ 09. August 2003, 23:31: Message edited by: Shawn ]

Top
#92184 - 2003-08-10 08:02 PM Re: KiXforms - Active Directory Browser
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Might be a KiXforms bug. [Frown]
You should complain to the KiXforms creator [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#92185 - 2004-11-08 06:45 PM Re: KiXforms - Active Directory Browser
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11577
Loc: CA
Chris,

It's been about a year now. Have you added any new good stuff to this form?

Top
#92186 - 2004-11-08 10:56 PM Re: KiXforms - Active Directory Browser
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Hmm. Not lately. I was working on a version with a treeview that used ADODB to query the AD information that was much faster than using the native LDAP provider, but that has been a while.

I might be persuaded to dust off the code if you guys had some feature requests.

Top
#92187 - 2004-12-09 10:02 AM Re: KiXforms - Active Directory Browser
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11577
Loc: CA
Has any of the Dust settled yet Chris
Top
#92188 - 2005-05-05 05:38 PM Re: KiXforms - Active Directory Browser
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
This could be a start for anyone that's willing to run with it...

Split Container and AD

Top
#172463 - 2007-01-06 02:51 PM Re: KiXforms - Active Directory Browser [Re: Chris S.]
Shaba1 Offline
Fresh Scripter

Registered: 2005-08-20
Posts: 44
I know this is and old post chris but I wanted to ask you some questions once I read thru all 4 pages of it. And I could not find another way of adding it to my subscribed threads list
Top
#172529 - 2007-01-08 03:54 PM Re: KiXforms - Active Directory Browser [Re: Shaba1]
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Shaba, thats cool. Ask away. Before you do, you might want to give the newer version a look:

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=144960&page=1#Post144960

Top
Page 2 of 2 <12


Moderator:  Shawn, ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 173 anonymous users online.
Newest Members
Jodey, Hiker, GTRoberts, KatieQuinn, Brennnnn
17684 Registered Users

Generated in 0.039 seconds in which 0.013 seconds were spent on a total of 14 queries. Zlib compression enabled.

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