-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS can't use New-PSSession to Connect to O365 from PowerShell Host - WSMAN client library not found #10600
Comments
@adityapatwardhan Could you please comment the SDK issue? |
Anyone? |
@jnevins-gcm MSFT team is busy in the days so waiting... |
It's been 15 days... @iSazonov @adityapatwardhan |
@jnevins-gcm From previous discussions I can only say please check that libpsrpclient is installed and loaded. The same for OpenSSL. /cc @SteveL-MSFT |
@iSazonov - that isn’t a meaningful reply. It doesn’t seem like you’ve even read the issue |
@jnevins-gcm Sorry for short answer.
libpsrpclient does not have a help logging so it would be great if you used diagnostic tools to identify broken dependencies (to ssl I guess). |
I’d be totally happy with a workaround. I’m not super familiar with dependency analysis tools on OS X but I’m happy to try to gather some information if you could provide some guidance on what tools to use. Thanks! |
any update...? been about a month |
I believe you need to include https://www.nuget.org/packages/Microsoft.PowerShell.Native
|
@SteveL-MSFT already tried this ....did you try it? |
@jnevins-gcm sorry, didn't see all the details of your report. I did try this and noticed that
|
thanks @SteveL-MSFT - what is the difference? how can I make a debugging experience function? |
I don't know why |
Got to trying this. Same error when calling "dotnet mydll" You sure you actually got this to work via the command line? |
@SteveL-MSFT any updates? seems like a bug in PowerShell Core.... |
looking to get some/any support here please. PowerShell is supposedly actively supported by Microsoft and this is clearly a bug. |
@jnevins-gcm Sorry, I haven't Mac to investigate. |
The sample code I posted, exactly as is, in an out of box csproj console app will reproduce the problem. |
Having GitHub ready-to-run project would save reviewer's time. |
ok.... https://github.com/JeffN825/PowerShellWSManBug It's a simple csproj and Program.cs copied straight from my original post.
would be great to get a resolution
|
We never targeted 2.2. Can you try 2.1? |
doesn't work |
bump...any fix for this bug? I spent the time putting together that sample...would be great if you could reciprocate. |
@jnevins-gcm I haven't MacOs to investigate the issue, sorry. Since you are using SDK I guess you can use debugger and I suggest to use a native dll handler (see #11032) and catch a path to openssl.dylib. This can help to get understanding where is a problem or even to fix it in OS or in your code. |
Very frustrating that there is one single person who supports/replies to bugs in PowerShell and they have no access to platforms that PowerShell claims to support. @iSazonov how do I leverage what’s in the PR you linked to? Some basic direction would be helpful. |
@jnevins-gcm keep in mind this is Thanksgiving weekend in the US, where the entire PS team is based. I'm sure they're all spending time with their families. 🙂 |
@pyrohaz4good this issue is regarding the SDK. Even when it works with the CLI, It doesn’t work with the SDK |
For me 1.0.2r worked as well. I had the openssl 1.1 installed through brew but they did not work |
@jshum CLI or SDK? This issue relates to the SDK |
Right, my comment was for CLI, but I'm guessing it may be the same underlying problem relating to the SSL library being found in the environment/path on OS X |
I suspect macports would still work. The instructions are here: |
@TravisEz13 You could just try it or read the entirety of the question and you'd know it doesn't work... truly unbelievable |
@TravisEz13 - it doesn’t work |
I understand that some folks are frustrated here, but please keep in mind we are not a huge team and we have to prioritize issues we believe have the most impact. In this specific case, we've been having discussions with EXO team to move off WSMan based remoting. The library that we were using for WSMan remoting on non-Windows has been deprecated and no longer supported by a team. New EXO cmdlets are coming with expectation that they are cross platform compatible. Sorry no timeline to announce as it's not my project. |
Good luck on this! Hope the new cmdlets support MFA login on macOS, similar to |
Updated docs for getting libmi to work using MacPorts MicrosoftDocs/PowerShell-Docs#5726 Please note that this is a temporary solution as @SteveL-MSFT said:
CC @mgreenegit |
For now, this hack works...
|
Does it work for the sdk or just the cli?
|
@JeffN825 I can't say for sure, but this symlinks into the global |
Nope
Jeffrey Nevins
Executive Director, IT Architecture & Engineering
GCM Grosvenor
900 North Michigan Avenue, Suite 1100
Chicago, IL 60611
T +1-312-506-6499
M +1-516-551-3202
jnevins@gcmlp.com
|
This comment has been minimized.
This comment has been minimized.
@iSazonov I hid your topic as this has NOTHING to do with the CLR. This is |
This issue has been marked as external and has not had any activity for 1 day. It has been be closed for housekeeping purposes. |
Why the &$@! Would you close this issue?? |
@jnevins-gcm There is a long path to deprecated dependencies. It is so over last 2 years. Recommendation for remoting on MacOs is to use SSH. For O365 services, Azure modules we can only wait when they are updated. |
@jnevins-gcm Here is the external issue. microsoft/omi#596 It was closed because OMI is deprecated and will not fix these issues. |
ok, so it was moved to a project were was declared "out of scope" I think there are around two years since we wait for this, any chance for this to have a proper follow-up and timeline? Thank you |
Steps to reproduce
Same issue as described here:
#5561
except when using Microsoft.PowerShell.SDK (6.2.3) instead of PowerShell CLI
Error:
If I set DYLD_PRINT_LIBRARIES to 1, I see the following when running from C# right before the error:
Works:
sudo ln -s /opt/local/lib /usr/local/opt/openssl/lib
(this doesn't seem to help the C# code any)If I set DYLD_PRINT_LIBARIES to 1 for the CLI, I see the following right before the connection succeeds:
so the problem is specific to the SDK...and the ln command fix doesn't seem to work for the SDK.
Expected behavior
Doesn't throw error
Actual behavior
Throws error
Environment data
Mac OS Mojave
The text was updated successfully, but these errors were encountered: