w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to set up local repo to have different root directory than remote "upstream" directory of an open source project?
Broadly speaking, No. Git does not allow you to have two different view of the same repository that have different directory structures. Solution 1: Ignore git altogether for uploading That said, I think you don't need this anyway. If your webhost provides public_html, why not just scp the files you want to the location you want? You could make this a task in a Makefile/Rakefile/whatever and then run it from your local machine when you want to upload, for example, a makefile task could look like: upload: scp -r ./upload/* me@myhost:/home/me/public_html/ .PHONY: upload Solution 2: link into your git directory on your webhost Instead of manually uploading your files, simply link your public_html directory to your upload directory in your git repository on your server. For example:

Categories : GIT

C# Active Directory authentication
I am not sure I understand AngularJS angle. If I had a regular WCF service I would use WindowsIdentity from ServiceSecurityContext.Current. http://msdn.microsoft.com/en-us/library/system.servicemodel.servicesecuritycontext.aspx ServiceSecurityContext securityContext = ServiceSecurityContext.Current; if (securityContext == null) throw new Exception("Failed to retrieve Service Security Context"); WindowsIdentity identity = securityContext.WindowsIdentity; currentUser.name = identity.Name

Categories : C#

Active Directory Authentication failed asp.net
Authentication with active directory means windows authentication, so first of all, you need to set <authentication mode="Windows"> instead of <authentication mode="Forms">

Categories : Asp Net

MVC2 Active Directory Authentication
I think the solution is in the Authentication type. Originally, I was using the following: IIS Authentication Anonymous: Disabled ASP.NET Impersonation: Disabled Forms: Enabled Windows: Disabled And in my Web.config file I was using Forms authentication. Apparently for Active Directory authentication, the type has to be Windows. Original: <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> Revised: <authentication mode="Windows" /> <authorization> <deny users="?" /> </authorization> I know this worked, but since I'm new to MVC, I could still be missing something.

Categories : Asp Net Mvc

Jetty - JAAS and Active Directory - Authentication Only?
Your authentication is successful. Since you want to allow all authenticated users to access everything, you still need to protect the URL pattern /* as you are doing. You can use the RegExpAuthorizationFilter (see https://wiki.apache.org/solr/SolrSecurity). Now, they don't include this class in the regular distribution. I found the code here (https://issues.apache.org/jira/secure/attachment/12572819/SOLR-4470_branch_4x_r1454444.patch) and it compiled easily. When you configure the filter, specify one arbitrary (non-existent, like /abcde) URL pattern with any role. The way it works is that it will see if the URL being requested matches this pattern. Since it doesn't, it moves forward. But there are no more rules, and access is allowed. So it requires authentication for all URLs but al

Categories : Java

Authentication against Active Directory using a Mobile Device
Take a look at the BUILD 2013 videos. Visual Studio 2013 will create a webproject that will automagically do all that for you (I think). Just bare in mind, it uses the Microsoft.OWin.Security beta packages. Also...you will need to install the AspNetWebTools2013 package first... http://www.asp.net/visual-studio/overview/2013/creating-web-projects-in-visual-studio#orgauthoptions

Categories : Vb.Net

NTLM Authentication with Active Directory using Java
In the following thread they put the Tomcat behind an Apache Server and use an Apache Module to perform the NTLM authentication. Spring 3 and NTLM authentication

Categories : Java

Active Directory authentication through ssl as anonymous user
I did some research and found other applications having similar issues. 1. Make sure you have imported your certificates into the keystore according to the Connect to LDAP or Other Services Via SSL instructions. 2. Make sure any certificates have been imported into the correct keystore; you may have multiple JDKs.

Categories : Java

Active Directory Authentication using Client Certificate in ASP.NET MVC
This should work out of the box with no code. First, turn off anonymous access and basic authentication for the website and turn on integrated windows authentication and certificate integration. Then, in your asp.net application, set the auth mode to windows. Then, turn on SSL for the website and check the option "require client certificate". http://technet.microsoft.com/pl-pl/library/cc753983%28v=ws.10%29.aspx From now on, when the browser supports certificate integrated authentication and the client machine has the certificate either in the user store (IE) or in the browser store (other browsers), the browser will automatically ask the user to pick up the certificate. My advice is to start with integrated windows authentication over SSL but without certificates (do not check "Requ

Categories : C#

Login Authentication using Active Directory in the Intranet...Possible?
Check this Post It uses Active Directory to authenticate site members on Intranet.

Categories : C#

Drupal 7 and LDAP authentication with Active Directory
Your problem is the baseDN apparently. on the first error, the authentication fails (login or password are wrong). As to the second one, there is some other problem in your configuration. Have you checked everything? Enabled the ports in iptables? Because it seems to fail when it tries to contact with the server (bind_method; Authentication Server or Configuration Error). I hope this helps at least to clarify the situation a little bit :)

Categories : Drupal

c# Active Directory Authentication User if Computer not in domain
I've tried this one. The computer now i'm using is not in domain. try { DirectoryContext context = new DirectoryContext(DirectoryContextType.DirectoryServer, "IP", "Username", "Password"); DirectoryEntry deDoc = Domain.GetDomain(context).GetDirectoryEntry(); } catch (Exception ex) { MessageBox.Show(ex.Message); }

Categories : C#

Windows azure active directory authentication in android?
I was looking for the same thing. I found this website from Mircorsoft which has steps to add in authentication to your Android app. https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-android/ This link starts the intro to Mobile services for Android https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-android/

Categories : Android

ASP.NET MVC4 application using Angular.JS Active Directory Authentication
Figured it out. Made a new web api controller then added this function public string getUser() { return User.Identity.Name; } haha that was easy. However if anyone sees any errors i may run into doing it this way. Please point em out

Categories : C#

Tomcat 6 - authentication through active directory with encrypted password
I think your only alternative is to subclass JNDIRealm and make a new attribute that will have some sort of encrypted connection password. The password can't be hashed (with, e.g. MD5 as you specify) because hashes are one-way--there's no undoing a hash--and Tomcat needs the password in its original unhashed form to authenticate against the AD installation. If you use a reversible encryption in your JNDIRealm subclass, then when Tomcat needs the password you can decrypt the password and pass it along.

Categories : Authentication

Rails app local and remote authentication with Devise ( 2 strategies )
To use a strategy, refer to it via the label that it was given when it was declared. eg. env['warden'].authenticate(:password) To use the :password strategy. You can use multiple strategies, and each one will be tried in order until either one is halted or none have been. env['warden'].authenticate(:password, :basic) This will use the :password, and failing that, the :basic strategies.

Categories : Ruby On Rails

AccountController not redirecting to the correct page when using Active Directory authentication
Before you redirect to action, issue a FormsAuthentication.SetAuthCookie. This should override the default behaviour of the return URL: Its also worth noting that the bool in SetAuthCookie(string username, bool createPersistantCookie) can be used to remember the user. For this example I have set it to false. try{ LDAPAuth.LDAPQuery(model); FormsAuthentication.SetAuthCookie(model.UserName, false); return RedirectToAction("Homepage", "HomePage"); }

Categories : Asp Net Mvc

how to get access token after windows azure active directory authentication
You can use this code to access the security token that was used: ClaimsPrincipal cp = ClaimsPrincipal.Current; ClaimsIdentity ci = cp.Identity as ClaimsIdentity; BootstrapContext bc = ci.BootstrapContext as BootstrapContext; SecurityToken securityToken = bc.SecurityToken; You also need to set the saveBootstrapContext attribute in your config file: <system.identityModel> <identityConfiguration saveBootstrapContext="true"> ... </system.identityModel>

Categories : Azure

Using Active Directory to login using a local user
This is all that the Websecurity.Login method does: public static bool Login(string userName, string password, bool persistCookie = false) { WebSecurity.VerifyProvider(); bool flag = Membership.ValidateUser(userName, password); if (flag) { FormsAuthentication.SetAuthCookie(userName, persistCookie); } return flag; } You can write your own method that authenticates against AD and then looks up the user name and the does sets the auth cookie something like: public static bool MyLogin(string userName, string password, bool persistCookie = false) { bool flag = CheckADUser(userName, password); if (flag) { string mappedUsername = GetMappedUser(userName); if(mappedUsername != "") { FormsAuthentication.SetAuthCooki

Categories : C#

Windows Azure Active Directory slow authentication on mobile devices
David, Is it correct that your site is using wsfed and redirects to AAD where the client enters creds? Do you notice where the slowdown occurs, is it before the user enters cred (if they do) or after? Brent.

Categories : Azure

Windows Azure Active Directory Authentication - Visual Studio 2012 tools
I think this might be the download URL you're looking for - http://visualstudiogallery.msdn.microsoft.com/e21bf653-dfe1-4d81-b3d3-795cb104066e

Categories : C#

Determine User Active Directory Groups from Local Machine off Network
From the top: My current project requires that I validate a user against Active Directory groups. The catch is, the computer may not always be connected to the domain but users may still need to run the tool. At this point, you must therefore accept that any enforced security is able to be bypassed by an attacker since it is entirely enforced on the client. Not exactly part of the solution, but keep it in mind. I understand that I can't query Active Directory while I'm not connected, instead I'm trying to query the Machine SAM (MSAM). The Security Accounts Manager only stores the local accounts (MACHINENAMEAdministrator and others). It will not have domain user credentials. You are thinking of the LSA cache, which remembers the last N domain logins's credentials (where

Categories : C#

Git: How to check whether local branch is ahead of remote branch when working directory is modified?
This is the purpose of the staging tree. You can stage the work you want to commit and then send to the repo as followed: git add path/to/your/file.php This will stage a file so that it will then be stored in the staging tree (separate from your committed work or your uncommited work), then future git status calls will show you the work you have staged as separate from the work you have uncommitted. This is standard practice in git and lets you keep track of what you are going to commit. Staging is a method for allowing selective commits, but it should server your purposes. Here is a link that better explains the staging area: http://git-scm.com/book/ch1-3.html

Categories : GIT

Local Wordpress install with Remote Database. Error: Remote DB Appears to be already installed
Did you include 'http://' in your URL? Refer : http://wordpress.org/support/topic/you-appear-to-have-already-installed-wordpress-1 Thanks.

Categories : Wordpress

Can I migrate remote SVN to local disk without exporting dmp files on remote server?
You can dump only latest revision range with the -r switch. svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas] and then you can load this increment in the new repository. Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html Example: http://www.vioan.ro/wp/2007/07/31/dumprestore-for-subversion-repository/

Categories : Svn

libevent with non blocking sockets: If the remote peer sends RST *while* send on local is executed, will local get EV_READ also
Scenario A : Application is waiting for an event. It gets a FIN from remote, EV_READ event is >generated, application does a read(or recv) and gets 0 Yes - that's right. Scenario B: Application is sending data. It gets a FIN from remote while the send is being >executed. Will the application get an EPIPE (I think so). Will there also be an EV_READ event >generated for the same FIN for which the application gets an EPIPE Yes, there will be an EV_READ event generated. (ofcourse provided you didn't close() the socket in the mean time). However you're not getting an error on write in this very particular case. When you get a FIN from the peer end, the TCP connection is only half closed. The incoming FIN simply means "I've nothing more to send". But you can send it more data. Or yo

Categories : Sockets

How to set gecos attribute in Active Directory using directory services(C#)
I finally found the way to access the attribute. Instead of using directly the DirectoryEntry to connect to the LDAP such as : DirectoryEntry DEBase = new DirectoryEntry("LDAP://" + DomaineName); I used DirectoryContext context = new DirectoryContext(DirectoryContextType.Domain, domaineName)); DirectoryEntry dERoot = System.DirectoryServices.ActiveDirectory.Domain.GetDomain(context).GetDirectoryEntry(); Then I have no problem accessing the gecos attribute

Categories : C#

Linux: Move log files from a mounted dir to a local dir recursively while maintaining directory structure in local direcoty
How about something like rsync -azrR --include='*.log' -f 'hide,! */' /media/primary /backup If you use man rsync and type 2343g it should take you to the line where it explains this filter. Basically it will hide everything that's not a directory (every file) from the pattern matching; however, since I've used the --include='*.log' flag as well it will override that and the pattern will match only .log files. You can also use the -nv flag to do a dry run and see what would happen.

Categories : PHP

is there a way to save css/js changes of remote resource between page reloads or map remote resource to local in devtools?
You got most of it, but here's the slight change: Make a change in the Styles pane (or in Sources), then click over to Sources, and when your modified file is open, hit ctrl-s. Then you can right-click the asset in the Sources list and hit Save As... and save the new modified file to disk. There is no way to save a modified remote file without persisting it to disk and expect it to be changed on reload.

Categories : Javascript

How to checkout a remote branch, rebase it to local master and then merge with local master?
git remote add person git://path/to/his/repo.git git checkout -b person/master git fetch person I would rather fetch first, then checkout: git remote add person git://path/to/his/repo.git git fetch person git checkout -b person/master But one of the idea behind pull requests is that they should be applied automatically... or "put on hold" ;) In other words, the contributors ought to do the work for you, then submit an updated pull request for you to apply.

Categories : GIT

user-authentication from remote site?
I'd recommend using jquery requests. You can send the username and password (encrypted, of course) to the remote site and get back a cookie/session key. If you have access to the database, I'd also recommend doing that. For example, if the remote host is using MySQL, ask to have a view created for your user and then you can authenticate directly. With this approach, however, you may have to set up a MySQL connection outside of settings.py.

Categories : Django

How to Backup mysql db from Remote to local without mysql local installation?
Solved it!, I forget to specify the HostIP & port with the mysqldump command Changed my executeCmd parameter as following: executeCmd = PathToMySqlDumpFile+"mysqldump -h "+HOSTIP+" -P "+PORT+" -u "+USER+" -p"+PASS+" "+database+" -r "+path; along with the mysqldump file path. We only need the mysqldump file to take the backup from remote server to local. No need for mysql client installation.

Categories : Java

Return value from Active Directory
FindName returns a string but you never use it anywhere string result = FindName(account); you can then use the local variable result inside your bExport_Click method as you wish

Categories : C#

Accessing Active Directory using C
If you are looking for other option other than openldap on Windows. You can try winldap, for more info you can visit their msdn page, there are some examples too which can help you. http://msdn.microsoft.com/en-us/library/windows/desktop/aa367033(v=vs.85).aspx

Categories : C

php Active Directory lookup
I think this filter should work: (&(objectClass=user)(sAMAccountName=yourUserName) (memberof=CN=YourGroup,OU=Users,DC=YourDomain,DC=com)) Well I am sure this could be tuned to work for you. -jim

Categories : PHP

integration between active directory and EPM
The latest version of the /n software BizTalk Adapters includes an LDAP Adapter that can be used to access active directory http://www.nsoftware.com/products/biztalk/adapters/ldap.aspx

Categories : Dotnet

Searching Active Directory using Sid
You can bind to an object directly given its SID like this: var entry = new DirectoryEntry("LDAP://<SID=S-your-sid-here>"); Both SID and sAMAccountName are unique in the domain.

Categories : C#

authentication when creating table synonym in remote server
The answer to your question is going to depend a lot on what database platform you are using to contain the synonym; in your question, you referenced documentation from at least two (SQL Server and Informix). I don't know much about Informix, but I'm going to assume that it's security model is different than SQL Server. For SQL Server, the remote server must be set up as a linked server first (assuming that you are using a remote object). See http://technet.microsoft.com/en-us/library/ms188279.aspx for details on how to do that.

Categories : SQL

Insert users into Active Directory
Here's a general idea of the algorithm: Load user data from SQL Server Convert it into an LDIF (LDAP Data Interchange Format) file Import the LDIF file into Active Directory using the LDIFDE command-line tool Python, or any other programming language, can help you with step 2. Notice that the details of the conversion are very specific to how your data is represented. You'll have to carefully map each data base field into an LDAP attribute, and determine the classes to be used in the LDAP objects. Will the above modify existing users? yes, of course. You could write the LDIF in such a way that it updates the existing data, or if that's a problem you could verify first if an user exists in the Active Directory and don't add those changes to the LDIF file. Alternatively You could use

Categories : Python

Create Active Directory Group using C#
Try GroupPrincipal oGroupPrincipal = new GroupPrincipal(ctx, samAccountName); And oGroupPrincipal.Save(ctx); Code samples for Active Directory - http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C# Active Directory With C#

Categories : C#



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