I want to develope ranking service in my website in which every user (not registred users) can increase/decrease a subject rank through the page. Due to anonymous users can change rankings, I desire to achieve client MAC address in order to perevent some malicious activities and deliberately invalid increment/decrements.
I want to get country name from ip address in asp.net using web service. I used 2 web services [URL] and [URL] but they are not fulfilling my requirement. if my ip address is 212.76.87.27 then it is ok. but if my ip address is 31.167.42.94 then giving me error. I think these web services have not updated Ip address record. Any webservice which has updated ip address record and can return the country name correctly without error.
i have a asp.net web with vb code and sql database. i am willing to store the details of the users as ip,computer name and time of using the web is it possible.
guess it's straightforward. On page load, i wanna check the group of which a particular belong to. Say, someADNameeckham belongs to Account. In that case, I only wanna get "Account". But I have no idea how to get the group name of a particular user belong to. It's for LAN web portal so I guess security is not a very big concern here.
i have an aspx page which on page load needs to populate a text box with the current users email address (user is in Active Directory), any body know how to retrieve the email address from Active Directory, i have read this article on the web but am a bit confused
string userName = Environment.UserName; string domainName = Environment.UserDomainName; //Set the correct format for the AD query and filter string ldapQueryFormat = @"LDAP://{0}.com/DC={0},DC=com"; string queryFilterFormat = @"(&(samAccountName={0})(objectCategory=person)(objectClass=user))"; SearchResult result = null; using(DirectoryEntry root = newDirectoryEntry(rootQuery)) { using(DirectorySearcher searcher = new DirectorySearcher(root)) { searcher.Filter = searchFilter; SearchResultCollection results = searcher.FindAll(); result = (results.Count != 0) ? results[0] : null; } } string primaryEmail = result.Properties["mail"][0] as string;
There is no defintion of rootQuery- so not sure what that is, or a definition for searchFilter
I have an application where in the User Authentication is from the AD useing Directory services.
If i type in the address of a valid page from the application into the Address Bar, it throws me to the Login Page.
However if i am logged in and i type in the address of a valid webpage, the application takes me to the page. Is there any way that this can be restricted.
If i type in the URL into the address bar the application should throw me to the Home page of the application.
we have one e-commece website which combine one ip address and 4 domains, I want apply for one ssl certificate bind ip for this site, is it possible to be used for 4 domains? is it possible to apply for certificate for ip address?
In my update Membership account routine, I have the sub:
[Code]....
This sub runs successfully and everything is updated, including the membership question and answer, except the membership.getuser.email address which is not updated.
I have a create user wizard on my page. Requires Security question hasbeen set to false. Once a new user is registered they can log in fine. If they forget their password, i have written code so that the user can enter the email address they used to register and a replacement is sent. The problem is I have written an application that is accessed by different people. So if the user that registered the account leaves the company
How do I give user's the ability to sign in using either their username or email address? How do I implement profile URLS so that domain.com/username Server.Transfers to ViewProfile.aspx?userID=342 How do I implement a multi-domain auth system for a single web app so that users can create the same username at different domains?
I created a website and i restrired the website such a way that i can be acessed from a IP i configured.I did this as shown in below steps which i got from:
http://support.microsoft.com/kb/324274
Under IP Address and Domain Name Restrictions, click Edit.
Do one of the following:To deny access, click Granted Access, and then click Add. In the Deny Access On dialog box that appears, specify the option that you want, and then click OK.The computer, group of computers, or domain that you specified is added to the list. To grant access, click Denied Access, and then click Add. In the Grant Access On dialog box that appears, select the option that you want, and then click OK.
The computer, group of computers, or domain that you selected is added to the list. Click OK.
But its not working . I am able to browse from other machine which have a different ohter IP. Do i have to configure somewhere else ?
For some reason, I changed something today while installing an instance of SQL Server. And now if I try to use the i.p. address of the machine instead of the name of the machine in DATASource of my sqlconnection string, I get an error. It worked fine before.Also, what exactly is "networkService" as an option for security when creating an instance of SQl Server?
is there any java script that i can put it on my master page and block specific I.P address ? And navigate the user visiting from that blocked I.P address to a different page ?