intranet

Authenticate against ldap using PHP, active directory, while using IE/Firefox

白昼怎懂夜的黑 提交于 2019-12-04 06:31:58
This code below checks for the user's credentials against ldap <?php $ldaphost = "ldap.domain.com"; $ldapport = 389; $ds = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); if ($ds) { $username = "johndoe@domain.com"; $upasswd = "pass"; $ldapbind = ldap_bind($ds, $username, $upasswd); if ($ldapbind) {print "Congratulations! $username is authenticated.";} else {print "Access Denied!";} } ?> My users use Firefox and IE, and I know that can pass their ActiveDirectory credentials seamlessly. I just want to check the AD group to see if that username is found in there, if

Python (CherryPy) web app deployed locally, but not visible over intranet

ぐ巨炮叔叔 提交于 2019-12-03 23:55:27
I've created a Python web app using CherryPy, and have deployed in on my local machine. When I try to view it from another computer in the house, nothing comes back. However, if I create a simple html file, and deploy it with: $ python -m SimpleHTTPServer It is visible over the intranet. I'm stumped as to why my app could work locally, but not be avalable over the intranet, given that there is not a connection problem between these machines, and that I can serve other content on the same port. I have not used a configuration file, I'm using the default CherryPy settings. The default settings

OAuth on a webapp behind a firewall — is it possible?

天涯浪子 提交于 2019-12-03 14:15:28
I'm trying to construct a webapp to add events to an employee's google calendar and would like to use OAuth for authentication. However, my webapp is forced to be on an intranet behind a firewall; the server has outbound internet access, but blocks in-bound access if you aren't on the intranet or VPNing into the intranet. I'm reading up on OAuth, but can't figure out if part of the authentication-handshaking process would be blocked by my firewall. (And I'd like to know if its possible before spending time to implement if it isn't possible; and know so if I run into errors I can debug them).

why compatibility mode for intranet sites

人盡茶涼 提交于 2019-12-03 10:45:13
I'm a Mac person, web designer, trying to understand "Display intranet sites in compatibility mode" option with IE 11 I have client, an architecture firm, that used to host their OLD website (HTML site I didn't develop) in-house on their Windows server. When the Wordpress site I recently launched for them is hosted on a Ubuntu server in house. The problem is several months after we go live one guy in the office when viewing with IE is seeing their portfolio pages display thumbnail images stacking vertically vs horizontally. When they turn Display intranet sites in compatibility mode off the

Lock web app only work for intranet

霸气de小男生 提交于 2019-12-03 09:01:38
some week in the future i will have job to create php web app that will work as billing process. As the client and my team agree upon, the web app will only deploy in their internal server. This need arose some fundamental questions for myself. how do we lock the web app really really will work only in internal server and not in internet as it asked ? cause this need, the cost for the job have been cut into some degree. so it will be best if it only work as client describe it : it will be deploy in intranet an intranet only What is the pro and cons deploy php application only (with all of its

Configure Firefox 3.0.x to authenticate with Kerberos and not prompt

≯℡__Kan透↙ 提交于 2019-12-03 08:18:14
I have an Intranet http application running on several machines in our Windows domain; everything works when using IE 7 because I can configure it to use Kerberos authentication and I've figured out how to get one of the intermediate machines to be Trusted for Delegation. I have researched and tried to get Firefox 3.0.10 to use Kerberos: navigate to about:config filter to network.negotiate update network.negotiate-auth.delegation-uris and network.negotiate-auth.trusted-uris with the following entries(separated by comma): http://jupiter2000/trimbrokerclient,http://johnxp/fileservicedemo I have

Distinguish the between intranet and official IP addresses

不问归期 提交于 2019-12-03 03:36:05
How can I find out whether a given IP address is an official internet address or an internal intranet IP address? Intranet IP's are often in the private IP range: 10.0.0.0 through 10.255.255.255 172.16.0.0 through 172.31.255.255 192.168.0.0 through 192.168.255.255 These are not usable for internet IP addresses. See also http://compnetworking.about.com/od/workingwithipaddresses/f/privateipaddr.htm 10.0.0.0 - 10.255.255.255` (10.0.0.0/8, former Class A) 172.16.0.0 - 172.31.255.255` (172.16.0.0/12, former Class B) 192.168.0.0 - 192.168.255.255` (192.168.0.0/24, former Class C) Founding out that

MVC 4 Intranet Authentication with Custom Roles

谁都会走 提交于 2019-12-02 18:45:35
I have spent some time searching and found a lot of confusing answers, so I will post here for clarification. I am using MVC4 VS2012 created an Intranet site using domain authentication. Everything works. However, to manage the users that have access to different areas of this webapp I prefer not to use AD groups that I cannot manage and nor can the users of the webapp. Is there an alternative? I assume this would involve associating/storing domain names belonging to custom roles and using the Authorize attribute to control access. [Authorize(Roles = "Managers")] Can anyone suggest the best

How do I display protected Amazon S3 images on my secure site using PHP?

不问归期 提交于 2019-12-02 16:17:31
I am trying to move images for my site from my host to Amazon S3 cloud hosting. These images are of client work sites and cannot be publicly available. I would like them to be displayed on my site preferably by using the PHP SDK available from Amazon. So far I have been able to script for the conversion so that I look up records in my database, grab the file path, name it appropriately, and send it to Amazon. //upload to s3 $s3->create_object($bucket, $folder.$file_name_new, array( 'fileUpload' => $file_temp, 'acl' => AmazonS3::ACL_PRIVATE, //access denied, grantee only own //'acl' => AmazonS3

How do I allow Windows Authentication in ASP.NET MVC4 application with multiple domains?

不羁的心 提交于 2019-12-02 00:19:45
Two questions regarding Windows Auth in MVC4 application: How to I set it up so I can authenticate against two windows domains? What I am trying to do: [Authorize(Roles = @"DOMAINONE\Group Name")] public class HomeController : Controller { public ActionResult Index() { return View(); } ... } And the other domain: [Authorize(Roles = @"DOMAINTWO\Group Name")] public class StaffController : Controller { public ActionResult Index() { return View(); } ... } Is there a way to make to login screen an form on a page, rather than the pop-up window asking for a username/password? May be you would like