w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Trouble Connecting to sql server Login failed. "The login is from an untrusted domain and cannot be used with Windows authentication"
Why not use a SQL Server account and pass both the user name and password? Here is the reason why. In short, it looks like you have an authentication issue. The problem with workgroups is there is no common Access Control List like Active Directory (AD). If you are using ODBC or JDBC, the wrong credentials are passed. Even if you create a local windows account (LWA) on the machine (SE) that has SQL Express installed (SELWA), the credentials that will be passed from your client machine (CM) will be CMLWA.

Categories : Sql Server

Configure New Relic in IIS to show one application per domain
Applications can be named individually in the application's web config file. This is done by adding the following to the <appSettings> element: <appSettings> <add key="NewRelic.AppName" value="my_web_app" /> <add key="NewRelic.AgentEnabled" value="true" /> </appSettings> Multiple instances of an application can report to the same name in the New Relic UI by giving each application instance the same name as shown above. Of course, you can separate applications by giving them different names. You can use this naming feature to group application instances by name as you need. Your application instances can be running on the same server, on different servers, or on a mix of these. See this page for some additional information on application naming. Note

Categories : Iis

Configure Drupal 7 using Domain Access module
Since you already can publishing in all domains and those changes are visible in all domains, I guess that you have the domains already well configured. This is, all domains pointing to the same Drupal project and using the same database. So, you have three different questions: DIFFERENTIATE THE CONTENT FROM EACH DOMAIN: Assuming that you have the domains well configured, and the domain access module is installed correctly, you can publish to a specific domain by selecting which domain to publish the Basic Page, a domain access option now available. (Be sure to test that with an user without permissions to see content from all domain - like the administrator). CHANGE CONTENT FROM A DOMAIN AND AFFECT ONLY THAT DOMAIN: If the content was published only to a specific Domain it should chang

Categories : Drupal

Configure Apache to avoid cross domain call with Dart
I'm not sure you can do this, your VHost would have to listen on 3030, not 80 as you have above to perform the proxy function which it can't do as Dart is using this port, below is an extract from a Vhost file I use to proxy from Dartium to a CouchDb server to allow a browser based couchdb client access using CORS, this may not be what you want though :- <VirtualHost *:8080> <Proxy http://141.196.22.210:5984> Order deny,allow Allow from all </Proxy> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^OPTIONS Header set Access-Control-Allow-Origin http://127.0.0.1:3030 Header set Access-Control-Allow-Credentials true Header set Access-Control-Allow-Headers Content-Type Header merge Access-Control-Allow-Headers Authorization

Categories : Apache

Configure phpMyAdmin with username and password not allows to login
There was a conflict: the phpMyAdmin configuration that says to not allow login without a password ($cfg['Servers'][$i]['AllowNoPassword']= FALSE;), but my mysql user (root) had no password so I couldn't login! So as mentioned in one of the answers here I had to set password to the root user by: # mysqladmin -u root password your-password Then restart servers and login again

Categories : Mysql

How to configure Jenkins login with google apps
You can achieve Single Sign On with Google Apps using the OpenID Plugin. It's very easy to set up, you basically install the plugin, select "Google Apps SSO (with OpenID)" and enter your domain. Note that users will have to have a google apps account to login after that. Tip: you might consider using it in combination with the Role Strategy Plugin

Categories : Google App Engine

How to configure SSH login with key pairs for a Linux VM using azure-sdk-for-python?
The SERVICE_CERT_THUMBPRINT is of the pem file whose pfx file you have to upload using add_service_certificate method. You can generate a fresh set of keys using the following: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mycert.key -out mycert.pem This will generate the key file and the pem file openssl pkcs12 -export -in mycert.pem -inkey mycert.key -out mycert.pfx This will generate the pfx file Upload the pfx file next cert_data_path = "/home/swati/keys/mycert.pfx" with open(cert_data_path, "rb") as bfile: cert_data = base64.b64encode(bfile.read()) cert_format = 'pfx' cert_password = '' cert_res = sms.add_service_certificate(service_name='qubolecloud', data=cert_data, certificate_format=cert_form

Categories : Python

How to configure IIS/web.config for Smart card login option (SITHS) and SSL
I'll add how I solved it since there was no other input: In IIS I bound the (SSL) VeriSign cert to the entire site I imported the CA certificate(s) for (smart card) authentication to the certificate store I added the IIS option "Require SSL" to a specific view for smart card login By just doing these steps I have an SSL-encrypted site (https) and a view that requires, in my case, smart card login. In the code I added a ActionFilter (IAuthorizationFilter) that interprets the certificate and checks for validity (etc.) and then tries to perform a login against users mapped in the database (to the certificate serialnumber) Registered the ActionFilter in global.asax (Application_Start) This solution, together with the normal FormsAuthentication, now works perfectly hand-in-hand.

Categories : Asp Net Mvc

Jquery cross domain login with PHP sessions
Are the two domain running on the same server and Apache+PHP stack? In that case, you just need to set the cookies for .example.com instead of www.example.com (the default). The session data is stored on the same server, so the session can be shared. <?php ini_set('session.cookie_domain', '.example.com'); session_start(); ... You can take a look at this answer Sharing php Session ($_SESSION) across multiple domain For JS side, since cross-domain ajax is not allowed. I suggest using a <form>element, specify a redirect parameter, so that your login script (login.php) can redirect the user back to the right place after login. (you also need to add code in login.php to handle the redirect) <form id="loginForm" action="http://www.example.com/script/login.php" method="post">

Categories : PHP

Silent login to Redmine upon entering to domain
Yes, it is possible. In the file httpd.conf need to add - LoadModule sspi_auth_module modules/mod_auth_sspi.so then - ... <Location /redmine> Options +FollowSymLinks +SymLinksIfOwnerMatch Order allow,deny Allow from all RewriteEngine On RewriteCond %{IS_SUBREQ} ^false$ RewriteCond %{LA-U:REMOTE_USER} (.+) RewriteRule . - [E=RU:%1] RequestHeader add X_REMOTE_USER_2013 %{RU}e AuthName "Redmine Authentication" AuthType SSPI SSPIAuth On SSPIAuthoritative On SSPIOmitDomain On SSPIUsernameCase lower require valid-user </Location> ... After this need to change file application_controller.rb, add to it - ... elsif (f

Categories : Ruby

Prompt Login for Domain Users to Access Form
This is not a problem with App Script. However, if the user is not granted access to the form they will see a page telling them this is the case and allowing then to sign in with a different account. See screenshot below. http://i.stack.imgur.com/FhQe0.png

Categories : Google Apps Script

How to handle error when login with different domain in windows authentication?
In IIS, make sure anonymous access is not selected, only integrated windows authentication needs to be selected. Also I assume you mentioned authentication and authorization tags under <system.web> section.

Categories : C#

Internet Explorer Cross Domain Iframe Login
When you say "elements of the site will not work" what precisely does that mean? "Cross-domain" interactions have always been restricted in all browsers. This is called "same-origin-policy" and it's the foundation of web security. The "update" to Internet Explorer you're referring to restricts IE such that a webpage on Domain A can no longer navigate a subframe that is inside a page from Domain B. That restriction has been present in IE for 7+ years and is in all browsers. This restriction is not causing your problem. This most likely problem here is that the subframe fails to set a P3P header that would permit its cookies to be stored. There are perhaps 30 duplicates on that issue on StackOverflow. To determine if this is what you're encountering, try this: In IE, click Tools > Inter

Categories : Security

Sencha Touch 2 & Spring Security cross-domain login
You can use requestcomplete & beforerequest events to read response headers and to write request headers respectively. Here is sample code : Ext.Ajax.on('requestcomplete', function(conn, response, options, eOpts){ var respObj = Ext.JSON.decode(response.responseText); Helper.setSessionId(options.headers['JSESSIONID']); }, this); Ext.Ajax.on('beforerequest', function(conn, options, eOptions){ options.headers['JSESSIONID'] = Helper.getSessionId(); }, this);

Categories : Spring

Is possible not configure Google App Engine custom domain without paying for Google Apps?
From http://stackoverflow.com/a/23006209/8137: I just discovered today (as of 2014-04-11) a new custom domain settings page is available from Google Developers Console: Go to https://console.developers.google.com/project Click on your project On the left click "App Engine" Click "Settings" There you go! You can configure custom domain without the need of Google App account!

Categories : Google App Engine

Adding functions to a webpage where visibility is restricted by your domain login/role
Well the answer isnt horribly complicated, just depends on how you want to implement it. (I am assuming you're using MVC due to how some of this is implemented and to how you have this tagged) In the controller you would need to determine if the user is logged in and that data. Ok, lets say you have that public ActionResult LoadUserData(){ var model = new LoadUserDataModel(); // code here to populate your model var isUserAuthenticated = MethodToFigureOutIfUserIsAuthenticated(); // returns bool ViewBag.isUserAuthenticated = isUserAuthenticated; // I don't like using the ViewBag so you can add this to the model if you wish. return View(model); } Not gonna lie, to those experts out there looking at this they might be freaking out a bit. I understand. A m

Categories : C#

Allowing users to view parts of webpage based on their Windows domain login
Simon, You tag the question with asp.net-mvc, so I will give a quick example based on that. In your controller you can decorate either the entire controller, or just the action with the Authorize attribute. This means that you can explicity allow only users within certain Roles to have access to the function. By way of a quick example: [Authorize(Roles = "AdminRole, CreditAdvisorRole")] public ActionResult Edit() { var viewModel = _shopService.ShopIndex(); return View(viewModel); } So, that example would only allow users defined in the roles of "AdminRole" and "CreditAdvisorRole" to access the functionality. This of course is inbuilt behaviour and at some point, you will hit the limitations of this approach. At this point, then you can move on and create your own overrides o

Categories : C#

.htaccess domain directory does not resolve domain.com/domain properly
Replace your code with this code: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{DOCUMENT_ROOT}/$1 !-f RewriteCond %{DOCUMENT_ROOT}/$1 !-d RewriteCond %{HTTP_HOST} ^(www.)?bar.com$ [NC] RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+bar[?/s] [NC] RewriteRule ^(.*)$ - [L,R=404] RewriteCond %{HTTP_HOST} ^(www.)?bar.com$ [NC] RewriteCond %{ENV:REDIRECT_STATUS} !200 RewriteRule ^bar(/.*|)$ /bar/bar$1 [L] RewriteCond %{HTTP_HOST} ^(www.)?bar.com$ [NC] RewriteCond %{ENV:REDIRECT_STATUS} !200 RewriteRule ^(.*)$ /bar/$1 [L]

Categories : Apache

convert java domain model from domain A to domain B
You may want to look at DOZER. The lib will allow wildcard transformation of fields (if they share the same name) and also permit custom converter.

Categories : Java

TFS 2012 Configure Features Error - Unable to configure Planning Tools
Try this: Rename your User Story to "Product Backlog Item". Set the Initial State of you "Bug" to "Active". Try the Upgrade Rename your User Story Type back to "User Story". Remove the "Active" Initial State. Export your Common Process Config and add in your "Proposed" State into the Bug Configuration (see below). Import your Common Process Config. Example BugWorkItems <BugWorkItems category="Microsoft.BugCategory"> <States> <State type="Proposed" value="Proposed" /> <!-- more --> </States> </BugWorkItems>

Categories : Tfs

Any way configure to configure visual studio mvc build views release mode
Are you specifically setting something to compile the views like the Razor Generator? (http://razorgenerator.codeplex.com/) If not views in MVC are not compiled.

Categories : Asp Net Mvc

Pointing domain at seperate sub-domain & domain
This comes down to the provider's definition of "web forwarding", which is a vague marketing term. It sounds like they're just doing a straight redirection unfortunately, which no amount of playing with .htaccess files can fix: you simply cannot make a website tell the browser to stick another domain name in its address bar. What I'd suggest is talking to them and see if they can do a CNAME for www.domain1.com to subdomain.domain2.com, or switch to it using the same IP address instead. You will then need to set up your Wordpress install to respond to "www.domain1.com" requests.

Categories : Wordpress

Domain driven design: overriding virtual methods in Domain classes
Person.UpdateAddress should definitely be in your domain, not in your Repository. UpdateAddress is logic and you should try to avoid logic inside your repository. If you're working with Entity framework there is no need for 'data classes'.

Categories : Entity Framework

How to display sub domain posts in main domain home page on wordpress?
Try adding this to an appropriate place in your .htaccess file located in Root folder of your site : RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+).domain.com$ [NC] RewriteRule ^ http://domain.com/ [L,R] To exclude www subdomain , www.domain.com, add this line before the RewriteRule: RewriteCond %{HTTP_HOST} !^www.mydomain.com$ [NC]

Categories : PHP

Redirect all traffic to from external domain to local domain homepage?
See this answer You must use modrewrite of apache: RewriteEngine On RewriteCond %{HTTP_REFERER} !^mydomain.co.uk$ [N]

Categories : Apache

Weird thing going on with domain. if Entered without www.domain.com, goes to wrong host
Contact your old nameserver provider and tell him to remove the domain from his parkings OR create an index.html on your old host like this: <meta http-equiv="Refresh" content="0; url=http://www.zipdaturl.com/">

Categories : PHP

Cross domain error even when ajax called made from same domain
Have you tried setting alternate HTTP header values when your service returns data: Access-Control-Allow-Origin:* Access-Control-Allow-Headers:"Content-Type, X-Requested-With, X-Auth-Token" This worked for us when trying to make REST calls to services under different sub-domains. You don't have to make Access-Control-Allow-Origin: * you can probably be more restrictive. But we tried this just to check if it will work. Just to clarify - we still use json and not jsonp

Categories : Jquery

.htaccess rule for domain.com to www.domain.com/index.php OR domain.com/index.php to www.domain.com/index.php
RewriteEngine on RewriteCond %{HTTP_HOST} !^www.domain.com RewriteCond %{HTTP_HOST} !^domain.com RewriteRule ^$ /index.php [QSA,L] RewriteRule ^file.php /file.php [L]

Categories : Htaccess

How to Test ASP Application on Domain when Development Environment isn't on Domain?
We did few large deployments of AD with asp.net applications with automatic account provisioning and 50k+ users and the idea was always to abstract the user backstore and have at least two or three implementations: inmemory repository injected into upper layer services for unit testing them database implementation convenient for developers as it is persistent, doesn't vanish on restarts actual ad implementation tested separately in two different testing environments but not directly by developers (devs use the database repository) Having the logic which relies on abstraction and is conveniently tested with the inmemory repository and then having the ad repository tested separately allows us to just compose these two on the production site.

Categories : Asp Net

Powershell - Remove Domain.com/OU/ from Domain.com/OU/GivenName Surname
You can use the Split-Path cmdlet to get the name only: Split-Path 'Domain.com/OU/GivenName Surname' -Leaf I would also try to get the name by checking if Identity has a Name property: $obj.Identity.Name

Categories : Powershell

Redirect any sub-domain to main domain by editing DNS Record
The CNAME is what you're looking for, although there is another alternative, you can create a .htaccess file that you'd put in the root of the subdomain containing : Redirect 301 / http://www.domain.com I don't know how this can work on IIS, I highly doubt it supports .htaccess files, but my guess is that you can do this with ISAPI filters.

Categories : Asp Net

Node.js - Domain per Express request, inside another domain
Ok, solved - Express has a try/catch block, which is getting to my non-existent function call first. To have the domain catch it, it needs to be taken out of the current call stack, like... process.nextTick(function() { this_function_does_not_exist(); res.end('we will never get here'); }); THEN the domain will grab it.

Categories : Javascript

Ajax Cross domain request to non-controlled domain
See Ways to circumvent the same-origin policy. None of them will meet your requirements. Preventing Mallory's site from using Alice's site with Bob's credentials (such as his IP address) is the point of the Same Origin Policy. There is no way around this for a web application. Since it's an internal application If it is an internal application, then you could look at using a browser extension to access the data. They have less restrictive security policies as they have to be explicitly installed.

Categories : Javascript

making my site show mysite.com/login/ instead of mysite/login.php?action=login&var=1234
Put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / # specific rule to handle these URLs RewriteRule ^login/?$ /login.php [L,NC] RewriteRule ^index/?$ /index.php [L,NC] # OR a generic once to forward all /foo to /foo.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/$1.php -f RewriteRule ^(.+?)/?$ /$1.php [L]

Categories : Apache

Why does my website automaticly redirects to domain.com instead of www.domain.com
That is done by wordpress not .htaccess Go to your wordpress DB and look for the table wp_options. Within it would be an option called siteurl & home change those to http://www.domain.com Now you will be redirected as you wish Hope it helps

Categories : Wordpress

Get file contents of a domain in another domain in the same server
Glob needs file-access. But since it is on another domain. It doesn't get file-access (and it shouldn't). Even if they are on the same server, they shouldn't be able to access each others files for so many reasons. What you can do is write a small API on domain1.com that returns a list of images for a certain user. You then access that information using for isntance curl on domain1.com where the pictures are stored: <?php //get the user id from the request $user_id = $_GET['user_id']; $pathToImageFolder = 'path_to_pictures' . $user_id ; $images = glob($pathToImageFolder.'/*.{jpg,jpeg,png,gif}', GLOB_BRACE); //return a JSON array of images print json_encode($images,true); #the true forces it to be an array on domain2.com: <?php //retrieve the pictures $picturesJSON = file_get_

Categories : PHP

Google Tracking between a domain and a subdomain on a different domain
By default, Google Analytics creates a new visitor ID for each domain (or subdomain). What you want to do is "tell" Google Analytics to keep the same visitor ID when a visitor goes from one domain to another, e.g. from example.com to example.another-domain.com The "Multiple Domains and Sub-Domains" scenario is the one to follow. https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#multipleDomains

Categories : Google Analytics

Redirect sub domain to another sub domain with the same sub folder structure
Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^games.domain.com$ [NC] RewriteRule ^(data(?:/.*|))$ http://games.domain.net/$1 [L,R=301,NC]

Categories : Htaccess

Point a domain to a URI of an IIS 7 website without changing the domain
In your question, you state that main.mydomain.com and hub.mydomain.com are binded to a single website. So if you want the users who hit hub.mydomain.com to be shown with the content from http://main.mydomain.com/hub/home.html, it is equivalent to have them hit hub.mydomain.com and be shwon the content from http://hub.mydomain.com/hub/home.html. You rule would then go as: <rule name="hub rewrite"> <match url="^/?$" /> <conditions> <add input="{HTTP_HOST}" pattern="^hub.mydomain.com$" /> </conditions> <action type="Rewrite" url="hub/home.html" /> </rule>

Categories : Iis

Typo3 redirect domain with prefix to another domain
RewriteEngine On RewriteCond %{HTTP_HOST} ^bli.bla.com$ [NC] RewriteRule ^(.*)$ http://bla.bli.com/$1 [R=301,L] or RewriteCond %{HTTP_HOST} ^www1.bla.com$ RewriteRule (.*)$ http://www5.bla.com/$1 [R=301,L] This example works 100% if implementet right. (TYPO3 .htaccess: "# Add your own rules here.") Maybe you should delete Cooluri or Realurl Cached links.

Categories : Htaccess



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.