[ 'default' => [ /* |-------------------------------------------------------------------------- | Auto Connect |-------------------------------------------------------------------------- | | If auto connect is true, anytime Adldap is instantiated it will automatically | connect to your AD server. If this is set to false, you must connect manually | using: Adldap::connect(). | */ 'auto_connect' => true, /* |-------------------------------------------------------------------------- | Connection |-------------------------------------------------------------------------- | | The connection class to use to run operations on. | | You can also set this option to `null` to use the default connection class. | | Custom connection classes must implement \Adldap\Contracts\Connections\ConnectionInterface | */ 'connection' => Adldap\Connections\Ldap::class, /* |-------------------------------------------------------------------------- | Schema |-------------------------------------------------------------------------- | | The schema class to use for retrieving attributes and generating models. | | You can also set this option to `null` to use the default schema class. | | Custom schema classes must implement \Adldap\Contracts\Schemas\SchemaInterface | */ 'schema' => Adldap\Schemas\ActiveDirectory::class, /* |-------------------------------------------------------------------------- | Connection Settings |-------------------------------------------------------------------------- | | This connection settings array is directly passed into the Adldap constructor. | | Feel free to add or remove settings you don't need. | */ 'connection_settings' => [ /* |-------------------------------------------------------------------------- | Account Prefix |-------------------------------------------------------------------------- | | The account prefix option is the prefix of your user accounts in AD. | | For example, if you'd prefer your users to use only their username instead | of specifying a domain ('ACME\jdoe'), enter your domain name. | */ 'account_prefix' => '', /* |-------------------------------------------------------------------------- | Account Suffix |-------------------------------------------------------------------------- | | The account suffix option is the suffix of your user accounts in AD. | | For example, if your domain DN is DC=corp,DC=acme,DC=org, then your | account suffix would be @corp.acme.org. This is then appended to | then end of your user accounts on authentication. | */ 'account_suffix' => '@cefetes.br', /* |-------------------------------------------------------------------------- | Domain Controllers |-------------------------------------------------------------------------- | | The domain controllers option is an array of servers located on your | network that serve Active Directory. You can insert as many servers or | as little as you'd like depending on your forest (with the | minimum of one of course). | | These can be IP addresses of your server(s), or the host name. | */ 'domain_controllers' => ['172.17.16.2', '172.17.16.3'], /* |-------------------------------------------------------------------------- | Port |-------------------------------------------------------------------------- | | The port option is used for authenticating and binding to your AD server. | */ 'port' => 389, /* |-------------------------------------------------------------------------- | Timeout |-------------------------------------------------------------------------- | | The timeout option allows you to configure the amount of time in | seconds that your application waits until a response | is received from your LDAP server. | */ 'timeout' => 5, /* |-------------------------------------------------------------------------- | Base Distinguished Name |-------------------------------------------------------------------------- | | The base distinguished name is the base distinguished name you'd like | to perform operations on. An example base DN would be DC=corp,DC=acme,DC=org. | | If one is not defined, then Adldap will try to find it automatically | by querying your server. It's recommended to include it to | limit queries executed per request. | */ 'base_dn' => 'OU=Campus Guarapari,DC=cefetes,DC=BR', /* |-------------------------------------------------------------------------- | Administrator Account Suffix |-------------------------------------------------------------------------- | | This option allows you to set a different account suffix for your | configured administrator account upon binding. | | If left empty, your `account_suffix` option will be used. | */ 'admin_account_suffix' => '@cefetes.br', /* |-------------------------------------------------------------------------- | Administrator Username & Password |-------------------------------------------------------------------------- | | When connecting to your AD server, a username and password is required | to be able to query and run operations on your server(s). You can | use any user account that has these permissions. This account | does not need to be a domain administrator unless you | require changing and resetting user passwords. | */ 'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'username'), 'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'password'), /* |-------------------------------------------------------------------------- | Follow Referrals |-------------------------------------------------------------------------- | | The follow referrals option is a boolean to tell active directory | to follow a referral to another server on your network if the | server queried knows the information your asking for exists, | but does not yet contain a copy of it locally. | | This option is defaulted to false. | */ 'follow_referrals' => false, /* |-------------------------------------------------------------------------- | SSL & TLS |-------------------------------------------------------------------------- | | If you need to be able to change user passwords on your server, then an | SSL or TLS connection is required. All other operations are allowed | on unsecured protocols. One of these options are definitely recommended | if you have the ability to connect to your server securely. | */ 'use_ssl' => false, 'use_tls' => false, ], ], ], ];