I am creating an In/Out system tray application that interacts with the Microsoft Lync Server through the Microsoft Lync API. Is there a way to pass the username and password of the current windows user to the Lync API so users will be automatically logged in instead of having them enter the credentials every time?
Is there a way to pass the credentials of the current windows user into LyncClient.Submit()
2.1k Views Asked by skeletank At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in AUTHENTICATION
- Access roles from multiple applications
- Different storyboard's entry points depending on a parameter
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- sendxmpp not authorized failure (Error AuthSend)
- Retrieve user information from Active Directory on login
- Log in through active directory
- Ember.js REST Auth Headers
- Validate Deezer access token on server
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- Laravel - session data survives log-out/log-in, even for different users
- How can I share Azure Active Directory authentication between server side and client script?
- django rest framework - token authentication logout
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- How to delete user from _User through Parse REST API
- Cannot login with new SQL User - SQL 2014
Related Questions in CREDENTIALS
- Ask for creds only if some specified
- What are all the methods to delete local-storage data?
- Outgoing WSS authorization from WebRequest C#
- Crystal report shows database login when taking Dataset as datasource
- How to get AWS command line interface to work in cygwin
- Solving CORS when posting in angularJs using $HTTP with credentials
- Powershell Invoke-Command with PSCredential Cannot process argument transformation on parameter 'Credential'
- powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment
- Create a windows vault credential and link it to outlook - Powershell
- Proxy credentials while opening any Office application
- Connect to MongoDB in C# with Credentials
- dynamodb credential works when used directly but fails when going thru kinesis
- GoogleAuthException: UNREGISTERED_ON_API_CONSOLE when trying to append to Google Sheets API V4
- Local User Credential Check in windows 2012 server
- Symfony 3 - custom user provider - login always showing "bad credentials" instead of "username not found"
Related Questions in SUPPRESS
- Don't produce report if there is no data - PDF
- Matplotlib can't suppress figure window
- Is there a way to pass the credentials of the current windows user into LyncClient.Submit()
- How to filter crystal report so that if one JobID is ProductionComplete that all other jobID with the same first 5 digits will also be displayed
- Symfony 1.4 run task within functional test suppress output
- Kafka Streams - custom SessionWindows suppression with session size constraints
- How to selectively suppress markup validation in Visual Studio?
- How do I disable Android @IntDef annotation checks in special cases?
- How do I suppress CheckStyle StrictDuplicate warning?
- castor marshaller suppress xsi
- CodeAnalysis RuleSet Management for many projects in VS2010 (mainly supressions)
- docker compose - ignore build context path
- Suppressing sh script output when using <<END
- Crystal Report not sorting the group field in ascending order as it is set up to do
- How come when I use a formula to suppress a section based on field data, it suppresses everything except one record with the field value?
Related Questions in LYNC
- UCWA: integrating advanced chat options
- When to refresh token?
- Added SIP-headers in MSPL application missing/being removed in Lync 2013
- Use Current Lync Session with UCWA
- Correct workflow for presence subcription for day/night
- Is UCMA 4.0 SDK free especially since it has Lync Server 2013 in the installation packages?
- Understanding PowerShell cmdlet for adding a trusted UCMA 4.0 application and a trusted UCMA 4.0 application endpoint
- Lync 2013 UCMA WCF Web Service
- Lync 2013 - consuming 180 ringing responses from a forked request
- Silent Uninstall lync 2013 client
- Microsoft Lync crashes on double clicking any user from the contacts list
- Custom Command Passing Converstation Text
- Lync CWE Automation server can't create object
- Set meeting with Skype for business (lync) using rest api
- Can we use Lync/Skype SDK in Eclipse IDE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No, unlike e.g. accessing a web service, there is no way to force Lync to use the logged-on users credentials. You can see this with the Lync client itself the first time you run it on your machine - you will be prompted for domain credentials, even if you are logged on to the machine as a domain user.
All is not lost, though, as Lync (by default) will save credentials as they are entered, and then present them back to the server each time it logs on as that user. You can check to see if Lync is set to save passwords in the registry:
To take advantage of this in the API, you need to:
Now - if your user has not logged in to Lync (or your app) previously, you will get a CredentialRequested event.
(I can't remember off the top of my head which method out of 2 or 3 above is the recommended approach - best to try both and see which you have most luck with)
Next time that user logs in (assuming SavePassword is set to true in the registry), the saved credentials will be passed, so user will log in without the CredentialRequested event firing.
This MSDN article covers the process quite nicely (I'm assuming that you're running Lync in UI Supressed mode, as this is only an issue in suppressed mode)