You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: en-US/features/authentication.md
+20-6
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,21 @@ name: Authentication
4
4
5
5
# Authentication
6
6
7
-
## LDAP
7
+
## Load authentication source from file
8
+
9
+
Starting from `0.11.45.0412`, you can define authentication source in local files to help better automate setup process.
10
+
11
+
Files with suffix `.conf` under `conf/auth.d` of custom directory will be recognized as authentication sources. For example, `custom/conf/auth.d/my_auth_source.conf`. As long as the file name ends with `.conf`, you can name it to something help you remember. You can find examples of all supported types [here](https://github.com/gogits/gogs/tree/f2ecfdc96a338815ffb2be898b3114031f0da48c/conf/auth.d).
12
+
13
+
Once files are loaded, they will appear in the **Admin Panel - Authentication Sources** page as before. They also work nicely with authentication sources defined in the database.
14
+
15
+

16
+
17
+
However, do not try to edit file directly but edit via web interface because files are only read once when Gogs starts.
18
+
19
+
## Configuration
20
+
21
+
### LDAP
8
22
9
23
Both the LDAP via BindDN and the simple auth LDAP share the following fields:
10
24
@@ -110,12 +124,12 @@ Both the LDAP via BindDN and the simple auth LDAP share the following fields:
110
124
* Which group LDAP attribute contains an array above user attribute names.
111
125
* Example: `memberUid`
112
126
113
-
## PAM
127
+
###PAM
114
128
115
-
To configure this you just need to set the 'PAM Service Name' to a filename in `/etc/pam.d/`.
129
+
To configure this you just need to set the **PAM Service Name** to a filename in `/etc/pam.d/`.
116
130
If you want it to work with normal Linux passwords, the user running Gogs must have read access to `/etc/shadow`.
117
131
118
-
## SMTP
132
+
###SMTP
119
133
120
134
This option allows Gogs to log in to your SMTP host as a Gogs user. To configure this, simply set the fields below:
121
135
@@ -145,7 +159,7 @@ This option allows Gogs to log in to your SMTP host as a Gogs user. To configure
145
159
- This authentication is activate
146
160
- Enable or disable this auth.
147
161
148
-
## Freeipa
162
+
###Freeipa
149
163
150
164
- In order to login to the Gogs using FreeIPA credentials, you need to create a bind account for Gogs to use:
151
165
@@ -174,5 +188,5 @@ This option allows Gogs to log in to your SMTP host as a Gogs user. To configure
174
188
175
189
- Now login to the gogs as an Admin, click on “Authentication” under Admin Panel. Then click New LDAP Source and fill in the details, changing all where appropriate to your own domain as photo below:
- Now login to the gogs as an Admin, click on “Authentication” under Admin Panel. Then click New LDAP Source and fill in the details, changing all where appropriate to your own domain as photo below:
0 commit comments