can I start Lync 2010 client application using the Lync 2010 SDK - lync-2010

in cases where I am using Lync 2010 SDK (which depends on having the Lync 2010 client being installed and operational) in a web application and that client is closed, can I using the Lync 2010 SDK to start client application ?

You can do without using Lync SDK,
Instead you can try out this
bool isRunning = Process.GetProcessesByName("Communicator")
.FirstOrDefault(p => p.MainModule.FileName.StartsWith(#"C:\Program Files (x86)\Microsoft Lync")) != default(Process);
if(!isRunning)
Process.Start("Communicator");
May be this will be helpfull to you.
thnks and regards.

If you have Lync setup for suppressed mode then you can call the BeginInitialize method on the LyncClient object to start up Lync in suppressed mode (aka no user interface).
This documentation describes the BeginInitialize method. Below is an example in C#:
LyncClient lyncClient = LyncClient.GetClient();
if (lyncClient.InSuppressedMode &&
lyncClient.State == ClientState.Uninitialized)
{
lyncClient.BeginInitialize(result => lyncClient.EndInitialize(result),
"Starting Lync");
}

Related

Laravel Backpack - separate from admin and normal user after login redirect path

What I did
after I successful login the admin user, I visit again to /admin/login, it redirect to /,
even after login user access to /admin/login, it should be redirect to /admin, I do not want to access RouteServiceProvider::HOME, how to detect two different user session?
What I expected to happen
I expect to redirect to "home_link" location 'admin/dashboard'
What happened
It redirect to /
What I've already tried to fix it
I install Laravel/Breeze, I can set it from the RouteServiceProvider
public const HOME = '/';
But it want to separate from admin and normal user, How can I set the it path?
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
PHP VERSION:
PHP 7.4.12 (cli) (built: Oct 29 2020 18:37:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
LARAVEL VERSION:
v8.12.3#6707480c5f0db7aa07537f9ad93255b64b65b85e
BACKPACK VERSION:
4.1.26#ae68ca24844929ac38d2e792197551e823c43570
As response from:
https://github.com/Laravel-Backpack/CRUD/issues/3353#issuecomment-734454506
under /app/Http/Middleware/RedirectIfAuthenticated.php
I added a check for a guard 'backpack', then redirect to admin dashboard.
foreach ($guards as $guard) {
if (Auth::guard($guard)->check()) {
if($guard == 'backpack')
return redirect('/admin/dashboard');
return redirect(RouteServiceProvider::HOME);
}
}

SameSite=None is becoming another cookie

I am setting cookie through headers in Scala (2.10)/Play Framework (2.3). I am thinking of doing it this way o/w I will have to update the framework to use in-built functionality which I cannot do as of now. Below is my code for reference:
Test URL: https://elbtest.s2d6.com/x/?x=c&z=s&v=7100096
val cookieString = "949413017=533c892b32cf4a46961a38f8c56b33eb320412596|6386|323064|7100096|14988;SameSite=None;Expires=Wed, 30 Sep 2020 12:45:30 GMT;Path=/;Domain=s2d6.com;Secure"
val finalURL = "https://www.google.com/"
resp = Redirect(finalURL).withHeaders(SET_COOKIE -> cookieString)
In the browser, the above cookie '949413017' is being set but along with another cookie with name 'SameSite'. Because of this, I am unable to access my cookie in the requests that follows. PFA the response in browser:
Chrome Version: Version 84.0.4147.89 (Official Build) (64-bit)
OS: Ubuntu 16.04.6 LTS (Xenial Xerus)
Any help in understanding in why this is happening is highly appreciated.
Thanks a lot in advance!
You're calling withHeaders using SET_COOKIE. You should be using the built-in cookie:
Redirect(finalURL).withCookies(Cookie("theme", "blue"))
See https://blog.knoldus.com/using-cookies-in-play-framework/ for an example.
Just A tip ,if we use SameSite=None anywhere in the value of the Set-Cookie header, then Play Framework mistakenly see that as the beginning of another cookie !
What about using the standard header Set-Cookie?
Set-Cookie: flavor=choco; SameSite=None; Secure
Refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite

FiddlerCore Https Firefox Certifcate installation and Trust

I am playing with Fiddler core , trying to set up with a proxy and check Https traffic. For Chrome and Internet Explorer fiddler have great support:
if (!CertMaker.rootCertExists())
{
if (!CertMaker.createRootCert())
return false;
if (!CertMaker.trustRootCert())
return false;
}
Anyone knows what to do with Mozilla ? How to install certificate there ?
There's nothing in Fiddler/FiddlerCore itself that will do this. You can easily start the process from a Firefox extension (see overlay.js in Fiddler's install folder):
var certdb = Components.classes["#mozilla.org/security/x509certdb;1"].getService(Components.interfaces.nsIX509CertDB);
var file = Components.classes["#mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).
get("Desk", Components.interfaces.nsIFile);
file.append("FiddlerRoot.cer");
try {
alert("On the following screen, tick the first checkbox: 'Trust this CA to identify websites.'");
certdb.importCertsFromFile(null, file, Components.interfaces.nsIX509Cert.CA_CERT);
} catch (e) { alert("Trust function returned:\n\n" + e); }
From outside Firefox or to bypass all prompts, you'd need to poke their API; see e.g. How to add a trusted Certificate Autority to Firefox with JSS shows one approach.

Client Authentication via X509 Certificates in asp.net in IIS 6.0

I am trying to read eToken certificate, unable to do so, this app is running ok in IDE, but when deployed at IIS 6.0, throwing error - current session is not interactive. Pl help. Thanx in adv.
Codes:
X509Certificate2 selcert = null;
selcert = DSCLib32.UtilMethods.PickCertificate(StoreLocation.CurrentUser, StoreName.My);

How to solve Android GCM 401 Error?

Have setup a project at Google Code APis console and have a server key at "Key for server apps (with IP locking)". I'am trying to send a push notification to GCM device using "API key" and one registration ID that I have stored at database.
For server side I'am using Zend_Mobile_Push_Gcm and have something like this:
$token = 'REGISTRATION ID';
$apiKey = 'API KEY';
//Send test push
$message = new Zend_Mobile_Push_Message_Gcm();
$message->setId(time());
$message->addToken($token);
$message->setData(array('foo' => 'bar', 'bar'=>'foo'));
$gcm = new Zend_Mobile_Push_Gcm();
$gcm->setApiKey($apiKey);
try {
$response = $gcm->send($message);
} catch (Zend_Mobile_Push_Exception $e) {
die($e->getMessage());
}
On the app side, I have used the GCM demo, that is currently registering it's registration ID on a server service.
I'am not able to send the push, always get a 401 error. Have gone through troubleshooting and tried my API KEY and Registration ID with the CLI test line at http://developer.android.com/guide/google/gcm/gcm.html#auth_error but with no success.
Any help would be appreciated.
I realise this was posted a while ago but be sure to use your server API key and not your android API key.
I had the same issue when trying to use my Android API key from PHP with Zend.