Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2003

Tip: Looking for answers? Try searching our database.

new to interop - concept question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Bargna - 24 Sep 2003 11:40 GMT
hi

I've never really used interop an I have a question for you all.

I have an web based app which currently resets users Active Directory
passwords. The function which resets the password uses a specific
username and password to access AD and reset the passwords (thats all
this user account can do), this function is in  pagename.aspx.vb. I
think it would make more sense to wrap the function that does the
password reset into a COM object, mainly so the username and password
that has rights to reset the accounts is harder to get hold of. Does
this makes sense, is this the right way to go about things?

thanks
david dot bargna at sonyericsson dot com
Paul Clement - 24 Sep 2003 15:03 GMT
¤ hi
¤
¤ I've never really used interop an I have a question for you all.
¤
¤ I have an web based app which currently resets users Active Directory
¤ passwords. The function which resets the password uses a specific
¤ username and password to access AD and reset the passwords (thats all
¤ this user account can do), this function is in  pagename.aspx.vb. I
¤ think it would make more sense to wrap the function that does the
¤ password reset into a COM object, mainly so the username and password
¤ that has rights to reset the accounts is harder to get hold of. Does
¤ this makes sense, is this the right way to go about things?

Probably a good idea to use a component. That is what I've done using ADSI and it allows me to
re-use the code in other development environments.

If the code isn't extensive you may also want to look at the System.DirectoryServices .NET library,
which will enable you to build a native .NET component and eliminate the need for interop.

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
David Bargna - 25 Sep 2003 07:54 GMT
> ¤ hi
> ¤
[quoted text clipped - 17 lines]
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)

thanks for the info, I have built a DLL containing my code (which uses
system.directoryservices) call this from my aspx.vb and this seems to
work well

thanks
d
Paul Clement - 25 Sep 2003 13:10 GMT
¤ hi
¤
¤ I've never really used interop an I have a question for you all.
¤
¤ I have an web based app which currently resets users Active Directory
¤ passwords. The function which resets the password uses a specific
¤ username and password to access AD and reset the passwords (thats all
¤ this user account can do), this function is in  pagename.aspx.vb. I
¤ think it would make more sense to wrap the function that does the
¤ password reset into a COM object, mainly so the username and password
¤ that has rights to reset the accounts is harder to get hold of. Does
¤ this makes sense, is this the right way to go about things?
¤

Probably a good idea to use a component. That is what I've done using ADSI and it allows me to
re-use the code in other development environments.

If the code isn't extensive you may also want to look at the System.DirectoryServices .NET library,
which will enable you to build a native .NET component and eliminate the need for interop.

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.