id(); $table->string('name')->default('default'); $table->string('host'); $table->integer('port')->default(389); $table->boolean('use_ssl')->default(false); $table->boolean('use_tls')->default(false); $table->string('base_dn'); $table->string('bind_dn')->nullable(); $table->text('bind_password')->nullable(); // encrypted $table->string('user_search_base')->nullable(); $table->string('user_filter')->default('(sAMAccountName={username})'); $table->string('group_search_base')->nullable(); $table->string('group_filter')->nullable(); $table->string('admin_group_dn')->nullable(); $table->json('attribute_map')->nullable(); // ldap attr -> user field map $table->boolean('is_active')->default(false); $table->string('status')->default('unconfigured'); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('ldap_configs'); } };