Added auto group listing on PAM authentication as well.

In addition a configuration option to print group IDs over a
certain number was added.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-23 16:36:48 +02:00
parent d3f701fba5
commit 78132e2a6d
6 changed files with 63 additions and 18 deletions

View File

@@ -2,9 +2,13 @@
# all should succeed.
# Options: certificate, pam.
#auth = "certificate"
auth = "plain[./sample.passwd]"
#auth = "plain[./sample.passwd]"
#auth = "pam"
# The gid-min option is used by auto-select-group option, in order to
# select the minimum group ID.
#auth = "pam[gid-min=1000]"
# The plain option requires specifying a password file which contains
# entries of the following format.
# "username:groupname:encoded-password"
@@ -281,12 +285,12 @@ route = 192.168.5.0/255.255.255.0
# The name of the group that if selected it would allow to use
# the assigned by default group.
#default-select-group = DEFAULT
default-select-group = DEFAULT
# Instead of specifying manually all the allowed groups, you may instruct
# ocserv to scan all available groups and include the full list. That
# option is only functional on plain authentication.
#auto-select-group = true
auto-select-group = true
# The system command to use to setup a route. %{R} will be replaced with the
# route/mask and %{D} with the (tun) device.