Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit f291f9e

Browse files
committed
Small doc tweaks and fixes.
1 parent ef42f90 commit f291f9e

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

docs/auth/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ There are two primary ways of authenticating LDAP users:
99
This allows you to attach data to users as you would in a traditional application.
1010

1111
Calling `Auth::user()` returns your configured Eloquent model (ex. `App\User`) of the LDAP user.
12-
12+
1313
- Authenticate without keeping a database record for users
1414

1515
This allows you to have temporary users.

docs/auth/middleware.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SSO authentication allows you to authenticate your domain users automatically in your application by
44
the pre-populated `$_SERVER['AUTH_USER']` (or `$_SERVER['REMOTE_USER']`) that is filled when
55
users visit your site when SSO is enabled on your server. This is
6-
configurable in your `ldap_auth.php`configuration file.
6+
configurable in your `ldap_auth.php`configuration file in the `usernames` array.
77

88
> **Requirements**: This feature assumes that you have enabled `Windows Authentication` in IIS, or have enabled it
99
> in some other means with Apache. Adldap2 does not set this up for you. To enable Windows Authentication, visit:
@@ -37,17 +37,12 @@ You can configure the attributes users are logged in by in your configuration:
3737

3838
```php
3939
'usernames' => [
40-
4140
//..//
4241

4342
'windows' => [
44-
4543
'discover' => 'samaccountname',
46-
4744
'key' => 'AUTH_USER',
48-
4945
],
50-
5146
],
5247
```
5348

@@ -57,4 +52,4 @@ is usually equal to the currently logged in users `samaccountname`.
5752

5853
The configuration array represents this mapping. The WindowsAuthenticate middleware will
5954
check if the server variable is set, and try to locate the user in your LDAP server
60-
by their `samaccountname`.
55+
by their `samaccountname`.

docs/auth/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Will try to locate a user in your LDAP directory with a `userprincipalname` equa
325325

326326
> **Note**: It's **extremely** important to know that your configured `account_suffix` and `account_prefix` (located in your `config/ldap.php` file) will be appended or prepended *onto* this passed in username.
327327
328-
You can ignore the `windows` configuration array, unless you're planning on using the included [middleware](middleware.md) for single sign on authentication.
328+
You can ignore the `windows` configuration array, unless you're planning on using the included [middleware](auth/middleware.md) for single sign on authentication.
329329

330330
### Eloquent
331331

0 commit comments

Comments
 (0)