diff --git a/app/config/production/ldap.exmple.php b/app/config/production/ldap.exmple.php index b0d641ae5a..4971b4fe7f 100644 --- a/app/config/production/ldap.exmple.php +++ b/app/config/production/ldap.exmple.php @@ -41,7 +41,7 @@ return array( | The base where the search for users will be executed. | */ - 'basedn' => "ou=People,dc=yorku,dc=ca", + 'basedn' => "", /* @@ -52,6 +52,27 @@ return array( | The search filter for the LDAP query. | */ - 'filter' => "" + 'filter' => "", + + /* + |-------------------------------------------------------------------------- + | LDAP field names that will be retrieved to create a user. + | + | Using the username as an example: + | If I set 'result.username' => 'my-org-username', the code will connect to + | LDAP as follows (where $results[$i] represents a row in the LDAP query: + | $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0] + | + | Note: all these fields are required. + |-------------------------------------------------------------------------- + | + | The search filter for the LDAP query. + | + */ + 'result.username' => "", + 'result.emp.num' => "", + 'result.last.name' => "", + 'result.first.name' => "", + 'result.email' => "" );