Vote count: 0 Is it possible to get informations about myself? I want to make coection to LDAP and than get my informations as sAMAccount name, ... without DirContext search. asked 8 mins agouser2925656 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Is there a way to signIn (obtain idToken) in background: with useame and password (assuming that the background task will provide useame and password), with one IdProviders (assuming that the background task will provide the email/id and the id of the provider). By implementing UiManager without actual UI I managed utilize GitkitClient so that the user does not have to interact with the UI (for both useame/password and Google provider), but it still has to be executed inside of an activity. What I am trying to achieve is a scenario where the user is logging in once and the token is refreshed when it expires after 2 weeks in background without user interaction. asked 2 mins agog...
ادامه مطلبVote count: 0 I'm trying to redirect my users to the log-in page if the session timeout. Here is my route Route::get('/',['as' => 'login', 'uses'=>'AuthController@getSignIn']); I've tried adding if ( $e instanceof IlluminateSessionTokenMismatchException ) { retu redirect()->route('login'); } in render() in app/Exceptions/Handler.php public function render($request, Exception $e) { if ($e instanceof ModelNotFoundException) { $e = new NotFoundHttpException($e->getMessage(), $e); } if ( $e instanceof IlluminateSessionTokenMismatchException ) { retu redirect()->route('login'); } retu parent::render($request, $e); } That doesn't seem to take effect. How do I implement this in Laravel ? Any sugges...
ادامه مطلبVote count: 0 I'm trying to do a HUD for poker, So the idea is to set Form over the poker application ( which is not my application ) and keep the form always over the table even if i move the poker table So I get the IntPtr from the table using [DllImport("user32.dll")] public static exte int EnumWindows(EnumWindowsCallback lpEnumFunc, int lParam); I need a Form for each player at the table for display the informations about a player So I create my Form which I attach to the poker table using [DllImport("user32.dll")] private static exte IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); But then when I show the Form I lost the focus ! I just can't click on the poker table or on my m...
ادامه مطلبVote count: 0 I'm a bit stuck. I have created a user form that will add a part on a sheet called "Main" and also another sheet dependent on what the user selects for a warehouse. Currently the code is working, but it will only add to "Main" and "Elkhart East" this will does not work when I select another warehouse. Example. Add --- Part# qwerty --- Add to Main and North Carolina Private Sub cmdAdd_Click() Dim irow As Long Dim lastRow As Long Dim iCol As String Dim C As Range Dim ws As Worksheet Dim value As Long Dim NewPart As Boolean Dim ws_warehouse(7) As Worksheet '7 is total warehouse tab you have Set ws = Worksheets("Main") Set ws_warehouse(1) = Worksheets("Elkhart East") Set ws_warehou...
ادامه مطلبVote count: 0 I am willing to deploy on my server an SSH daemon which I can know what commands was executed. But I don't know how to get the user's commands. I achieve a SSH server based on twisted.conch.ssh.session. I can get all stdout in outReceived of SSHSessionProcessProtocol, But it is difficult to extract the user's commands from the stdout accurately, because that rely heavily on the prompt of Linux($PS1). import sys import checkers from twisted.python import components, log, logfile from twisted.cred import portal from twisted.inteet import reactor from twisted.conch.ssh import factory, keys, session, filetransfer from twisted.conch.unix import UnixSSHRealm, SSHSessionForUnixConchUs...
ادامه مطلبVote count: 0 In Meteor, I'd like to add a referrer field to new user signups. I can do this for users that register with a password, by passing in extra options to be used with Accounts.onCreateUser(function (options, user). But this doesn't seem to work with social login. Any ideas how I can get this working? asked 48 secs agoEliezer Steinbock Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am working on an application that takes a regex as input from the user at the command line, and then applies that regex to find certain files under the current directory. The application support UTF-8 input, and should be able to find UTF-8 encoded file names. Here is an example: use feature qw(say); use open qw( :std :utf8 ); use strict; use utf8; use waings; use Encode (); use File::Find::Rule; system 'touch', 'aæ', 'bæ', 'aa'; # some test files, my $pat = 'æ$'; my $pat_encode = encode( $pat ); run_test( $pat_encode, 'With encode()' ); run_test( $pat, 'Without encode()' ); my $pat2 = '[æ]$'; my $pat2_encode = encode( $pat2 ); run_test( $pat2_encode, 'With encode()' ); sub e...
ادامه مطلبVote count: 0 Where it is maxUserPort? I have searched in HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters but no result. Any help please? asked 1 min agoIrina Farcau Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Is it possible that after the user logs in, the application checks what permissions the user have. Currently I have a User table which also have a foreign key named Access ID. So I want the application to check the Access ID of the logged in user and see whether its a 1 or 2. If its a 1 the user can only view content and if its a 2 then the user can also Edit and Delete. I'm new to C# and SQL Server coections and would appreciate some help. Thanks asked 36 secs agoLuke_i Let's block ads! بخوانید...
ادامه مطلبVote count: -1 # This Python file uses the following encoding: utf-8 import random import itertools d = {'1':'first','2':'second','3':'third','4':'fourth','5':'fifth' } def main(): # Get first list and check for correct length, no duplicates, all integers, numbers are in range of 1-20, and there are no decimal numbers userInput1 = InputList('1') while not (CheckForLength(userInput1) and CheckForDuplicates(userInput1) and CheckForIntegers(userInput1) and CheckForWithinRange(userInput1) and CheckForWholeNumber(userInput1)): userInput1 = InputList('1') # Get second list and check for correct length, no duplicates, all integers, numbers are in range of 1-20, and there are no decimal numbers user...
ادامه مطلبVote count: 0 We are just begiing to use Avi in AWS and I am setting up the controller instance. As I am adding users to the controller instance I would like for users that log in to the instance via shell do so with private/public keypair authentication. I created a user and added their public key to ~/.ssh/authorized_keys , I also added a NOPASSWD entry, but it seems to still be prompting for a password. Can I log in to the GUI with a password but restrict shell access to keypair only? asked 6 mins agomattdlh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Using C# and .NET 4.5: I am looking for a simple and efficient option to use the windows user and current machine to encrypt/decrypt a string. The encrypted string can be decrypted on the very same machine with the same logged-in user only. Other users logged-in to the same machine must not be able to decrypt. The same user logged into another machine must not be able to decrypt. Back in 2002, I used to use DPAPI to do the similar thing. I expect there is a more mode option in 2016 with .NET 4.5 with single line of API call :) Thank you, asked 39 secs agoAllan Xu Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have an angular app. I am using ui-router to manage my states. I need to call a common API to check whether the user is allowed to view the web page or not. Is there a common place where I can call the API and only then proceed to the state the user is requesting for? With my current implementation, the view partially gets displayed and then the reroute happens. //app.js $rootScope.$on('$stateChangeSuccess', function(evt, toState) { if(toState.name === 'login' || toState.name === 'payment') retu; userService.isBillingCleared().then(function() { //redirect to toState }, function() { $state.go('payment'); }); }); How do I prevent this? asked 1 min agoJaseem Abbas Let's block ad...
ادامه مطلبVote count: 0 I was mapping all the users. Migration done successfully to visual studio online. But its still migration doesn't have changeset with corresponding user name. It displays only with who is ruing migration tool . Can you help me on this ? asked 2 mins agoNelson Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm using win32 API Logon user on c# in order to impersonate a wcf chael. The problem when service is ruing in a machine where the admin removed all the users (except admin) from "Allow logon locally" the impersonation fails. How can I impersonate the call if GPO does not allow "Allow logon locally" (Interactive login)? aditional info: I tried to use all methods (Interactive, NewCredentials, Network...) The service ruing web application serving all organization users. The admin does not allow to add all users to "Allow logon locally" (typically all organization users are there) The the WCF chael impersonation is a legacy code and caot be changed. asked 40 secs agoIgal Let's blo...
ادامه مطلبVote count: 0 As I posted in a comment to another question, I have some dependency problems. I could not update Xamarin.Forms to the latest version which has Pull To Refresh, because Acr.UserDialogs needs Xamarin Android Support v4 with version 23.0.1, and the newese Xamarin.Forms needs a newer version. Is there an alteative to Acr.UserDialogs which I can use with newer Xamarin.Forms? asked 1 min agorabejens Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to fetch an image file from an IIS 7 server ruing some ASP code. The goal is to bypass authentication by including the useame and password in the URL. Without authentication, a user is redirected to a login page. This URL-based authentication method (which was provided by the software vendor) works fine from a browser, or from wget on the CLI, but not from within PHP using either file_get_contents() or curl functions. I've tried creating a stream context for file_get_contents() to include a Basic authentication header, in the hopes it would show up there, but no luck. The ASP code it's getting caught on looks like this: var authUser = String(Request.ServerVariables("...
ادامه مطلبVote count: -1 I need to know how I can do a module of roles and users, I read about asp.net identity but I don't understand anything, I want to create a web app with my own data base and implements a role module. I try saving a user's rol in a session variable and in the controller I ask using an if like this : If(Session["Rol"] == "admin"){ // do something } else retu RedirectToAction("xxx","xxx"); and in the view: @if (Session["Rol"] == "admin"){ Admin } But I don't know if this can be right. Can you tell me if exist other way (identity and how I can uses it or other thing) or if can I use the session variable for this. Sorry for the bad English. Thank you!. asked 32 secs agoeesto petit L...
ادامه مطلبVote count: 0 I'm trying to do if user exists function but it isn't working.My other validation works fine. addnewuser.php...
ادامه مطلب