Log Into Application With Windows Network Authentication?
Jul 22, 2011
Our company runs Windows Server 2008 R2 and as part of the normal login procedure you type your username and password. IT sets the domain when you get your PC so that is all good. So, when you open IE, the intranet sight detects that you are person XXX YYY and then logs you into the site automatically as the right person.
Now is there any way that I can do the same with an application written in C# or VB.NET. I.e., I would like the user to not have to log in as they have already done so during Windows log in, and then use the application as the individual user. This is for loggin purposes and specific rights for each group.
View 1 Replies
ADVERTISEMENT
Jun 28, 2011
I have a application that prints labels on a community computer.I would like to add a Windows authentication login form to allow any of our employees to access a configuration screen.The request would bring up the login form if the login passed (meaning the username / password was correct) the configuration form would open.Otherwise the user would just get a warning Msgbox.So far all of the examples I could find either apply ASP.NET or use the logged-in user. Not for additional access as I'm trying to do.
View 7 Replies
Feb 28, 2012
I am working on a windows application and I am developing application using VB.Net. I want to create one form for Username and password and I want to create a table in database which will contain all the user details with UID and Password. So I am planning to use either Windows authentication or SQL authentication on database side for allowing user to connect database with my application But I am curious to know the best practices which are widely used across. Can anyone share the blogs,articles or your own experiences.
View 10 Replies
Apr 30, 2010
I have a VB.Net project that I am running from a local server and I need to use the credentials the user is currently logged in with to upload a file to a folder I create on a SharePoint site on the same domain. I can get it to upload if I specify the credentials but it will not work with system.net.credentialcache.defaultcredentials. It just gives me 3 empty strings and I get a 401 unauthorized error. I have seen a few threads that say you cannot use it with Windows Forms Applications. Is this true? Here is my code:
[Code]....
View 2 Replies
May 14, 2011
We have an application in Access for UI and MS Sql server as Database server. We now decided to build a new application in web application for UI. This web application is only used by the employees who work for the company. But later we decided to host this web application on outside server. So the user (from this company only.) can able to login anywhere in the world. First I thought creating the web application using 'windows' authentication thinking we may be using it as an intranet web application. But now my manager asked me to use both 'Forms' and as well as 'Windows' for using this application and this web application will be hosted on outside server. I really don't catch his point of using both types of authentication.
View 1 Replies
Jul 1, 2010
I have the following code being used, it is really useless for me as I can't get much info using it, is there any other way I can save the info when a user logs in to store it for the whole time until the program closes?
[Code]...
View 1 Replies
Sep 17, 2011
I have the following code being used, it is really useless for me as I can't get much info using it, is there any other way I can save the info when a user logs in to store it for the whole time until the program closes?
Dim user As MembershipUser
Dim identity As GenericIdentity
Dim principal As RolePrincipal
[code]....
View 1 Replies
Mar 5, 2009
i'm developing a web application. i want if user access it, it will prompt for windows authentication, if the username and password is correct, then the page appears.i've been working around on this but it's not working. my web app prompt users for windows authentication, but it always failed or access denied.anything i should check?
View 1 Replies
Nov 18, 2010
I want to use windows authentication in my vb.net application rather than validating against Database. Is there any possiblitiies or APIs that allows me to use Windows authentication? I have user id and passoword text boxes. Once user entered the userid and password, it should validate again Windows authentication.
View 1 Replies
Aug 31, 2010
i am using postgres as Database, for my application. i will deploy my database in server machine. how can i access that database through my application in client machine
View 1 Replies
Jul 16, 2009
I'm writing a program to examine logs of various servers on our network..they're not on our domain but i can map a drive to them by authenticating each time from my LP (which is on the domain)
my question is... how do i perform that same authentication with VB..
[Code]...
i'd like to either have a pop up box to auth as i would when i browse to the remote PC... OR be able to set it statically in the code (the servers all have the same admin login + password)
View 1 Replies
Jul 12, 2011
I have developed a windows application for my company. It is a multi user software and we are using sql 2008 as the database. The sql 2008 is installed in our company server. Within our LAN, there is no problem in accessing the software and its working pretty fine.
Now the problem is, some of the managers need to go out frequently(for business tour and all) and they need access to this software. The software is already installed in their laptops.Is there any way to access the database that is in our company server ???
We have few static IPs with us, is there any way i can use that here (Using NAT in the firewall or something)?
View 3 Replies
Nov 18, 2011
I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.
[Code]....
View 6 Replies
Mar 24, 2011
When I try to use Windows auth, the pop-up tells me: X website required login for Y domain.How can I hide the website name? And only show "You are required to login first" text on that pop-up?
View 2 Replies
Feb 1, 2012
I have a .NET application (mix of C# and VB.NET) where I would like to display a Windows Login Dialog box (or my own dialog box) and authenticate the user using Windows Authentication. Per requirement, I need to ask the user to authenticate after AT LEAST a minute of being idle. I would prefer a .NET native way of doing Windows Authentication but interested in other ways...
View 2 Replies
Oct 5, 2009
how to use Windows Authentication in a WPF app. I wouldn't have thought that it would be any different than in any non-WPF app, but it seems that it is. I want to go into my project Properties -> Application and ensure that Windows Authentication is on, but that option is not available in a WPF app (as the following document confirms).
[URL]
If I ignore all that and just look at My.User.Name (VB), it is empty. This tells me that somehow Windows Authentication is not enabled.My plan is to use a PrincipalPermission attribute to restrict access to certain parts of my app (or perhaps the entire app, by applying it to Application_Startup()).
View 2 Replies
Mar 11, 2010
I want to use windows authentication in my c-sharp desktop application.where I cloud use windows create new users service and allocate local storage space.
View 1 Replies
Feb 9, 2009
I am trying to implement windows authentication into a windows form project that I am creating.
View 3 Replies
Jun 13, 2011
I write a dll some time ago that authenicated with a Windows Server 2003 Domain controller. Every thing worked fine. The IS group upgraded the domain controllers to Windows Server2008 R2 this weekend, now I can not authenicat anymore. It seems to have the correct LDAP path, when I get to the function that does the check for the user name i get the following error.
?_dsEntry.NativeObject
A first chance exception of type 'System.DirectoryServices.DirectoryServicesCOMException' occurred in System.DirectoryServices.dll
{"Logon failure: unknown user name or bad password.
"}
[code]....
View 3 Replies
Jun 21, 2010
I thought I had the command correct, but I wanted to make sure since I fail to connect in my app. Here is the connection command I use:New SqlConnection("Server=TestServer;Database=MasterDB;Integrated Security=SSPI")I have verified the server name, DB name, and that the server is using windows authentication.
View 1 Replies
Feb 28, 2012
On the server, I get my current logged-in username, but from a remote client I get server name/administrator.
Below is the code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Grab username from Windows Authentication, remove the 'HHI', and assign to empName
'empname = Replace(HttpContext.Current.User.Identity.Name.ToUpper, "HHI", "")
'empname = Replace(Page.User.Identity.Name, "HHI", "")
[code]....
I've tried Application Pools with 'Network Service', with Named Accounts and setting the pipeline mode to 'Integrated' and 'Classic'. The above code works properly in Server 2003/IIS6, but I haven't been able to make it work on Windows Server 2008R2/IIS 7.5.
View 1 Replies
Jan 29, 2009
I buit a ASP page that gets the users information who is logged into the computer ie username etc. This was using IIS6 Now I've moved over to IIS7 on Server 08, I set it up to use "Widows Authentication", however when i run my ASP.NET Page it uses the account NT AUTHORITYNETWORK SERVICE to do its work.Ive looked all over online, and cant find a way to fix this.I just want to pass the user credetials from logging into the computer, to the web.I've made sure that I have this in my web.config
<authentication mode="Windows"/>
<identity impersonate="true"/>
When I run this the site from Visual Web Developer and it creates the site, it pulls back the correct information.However, when I Then to my browser and check this and it dosent pull back the correct account, it pulls back that NT account.etc. but it always seems to pass the same wrong account NT AUTHORITYNETWORK SERVICE it should be my accountname I am logged in with.
View 12 Replies
Dec 8, 2011
I have an mvc intranet application using windows authentication. It currently has one controller with three actions.
The first action (index) should be available to everyone, this is no problem. The second and the third actions should only be available to users in a specific DOMAIN. However the tag only gives me 2 options: Roles or Users. I tried using Users and setting it to 'DOMAIN*' and 'DOMAIN?' but that doesn't work.
View 3 Replies
Jul 30, 2008
Now that my application uses windows authentication to connect to the database, how will I authenticate the username and password that the user supplied? I've read about WindowsPrincipal and WindowsIdentity but still I have not found a way to do this.
View 5 Replies
Apr 6, 2009
I am reading the article at: [URL].. Forms Authentication in ASP.NET 2.0". I am using VS 2008 and .Net Framework 3.5. I don't know if this makes a difference, so please let me know.
A user logs on to our system in the morning Based on their Windows Authentication, they can access several intranet applications. For a particular application, the user has to select their Organization or Position or Location.
Based on the user's Windows Authentication, once the user selects one of the three above and clicks a "Submit" button, a second page is launched that shows certain information about the selection based on the User's authentication.
For example, if User selects Organization, the following information will be returned based on the Organization THEY are a member of. They can not access information from OTHER organizations, ONLY their own based on their login credentials. This information returned as a result of the dropdownlist selected value includes: street address, city, state, zipcode, Bus. Unit #, etc. appears in labels on the second page.
The labels can be dynamically created at runtime. (I dont know if a User control can be created to do this, since the "Position" and "Location" will contain the same address information, and it doesn't matter at the moment). I just want to populate the labels on the second page (or on Postback) based on the User's log in credentials after they click the "Submit" button. Or, if they don't have to click a button, just have the information complete based on the selected value of the dropdownlist control.
View 1 Replies
Aug 3, 2011
get user's password with windows authentication
View 5 Replies
Apr 17, 2009
i wrote a program that connect to sql server via a specify server name , user nameasswordim baby as new sqlconnection("server=baby;uid=sa;pwd=sa;database=baby")
View 3 Replies
Dec 15, 2011
I have one more question. I am connectinag to SQL Server 2008, not express, and I keep getting the "login failed for user "...""[code]
View 7 Replies
May 14, 2009
I have a database (using Microsoft SQL Server Management Studio Express) that is currently being used quite heavily in a functioning application. I am porting this application over to Windows Authentication rather than the current basic authentication system (or lack thereof) that exists.The easiest way that I know to set this up involves using the aspnet_reegsql.exe file to set up some tables for me. This obviously creates its basic tables, such as dbo.aspnet_Roles, dbo.aspnet_Users and dbo.aspnet_UsersInRoles.In the current database, there exist tables named dbo.Users, dbo.UserRole, and dbo.UserRoleMapping. Many of the stored procedures that are written currently for this database rely on these tables.
View 1 Replies
Jun 25, 2010
On windows authentication (intranet web application). When the session is about to timeout, the client should be presented with a POP-UP that asks to click OK to extend the session or else cancel to timeout the session. Which is the better way to accomplish this task. By Using Ajax Call or By handling it in the code behind file when the session (userid) is nothing.
View 1 Replies