Skip to content

prevent anyone from ldap to connect #37

Closed Answered by MarcJHuber
knpshkn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

in tac_plus-ng that functionality did move, more or less, to the ruleset you're using. If your goal is to permit requests that match a certain criteria (like group membership) and deny everything left then a final "deny" after evaluating the positive list is enough. Just handle the positive criteria first, and let the bad one fall through.

ruleset {
  rule {
      script {
        if (member == ...) { profile = ... permit }
        if (member == ...) { profile = ... permit }
        deny
      }
    }
}

(Apologies -- "Add Code" doesn't seem to work, so this isn't well-formatted.)

Cheers,

Marc

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by knpshkn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants