Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 14th, 2005, 2:48 PM   #1
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Old Feb 16th, 2005, 7:09 PM   #2
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
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
To Retrive the setting:
 
Private Sub Form_Load()
GetSetting (Appname,Title,Section,Setting)
End Sub
__________________
And there was much rejoicing... Yay....
Cipher is offline   Reply With Quote
Old Feb 16th, 2005, 9:20 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 17th, 2005, 7:29 PM   #4
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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...
Rory is offline   Reply With Quote
Old Feb 17th, 2005, 7:45 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Noooooo...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC