@php $isLdapUser = false; try { if (auth()->user()->email && app(\LdapRecord\Container::class)->getDefaultConnection()->query()->where('mail', '=', auth()->user()->email)->first()) { $isLdapUser = true; } } catch (\Exception $e) { // LDAP connection failed, treat as non-LDAP user $isLdapUser = false; } @endphp @if ($isLdapUser) {{ __('Update your LDAP password. This will update both your LDAP and local account password.') }} @else {{ __('Ensure your account is using a long, random password to stay secure.') }} @endif