Skip to content

Commit

Permalink
Fixed to use the correct data
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 28, 2014
1 parent ebf824e commit feab77c
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions src/tests/keywords/return
@@ -1,33 +1,13 @@
#
# PRE: update if
#
update control {
Cleartext-Password := 'hello'
update {
control:Auth-Type = 'Accept'
reply:Reply-Message = 'pass'
}

if (User-Name == "bob") {
update reply {
Filter-Id := "filter"
}

#
# We need this because the "return" below
# will prevent the "pap" module from being run
# in the "authorize" section.
#
update control {
Auth-Type := PAP
}

#
# Stop processing "authorize", and go to the next section.
#
return
# Section should exit after this statement
ok {
ok = return
}

#
# Shouldn't reach this
#
update reply {
Filter-Id := "fail"
}
update {
reply:Reply-Message := 'fail'
}

0 comments on commit feab77c

Please sign in to comment.