![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Dialog Box Problem
Hello! I'm writing a login system, specifically a policy editor (as an MMC snap-in) in VB, probably not the wisest choice as I've now run into a few problems. My app basically makes a text file containing a list of usernames and their corresponding permissions, but what I'd like to be able to do is to provide a means of selecting a fully qualified UPN from Active Directory. There is a system dialog box that'll work (the one that pops up on NT systems when you browse for a user - in XP it's the "Select Users or Groups" dialog box), however I've no idea how to implement it.
I've found a COM wrapper that will do it, but then my app needs a separate DLL to work and can't be compressed into an .msc file and digitally signed, so the Snap-in won't register. Basically I'd like an API call that will simply show the dialog and return the list of users/groups selected, however after extensive googling, registry hacking and explorer.exe debugging I've been unable to find one. Any help would be much appreciated. Thanks. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
You could save the useranames and pass' into the registry then grab them when you start the proggie.
To save the setting: Private Sub cmdsave_Click() SaveSetting (Appname,Title,Section,Setting) End Sub Private Sub Form_Load() GetSetting (Appname,Title,Section,Setting) End Sub
__________________
And there was much rejoicing... Yay.... |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
That's not the problem Cipher - the problem is interfacing with Active Directory without using an external COM component. And if anyone knows, it'd be helpful - we need this done in a couple of weeks time.
Rory, why did we volunteer for this? |
|
|
|
|
|
#4 |
|
Expert Programmer
|
I don't know. I thought it was for money, but then it turned out we weren't going to get any.
I may give up and use an input box... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|