@extends('layouts/default') {{-- Page title --}} @section('title') Update LDAP/AD Settings @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') @if ((!function_exists('ldap_connect')) || (!function_exists('ldap_set_option')) || (!function_exists('ldap_bind')))
It doesn't look like the LDAP extension is installed or enabled on this server. :(
@else {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'false', 'class' => 'form-horizontal', 'role' => 'form']) }} {{csrf_field()}}

LDAP/AD

{{ Form::label('ldap_integration', trans('admin/settings/general.ldap_integration')) }}
{{ Form::checkbox('ldap_enabled', '1', Request::old('ldap_enabled', $setting->ldap_enabled), ['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.ldap_enabled') }} {!! $errors->first('ldap_enabled', ':message') !!}
{{ Form::label('ldap_pw_sync', trans('admin/settings/general.ldap_pw_sync')) }}
{{ Form::checkbox('ldap_pw_sync', '1', Request::old('ldap_pw_sync', $setting->ldap_pw_sync),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('general.yes') }}

{{ trans('admin/settings/general.ldap_pw_sync_help') }}

{!! $errors->first('ldap_pw_sync', ':message') !!}
{{ Form::label('is_ad', trans('admin/settings/general.ad')) }}
{{ Form::checkbox('is_ad', '1', Request::old('is_ad', $setting->is_ad),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.is_ad') }} {!! $errors->first('is_ad', ':message') !!}
{{ Form::label('ad_domain', trans('admin/settings/general.ad_domain')) }}
{{ Form::text('ad_domain', Request::old('ad_domain', $setting->ad_domain), ['class' => 'form-control','placeholder' => 'example.com', $setting->demoMode]) }}

{{ trans('admin/settings/general.ad_domain_help') }}

{!! $errors->first('ad_domain', ':message') !!}
{{ Form::label('ldap_server', trans('admin/settings/general.ldap_server')) }}
{{ Form::text('ldap_server', Request::old('ldap_server', $setting->ldap_server), ['class' => 'form-control','placeholder' => 'ldap://ldap.example.com', $setting->demoMode]) }}

{{ trans('admin/settings/general.ldap_server_help') }}

{!! $errors->first('ldap_server', ':message') !!}
{{ Form::label('ldap_tls', trans('admin/settings/general.ldap_tls')) }}
{{ Form::checkbox('ldap_tls', '1', Request::old('ldap_tls', $setting->ldap_tls),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.ldap_tls_help') }} {!! $errors->first('ldap_tls', ':message') !!}
{{ Form::label('ldap_server_cert_ignore', trans('admin/settings/general.ldap_server_cert')) }}
{{ Form::checkbox('ldap_server_cert_ignore', '1', Request::old('ldap_server_cert_ignore', $setting->ldap_server_cert_ignore),['class' => 'minimal '. $setting->demoMode, $setting->demoMode]) }} {{ trans('admin/settings/general.ldap_server_cert_ignore') }} {!! $errors->first('ldap_server_cert_ignore', ':message') !!}

{{ trans('admin/settings/general.ldap_server_cert_help') }}

{{ Form::label('ldap_uname', trans('admin/settings/general.ldap_uname')) }}
{{ Form::text('ldap_uname', Request::old('ldap_uname', $setting->ldap_uname), ['class' => 'form-control','placeholder' => 'binduser@example.com', $setting->demoMode]) }} {!! $errors->first('ldap_uname', ':message') !!}
{{ Form::label('ldap_pword', trans('admin/settings/general.ldap_pword')) }}
{{ Form::password('ldap_pword', ['class' => 'form-control','placeholder' => 'binduserpassword', $setting->demoMode]) }} {!! $errors->first('ldap_pword', ':message') !!}
{{ Form::label('ldap_basedn', trans('admin/settings/general.ldap_basedn')) }}
{{ Form::text('ldap_basedn', Request::old('ldap_basedn', $setting->ldap_basedn), ['class' => 'form-control', 'placeholder' => 'cn=users/authorized,dc=example,dc=com', $setting->demoMode]) }} {!! $errors->first('ldap_basedn', ':message') !!}
{{ Form::label('ldap_filter', trans('admin/settings/general.ldap_filter')) }}
{{ Form::text('ldap_filter', Request::old('ldap_filter', $setting->ldap_filter), ['class' => 'form-control','placeholder' => '&(cn=*)', $setting->demoMode]) }} {!! $errors->first('ldap_filter', ':message') !!}
{{ Form::label('ldap_username_field', trans('admin/settings/general.ldap_username_field')) }}
{{ Form::text('ldap_username_field', Request::old('ldap_username_field', $setting->ldap_username_field), ['class' => 'form-control','placeholder' => 'samaccountname', $setting->demoMode]) }} {!! $errors->first('ldap_username_field', ':message') !!}
{{ Form::label('ldap_lname_field', trans('admin/settings/general.ldap_lname_field')) }}
{{ Form::text('ldap_lname_field', Request::old('ldap_lname_field', $setting->ldap_lname_field), ['class' => 'form-control','placeholder' => 'sn', $setting->demoMode]) }} {!! $errors->first('ldap_lname_field', ':message') !!}
{{ Form::label('ldap_fname_field', trans('admin/settings/general.ldap_fname_field')) }}
{{ Form::text('ldap_fname_field', Request::old('ldap_fname_field', $setting->ldap_fname_field), ['class' => 'form-control', 'placeholder' => 'givenname', $setting->demoMode]) }} {!! $errors->first('ldap_fname_field', ':message') !!}
{{ Form::label('ldap_auth_filter_query', trans('admin/settings/general.ldap_auth_filter_query')) }}
{{ Form::text('ldap_auth_filter_query', Request::old('ldap_auth_filter_query', $setting->ldap_auth_filter_query), ['class' => 'form-control','placeholder' => '"uid="', $setting->demoMode]) }} {!! $errors->first('ldap_auth_filter_query', ':message') !!}
{{ Form::label('ldap_version', trans('admin/settings/general.ldap_version')) }}
{{ Form::text('ldap_version', Request::old('ldap_version', $setting->ldap_version), ['class' => 'form-control','placeholder' => '3', $setting->demoMode]) }} {!! $errors->first('ldap_version', ':message') !!}
{{ Form::label('ldap_active_flag', trans('admin/settings/general.ldap_active_flag')) }}
{{ Form::text('ldap_active_flag', Request::old('ldap_active_flag', $setting->ldap_active_flag), ['class' => 'form-control','placeholder' => '', $setting->demoMode]) }} {!! $errors->first('ldap_active_flag', ':message') !!}
{{ Form::label('ldap_emp_num', trans('admin/settings/general.ldap_emp_num')) }}
{{ Form::text('ldap_emp_num', Request::old('ldap_emp_num', $setting->ldap_emp_num), ['class' => 'form-control','placeholder' => '', $setting->demoMode]) }} {!! $errors->first('ldap_emp_num', ':message') !!}
{{ Form::label('ldap_email', trans('admin/settings/general.ldap_email')) }}
{{ Form::text('ldap_email', Request::old('ldap_email', $setting->ldap_email), ['class' => 'form-control','placeholder' => '', $setting->demoMode]) }} {!! $errors->first('ldap_email', ':message') !!}
@if ($setting->ldap_enabled)
{{ Form::label('test_ldap_sync', 'Test LDAP Sync') }}

{{ trans('admin/settings/general.ldap_login_sync_help') }}

@endif
{{ Form::label('custom_forgot_pass_url', trans('admin/settings/general.custom_forgot_pass_url')) }}
{{ Form::text('custom_forgot_pass_url', Request::old('custom_forgot_pass_url', $setting->custom_forgot_pass_url), ['class' => 'form-control','placeholder' => 'https://my.ldapserver-forgotpass.com', $setting->demoMode]) }}

{{ trans('admin/settings/general.custom_forgot_pass_url_help') }}

{!! $errors->first('custom_forgot_pass_url', ':message') !!}
{{Form::close()}} @endif @stop @push('js') @endpush