From 2c0f7d6031085a55d87406db1f0e738c9bbdabab Mon Sep 17 00:00:00 2001 From: Hugh Cole-Baker Date: Fri, 17 Aug 2018 13:19:20 +0100 Subject: [PATCH] Use system-defined search hierarchy to find users Querying /Local/Default only finds local users --- all/shellenv/_osx/open_directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all/shellenv/_osx/open_directory.py b/all/shellenv/_osx/open_directory.py index 2ab3d15..ccd14e4 100644 --- a/all/shellenv/_osx/open_directory.py +++ b/all/shellenv/_osx/open_directory.py @@ -109,7 +109,7 @@ def get_user_login_shell(username=None): node = OpenDirectory.ODNodeCreateWithName( CoreFoundation.kCFAllocatorDefault, session, - unicode_to_cfstring("/Local/Default"), + unicode_to_cfstring("/Search"), byref(error_ref) ) if bool(error_ref):