Skip to content

A free open source IT asset/license management system

Fixed migration with invalid LDAP prepopulation value

snipedb82e0666593
diff --git a/database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php b/database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php
index a293b43525..f117dc2f76 100644
--- a/database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php
+++ b/database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php
@@ -23,7 +23,7 @@ class AddLdapFieldsToSettings extends Migration {
$table->string('ldap_username_field')->nullable()->default('samaccountname');
$table->string('ldap_lname_field')->nullable()->default('sn');
$table->string('ldap_fname_field')->nullable()->default('givenname');
- $table->string('ldap_auth_filter_query')->nullable()->default('uid=samaccountname');
+ $table->string('ldap_auth_filter_query')->nullable()->default('uid=');
$table->integer('ldap_version')->nullable()->default(3);
$table->string('ldap_active_flag')->nullable()->default(NULL);
$table->string('ldap_emp_num')->nullable()->default(NULL);