|
I used to use PrincipalContext for authenticating my users in my 2003 domain network. My users were restricted to log on to specific stations.
After moving our servers to 2008 domain, PrincipalContext is not working and needs unrestricted access to all stations in the network. This puts a big risk on my enterprise network since everyone can log on to all stations.
I want to know if there is any another way to authenticate users against 2008 domain.
P.S. I used DirectoryEntry and it faces the same problem.
Thanks
|
|
|
|
|
I have used the code below with Server 2008 R2 and didn't have any issues. Are you doing it any different?
Dim context As ContextType = ContextType.Domain
Using p As New PrincipalContext(context, domain)
authenticated = p.ValidateCredentials(username, password, ContextOptions.Negotiate)
End Using
|
|
|
|
|
I do it the same, but when I set LogOn to for my users ,ValidateCredentials returns false. I want to use this method on my web applications but My users must have right to logon to my web server
|
|
|
|
|
Is your web server in a DMZ and unable to connect to the Active Directory server? If the web server is not in a restricted portion of your network and has access to the active directory server that method should still work.
Have you verified you are passing the correct domain name value? Just thought I'd ask since you moved from 2003 server to 2008R2 server and wasn't sure if domain name changed.
|
|
|
|
|
The domain name is correct. Webserver is not in the DMZ and it is connected to AD. This method does not work if users are restricted to logon to certain stations. Whats more, I used to query users group using DirectoryEntry and since we promoted our domain from 2003 to 2008 r2, only dmain admins can query users group.
We have not changed any policy or any setting in the AD.
|
|
|
|
|
Ok I have a better understanding now. Just out of curiousity, if the user is allowed to logon to the webserver locally does that have any effect on this method working? Or is it failing when any restriction is in place? Just wondering if server 2008 is not allowing the authentication because that web server is not one of the allowed machines for the user to log onto. (sorry I don't have my 2008 R2 setup for testing this right now)
|
|
|
|
|
you got the point. This method fails when web server is not one of the allowed machines for user to log on to.
|
|
|
|
|
Hi all,
I am using the OpenXML SDK to work with MS products in the .Net web application.
I understand that it is possible for a link in MS Excel to open another MS Excel using OpenXML SDK. Now would like to know how we can manage authentication of the new document that is opened.
For Example: In web application, say one doc is already downloaded from server to browser, and user clicks on a link in that document which connects to another doc in the server.
How this clicking on link request will be authenticated? Will that be taken care by browser or should we create a new session cookie for that and authenticate? In OpenXML is there anyway if this can be managed easily without the end user knowing how this takes place.
Please share your thoughts on the request. Thanks alot for your help!
Regards, Rijesh
|
|
|
|
|
Hello Everyone,
I am new at vb and need a little help. I need to know how to create a timed MessageBox. I am using VB 2010 Express. I have been looking in the articles and couldn't find anything for VB 2010 express.
Thanks
Ralph
|
|
|
|
|
It all depends what you mean by a timed MessageBox?
|
|
|
|
|
I'm sorry. Automaticly closes after certain a period of time.
Thanks
|
|
|
|
|
You need to use a modeless dialog[^] and provide some timer code to close it when required.
|
|
|
|
|
Richard,
I just tried it and it worked perfect.
Thank you very much,
Ralph
|
|
|
|
|
Well done, nice to know you succeeded so quickly.
|
|
|
|
|
Thanks Richard,
I already knew how to use timers and create forms. I just couldn't figure out how to do the showdialog so the thread stops and waits for the dialog to close. I try to learn 2 or 3 things a day. I am almost ready to publish my first Application.
Thanks Again
Ralph
|
|
|
|
|
I have to trigger batch file exicution for post-build event of web site.
but could not find post build event for web site..
Pls help me..
|
|
|
|
|
Open the project properties and go to the Build Events tab: it's right there.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thank you for prompt reply.
But, its website and not webapplication project..i could not find post build event for website.
|
|
|
|
|
You cannot. That's one of the difference between Website and WebApplication.
See more details here: MSDN: Introduction to Web Application Projects[^]
It clearly states: "Need to add pre-build and post-build steps during compilation: use Web Applicaiton"
|
|
|
|
|
OK.
So; Is there any workaround to execute action like copying the output folder to another location?
I have allready set the drop location but wanted to copy output folder automatically to another location in post build event.
|
|
|
|
|
aboutvb wrote: Is there any workaround to execute action like copying the output folder to another location?
Write a script of your own and run it manually?
Any other way, I cannot think of now.
|
|
|
|
|
Well, you could always convert it into a Web Application. Have a look here[^] for more details on the conversion process.
|
|
|
|
|
What version and edition of Visual Studio are you using?
There are build events in 2010. MyProject -> Compile tab -> Build Events button.
|
|
|
|
|
You don't get this in an ASP.NET web site, it has to be a web application.
|
|
|
|
|
OK, I must be missing something. Every ASP.NET project type I have (2010 Ultimate) has the Build Events button under "My Project".
What's the project template name that doesn't have it or do I have to do something different than creating a project from the tempate?
|
|
|
|