I have been wracking my brain trying to get this to work and I’m at a loss.
Does anyone else have this solved?
I have a very specific need, where my work requires web auth for RDP.
sdl-freerdp supports /aad with sdl client but I can’t get the webview to open.
It keeps asking me to open a browser via a link but that breaks the auth flow in my company’s policy (thanks intune)
My only option is using the SDL client’s webview.
Unfortunately looks like there’s no option to enable it in the nixpkgs package, it unconditionally disables it:
The good thing is it should be pretty trivial to patch the package to add an option.
Thanks for this but I’m not very strong on patching derivations.
I know I can do:
pkgs.freerdp.overrideAttrs (oldAttrs:
{
cmakeFlags = oldAttrs.cmakeFlags ++ [];
})
I just don’t know how I would replace the WITH_WEBVIEW since it’s in another function.
1 Like
maybe try
cmakeFlags = builtins.map (
line: if line == "-DWITH_WEBVIEW:BOOL=FALSE" then "-DWITH_WEBVIEW:BOOL=TRUE"
else line
) oldAttrs.cmakeFlags;
within the overrideAttrs?
1 Like
source:
(freerdp.overrideAttrs (oldAttrs:{
cmakeFlags = map (line: if line == "-DWITH_WEBVIEW:BOOL=FALSE" then "-DWITH_WEBVIEW:BOOL=TRUE" else line) oldAttrs.cmakeFlags;
buildInputs = oldAttrs.buildInputs ++ [ webkitgtk_4_1 ];
}))
That appears to work but now it fails to compile. It’s trying to download sources from git:
> CMake Error at /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/ExternalProject/shared_internal_commands.cmake:928 (message):
> error: could not find git for clone of webview-populate
> Call Stack (most recent call first):
> /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/ExternalProject.cmake:3080 (_ep_add_download_command)
> CMakeLists.txt:29 (ExternalProject_Add)
>
>
> -- Configuring incomplete, errors occurred!
>
> CMake Error at /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/FetchContent.cmake:1906 (message):
> CMake step for webview failed: 1
> Call Stack (most recent call first):
> /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild)
> /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
> /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/FetchContent.cmake:2145 (cmake_language)
> /nix/store/v2i1hgv567g3v91im5x4g5bff52143i0-cmake-4.1.2/share/cmake-4.1/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
> client/SDL/common/aad/CMakeLists.txt:39 (FetchContent_MakeAvailable)
1 Like
See if this PR fixes your problems:
master ← bitbloxhub:freerdp-webview
opened 03:47PM - 08 Jun 26 UTC
See https://discourse.nixos.org/t/freerdp-webview-aad/78119.
## Things … done
- Built on platform:
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [ ] Tested basic functionality of all binary files, usually in `./result/bin/`.
- Nixpkgs Release Notes
- [ ] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
- [x] Follows the [automation/AI policy].
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
2 Likes
Added glib-networking, hopefully that fixes it.
1 Like
Unfortunately not, still the same error.
I wonder if it’s related to this error:
[12:33:40:277] [1947519:001db7a5] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure ‘unable to get local issuer certificate (20)’ at stack position 0
[12:33:40:277] [1947519:001db7a5] [WARN][com.freerdp.crypto] - [verify_cb]: DC = a8005ae6-5236-44b5-9b29-3fb2ab1b83c2, CN = 146e3997-4aeb-4b34-9e80-ed7741b36d05
(That’s microsoft’s CN)
ignoring cert doesn’t change anything.
1 Like
Nah, glib-networking is just not loading properly. I’ll try and fix.
1 Like
I did find this:
https://www.reddit.com/r/NixOS/comments/k1lt7c/tlsssl_support_not_available_install/
OK just wrapped every $out/bin executable with GIO_EXTRA_MODULES. Should work now.
1 Like
You wanna join on discord so we can do this without spamming the thread?
need gstreamer:
Update for anyone else looking here: We did not end up solving @nosferatu ’s actual problem here (blocked on upstream issues), although my PR was able to enable the webview properly.
1 Like
Just some more info, freerdp likely has some segfault bugs related to this and isn’t ready yet.
But yeah the webview appears and login is possible, it just segfaults immediately following login.
1 Like
BTW I filed an issue with upstream for this just now with some info from you to make sure they know about it, as I did not see any open upstream issues about this:
opened 03:58PM - 12 Jun 26 UTC
# **Describe the bug**
(Filing this issue after https://discourse.nixos.org/t/f… reerdp-webview-aad/78119, have not personally tried)
After logging in with the webview for /aad FreeRDP segfaults.
# **To Reproduce**
Steps to reproduce the behavior:
1. Log into a server with /aad
2. It segfaults
# **Expected behavior**
Not to segfault
# **Screenshots**
N/A
# **Application details**
* FreeRDP version (`xfreerdp /version`)
This is FreeRDP version 3.26.0 (n/a)
* Command line used
* Output of `xfreerdp /buildconfig`
```
This is FreeRDP version [/home/jonahgam/nixpkgs/result/bin/sdl-freerdp] 3.26.0 (n/a)
[/home/jonahgam/nixpkgs/result/bin/sdl-freerdp] Build configuration: BUILD_TESTING=FALSE BUILD_TESTING_INTERNAL=OFF BUILD_TESTING_INTERNAL_AVAILABLE=1 BUILD_TESTING_NO_H264=OFF BUILD_TESTING_NO_H264_AVAILABLE=0 WINPR_HAVE_AIO_H=1 WINPR_HAVE_EXECINFO_BACKTRACE=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS_FD=1 WINPR_HAVE_EXECINFO_HEADER=1 WINPR_HAVE_FCNTL_H=1 WINPR_HAVE_GETLOGIN_R=1 WINPR_HAVE_GETPWUID_R=1 WINPR_HAVE_INTTYPES_H=1 WINPR_HAVE_POLL_H=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIBS= WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_SYMBOL=1 WINPR_HAVE_STDBOOL_H=1 WINPR_HAVE_STDINT_H=1 WINPR_HAVE_STRERROR_R=1 WINPR_HAVE_STRNDUP=1 WINPR_HAVE_SYSLOG_H=1 WINPR_HAVE_SYS_EVENTFD_H=1 WINPR_HAVE_SYS_FILIO_H= WINPR_HAVE_SYS_SELECT_H=1 WINPR_HAVE_SYS_SOCKIO_H= WINPR_HAVE_SYS_TIMERFD_H=1 WINPR_HAVE_TM_GMTOFF=1 WINPR_HAVE_UNISTD_H=1 WINPR_HAVE_UNWIND_H=1 WITHOUT_FREERDP_3x_DEPRECATED=OFF WITH_AAD=ON WITH_ABSOLUTE_PLUGIN_LOAD_PATHS=ON WITH_ADD_PLUGIN_TO_RPATH=OFF WITH_ALSA=ON WITH_AOM=OFF WITH_AVX2=ON WITH_BINARY_VERSIONING=OFF WITH_CAIRO=TRUE WITH_CCACHE=ON WITH_CHANNELS=ON WITH_CJSON_REQUIRED=OFF WITH_CLANG_FORMAT=ON WITH_CLIENT=ON WITH_CLIENT_AVAILABLE=1 WITH_CLIENT_CHANNELS=ON WITH_CLIENT_CHANNELS_AVAILABLE=1 WITH_CLIENT_COMMON=ON WITH_CLIENT_INTERFACE=OFF WITH_CLIENT_SDL=ON WITH_CLIENT_SDL2=OFF WITH_CLIENT_SDL3=ON WITH_CLIENT_SDL_AVAILABLE=1 WITH_CLIENT_SDL_VERSIONED=OFF WITH_CUPS=TRUE WITH_CURSOR_DUMP=OFF WITH_DEBUG_ALL=OFF WITH_DEBUG_CAPABILITIES=OFF WITH_DEBUG_CERTIFICATE=OFF WITH_DEBUG_CHANNELS=OFF WITH_DEBUG_CLIPRDR=OFF WITH_DEBUG_CODECS=OFF WITH_DEBUG_DVC=OFF WITH_DEBUG_EVENTS=OFF WITH_DEBUG_KBD=OFF WITH_DEBUG_LICENSE=OFF WITH_DEBUG_MUTEX=OFF WITH_DEBUG_NEGO=OFF WITH_DEBUG_NLA=OFF WITH_DEBUG_NTLM=OFF WITH_DEBUG_RAIL=OFF WITH_DEBUG_RDP=OFF WITH_DEBUG_RDPDR=OFF WITH_DEBUG_RDPEI=OFF WITH_DEBUG_REDIR=OFF WITH_DEBUG_RFX=OFF WITH_DEBUG_RINGBUFFER=OFF WITH_DEBUG_SCARD=OFF WITH_DEBUG_SCHANNEL=OFF WITH_DEBUG_SDL_KBD_EVENTS=OFF WITH_DEBUG_SND=OFF WITH_DEBUG_SVC=OFF WITH_DEBUG_SYMBOLS=OFF WITH_DEBUG_THREADS=OFF WITH_DEBUG_TIMEZONE=OFF WITH_DEBUG_TRANSPORT=OFF WITH_DEBUG_TSG=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_TSMF_AVAILABLE=0 WITH_DEBUG_URBDRC=OFF WITH_DEBUG_UTILS_CMDLINE_DUMP=OFF WITH_DEBUG_WND=OFF WITH_DOCUMENTATION=OFF WITH_DSP_EXPERIMENTAL=OFF WITH_DSP_FFMPEG=ON WITH_DSP_FFMPEG_AVAILABLE=1 WITH_EVENTFD_READ_WRITE=1 WITH_FAAC=TRUE WITH_FAAD2=TRUE WITH_FDK_AAC=OFF WITH_FFMPEG=ON WITH_FREERDP_DEPRECATED=OFF WITH_FREERDP_DEPRECATED_COMMANDLINE=OFF WITH_FULL_CONFIG_PATH=OFF WITH_FUSE=TRUE WITH_GFX_AV1=OFF WITH_GFX_FRAME_DUMP=OFF WITH_GFX_H264=ON WITH_GPROF=OFF WITH_GSM=OFF WITH_INSTALL_CLIENT_DESKTOP_FILES=OFF WITH_INTERNAL_MD4=OFF WITH_INTERNAL_MD5=OFF WITH_INTERNAL_RC4=OFF WITH_JANSSON_REQUIRED=OFF WITH_JPEG=TRUE WITH_JSONC_REQUIRED=OFF WITH_JSON_DISABLED=OFF WITH_KEYBOARD_LAYOUT_FROM_FILE=OFF WITH_KRB5=TRUE WITH_KRB5_NO_NTLM_FALLBACK=OFF WITH_LAME=OFF WITH_LIBRARY_SOVERSIONING=ON WITH_LIBRARY_VERSIONING=ON WITH_LIBRESSL=OFF WITH_LODEPNG=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO_AVAILABLE=0 WITH_MANPAGES=TRUE WITH_MBEDTLS=OFF WITH_NATIVE_SSPI=OFF WITH_NO_UNDEFINED=OFF WITH_OPENCL=OFF WITH_OPENH264=TRUE WITH_OPENH264=TRUE WITH_OPENH264_LOADING=OFF WITH_OPENSSL=ON WITH_OPUS=TRUE WITH_OSS=FALSE WITH_PCSC=TRUE WITH_PKCS11=ON WITH_PLATFORM_SERVER=ON WITH_POLL=ON WITH_PROFILER=OFF WITH_PROXY=ON WITH_PROXY_APP=ON WITH_PROXY_EMULATE_SMARTCARD=OFF WITH_PROXY_MODULES=ON WITH_PULSE=TRUE WITH_RDTK=OFF WITH_RESOURCE_VERSIONING=OFF WITH_SAMPLE=ON WITH_SANITIZE_ADDRESS=OFF WITH_SANITIZE_ADDRESS_AVAILABLE=1 WITH_SANITIZE_MEMORY=OFF WITH_SANITIZE_MEMORY_AVAILABLE=1 WITH_SANITIZE_THREAD=OFF WITH_SANITIZE_THREAD_AVAILABLE=1 WITH_SDL_IMAGE_DIALOGS=OFF WITH_SDL_LINK_SHARED=ON WITH_SERVER=TRUE WITH_SERVER_CHANNELS=ON WITH_SERVER_INTERFACE=ON WITH_SERVER_SHADOW_CLI=ON WITH_SHADOW=ON WITH_SHADOW_SUBSYSTEM=ON WITH_SIMD=ON WITH_SMARTCARD_EMULATE=ON WITH_SMARTCARD_INSPECT=OFF WITH_SMARTCARD_PCSC=ON WITH_SOXR=OFF WITH_SSO_MIB=OFF WITH_STREAMPOOL_DEBUG=OFF WITH_SWSCALE=ON WITH_SWSCALE_LOADING=OFF WITH_SYSTEMD=ON WITH_THIRD_PARTY=OFF WITH_TIMEZONE_COMPILED=ON WITH_TIMEZONE_FROM_FILE=OFF WITH_TIMEZONE_ICU=OFF WITH_UNICODE_BUILTIN=OFF WITH_URIPARSER=ON WITH_VAAPI=FALSE WITH_VAAPI_AVAILABLE=1 WITH_VAAPI_H264_ENCODING=ON WITH_VAAPI_H264_ENCODING_AVAILABLE=1 WITH_VALGRIND_MEMCHECK=OFF WITH_VALGRIND_MEMCHECK_AVAILABLE=1 WITH_VERBOSE_WINPR_ASSERT=ON WITH_VIDEOTOOLBOX=OFF WITH_VIDEOTOOLBOX_AVAILABLE=0 WITH_VIDEO_FFMPEG=ON WITH_VIDEO_FFMPEG_AVAILABLE=1 WITH_WAYLAND=TRUE WITH_WCHAR_FILE_DIRECTORY_INFORMATION=OFF WITH_WEBVIEW=TRUE WITH_WINPR_DEPRECATED=OFF WITH_WINPR_JSON=ON WITH_WINPR_TOOLS=ON WITH_WINPR_TOOLS_CLI=ON WITH_WIN_CONSOLE=ON WITH_X11=ON WITH_XCURSOR=ON WITH_XEXT=ON WITH_XFIXES=ON WITH_XI=ON WITH_XINERAMA=ON WITH_XRANDR=ON WITH_XRENDER=ON WITH_XV=ON WITH_YUV=OFF
Build type: Release
CFLAGS: -fvisibility=hidden -fno-omit-frame-pointer -Wredundant-decls -fsigned-char -Wimplicit-function-declaration -Wno-jump-misses-init -fvisibility=hidden -O3 -DNDEBUG
Compiler: GNU, 15.2.0
Target architecture: x64
```
* OS version connecting to (server side)
* If available the log output from a run with `/log-level:trace 2>&1 | tee log.txt`
* If you built it yourself add some notes which tag/commit/branch you have used, also your cmake parameters and compiler can help
https://github.com/NixOS/nixpkgs/pull/529575
# **Environment (please complete the following information):**
- OS: Linux
- Version/Distribution: NixOS
- Architecture: [amd64, arm]: amd63
# **Additional context**
Here's the segfault he had:
```
[13:53:03:299] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [fatal_handler]: Caught signal 'Segmentation fault' [11]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 0: address=0x7f45e33ba4e3 dli_fname=/nix/store/dj8zawd4c0lydkz1i6lxln7rxn7547fi-freerdp-3.26.0/bin/../lib/libwinpr3.so.3 [0x7f45e333c000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 1: address=0x7f45e33bd0d6 dli_fname=/nix/store/dj8zawd4c0lydkz1i6lxln7rxn7547fi-freerdp-3.26.0/bin/../lib/libwinpr3.so.3 [0x7f45e333c000], dli_sname=winpr_log_backtrace_ex [0x7f45e33bd0a0]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 2: address=0x7f45e3072fbe dli_fname=/nix/store/dj8zawd4c0lydkz1i6lxln7rxn7547fi-freerdp-3.26.0/bin/../lib/libfreerdp3.so.3 [0x7f45e3000000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 3: address=0x7f45e2842790 dli_fname=/nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libc.so.6 [0x7f45e2800000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 4: address=0x7f45e29935dc dli_fname=/nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libc.so.6 [0x7f45e2800000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 5: address=0x7f45e286b380 dli_fname=/nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libc.so.6 [0x7f45e2800000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 6: address=0x7f45e28914ed dli_fname=/nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libc.so.6 [0x7f45e2800000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 7: address=0x7f45e33cc146 dli_fname=/nix/store/dj8zawd4c0lydkz1i6lxln7rxn7547fi-freerdp-3.26.0/bin/../lib/libwinpr3.so.3 [0x7f45e333c000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 8: address=0x7f45e33cc28f dli_fname=/nix/store/dj8zawd4c0lydkz1i6lxln7rxn7547fi-freerdp-3.26.0/bin/../lib/libwinpr3.so.3 [0x7f45e333c000], dli_sname=WLog_PrintTextMessageVA [0x7f45e33cc230]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 9: address=0x55ab71c01b52 dli_fname=sdl-freerdp [0x55ab71bbd000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 10: address=0x55ab71c0b3fe dli_fname=sdl-freerdp [0x55ab71bbd000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 11: address=0x55ab71c042ca dli_fname=sdl-freerdp [0x55ab71bbd000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 12: address=0x7f45e43b31bc dli_fname=/nix/store/jlyahda14aya375lv7k9fsin2zk90nxz-glib-2.88.1/lib/libgobject-2.0.so.0 [0x7f45e439b000], dli_sname=g_closure_invoke [0x7f45e43b3020]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 13: address=0x7f45e43c914a dli_fname=/nix/store/jlyahda14aya375lv7k9fsin2zk90nxz-glib-2.88.1/lib/libgobject-2.0.so.0 [0x7f45e439b000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 14: address=0x7f45e43cabcc dli_fname=/nix/store/jlyahda14aya375lv7k9fsin2zk90nxz-glib-2.88.1/lib/libgobject-2.0.so.0 [0x7f45e439b000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 15: address=0x7f45e43d0804 dli_fname=/nix/store/jlyahda14aya375lv7k9fsin2zk90nxz-glib-2.88.1/lib/libgobject-2.0.so.0 [0x7f45e439b000], dli_sname=g_signal_emit_valist [0x7f45e43d07d0]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 16: address=0x7f45e43d08cf dli_fname=/nix/store/jlyahda14aya375lv7k9fsin2zk90nxz-glib-2.88.1/lib/libgobject-2.0.so.0 [0x7f45e439b000], dli_sname=g_signal_emit [0x7f45e43d0840]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 17: address=0x7f45e75d7397 dli_fname=/nix/store/f9zsbigij2k503m6s2yqhw9pqyzhcd68-webkitgtk-2.52.4+abi=4.1/lib/libwebkit2gtk-4.1.so.0 [0x7f45e6600000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 18: address=0x7f45e74c4230 dli_fname=/nix/store/f9zsbigij2k503m6s2yqhw9pqyzhcd68-webkitgtk-2.52.4+abi=4.1/lib/libwebkit2gtk-4.1.so.0 [0x7f45e6600000], dli_sname=(null) [(nil)]
[13:53:03:304] [2057761:001f6648] [ERROR][com.freerdp.utils.signal.posix] - [winpr_log_backtrace_ex]: 19: address=0x7f45e6e3e2ba dli_fname=/nix/store/f9zsbigij2k503m6s2yqhw9pqyzhcd68-webkitgtk-2.52.4+abi=4.1/lib/libwebkit2gtk-4.1.so.0 [0x7f45e6600000], dli_sname=(null) [(nil)]
[1] 2057761 segmentation fault (core dumped) sdl-freerdp /v:10.91.72.62 /sec:aad
```
_Thank you for reporting a bug!_
1 Like
@nosferatu a FreeRDP dev pointed out on that issue that there is support for Microsoft Identity Broker with SSO-MIB, unfortunately (or, rather, thankfully) I’m not familiar with this area, but it looks like the microsoft-identity-broker and intune-portal packages might be useful.
A few examples I was able to find:
# Microsoft Intune with sandboxed Ubuntu identity (spoofs os-release for compliance)
{ pkgs, ... }:
{
# Required for TLS support in WebKitGTK (used by Intune Portal authentication)
services.gnome.glib-networking.enable = true;
users.users.microsoft-identity-broker = {
group = "microsoft-identity-broker";
isSystemUser = true;
};
users.groups.microsoft-identity-broker = { };
environment.systemPackages = with pkgs; [
microsoft-identity-broker
intune-portal
libpwquality
];
services.dbus.packages = [ pkgs.microsoft-identity-broker ];
services.pcscd.enable = true;
This file has been truncated. show original
{ config, pkgs, lib, ... }:
let cfg = config._custom.services.ms-intune;
in {
options._custom.services.ms-intune.enable = lib.mkEnableOption { };
config = lib.mkIf cfg.enable {
users.users.microsoft-identity-broker = {
group = "microsoft-identity-broker";
isSystemUser = true;
};
users.groups.microsoft-identity-broker = { };
environment.systemPackages = with pkgs; [
prevstable-intune.microsoft-identity-broker
prevstable-intune.intune-portal
];
systemd.packages = with pkgs; [
prevstable-intune.microsoft-identity-broker
prevstable-intune.intune-portal
This file has been truncated. show original
Unfortunately for my particular usecase the intune integration is not going to work. In fact I need the /aad functionality to get around the fact I can’t use intune in my usecase.
1 Like
If you could share a more exact reason why intune integration does not work for your usecase, feel free to comment that in the issue, if not, I understand.
Thanks for debugging with me though!
Its just a quirk of how I separate my work devices from personal devices.
Some of my company’s policies conflict with how I use my personal device.
1 Like