Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authentication sources: sponsor rule should not match when login in admin #3630

Closed
nqb opened this issue Sep 18, 2018 · 1 comment
Closed

Comments

@nqb
Copy link
Contributor

nqb commented Sep 18, 2018

When you try to logon on Web Admin, if your user matches a source with a "Mark as sponsor" rule before an "Access level" rule, you can't logon to Web Admin.

The opposite has been fixed in #1858.

Steps to reproduce:

  • Use following authentication.conf:
[AD_User_auth_sponsor]
cache_match=0
read_timeout=10
realms=
password=**removed**
scope=sub
binddn=**removed**
port=389
description=User Auth for sponsor
write_timeout=5
type=AD
basedn=**removed**
monitor=1
set_access_level_action=
shuffle=0
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
encryption=none
host=**removed**

[AD_User_auth_sponsor rule sponsoring]
action0=mark_as_sponsor=1
condition0=primaryGroupID,equals,513
match=all
class=administration
description=marks user as sponsor

[AD_User_auth_admin]
cache_match=0
read_timeout=10
realms=
password=**removed**
scope=sub
binddn=**removed**
port=389
description=User Auth for admin
write_timeout=5
type=AD
basedn=**removed**
monitor=1
set_access_level_action=
shuffle=0
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
encryption=none
host=**removed**

[AD_User_auth_admin rule admin_pf]
action0=set_access_level=ALL
condition0=primaryGroupID,equals,1013
match=all
class=administration
description=gives admin access to pf GUI

  • Try to logon on Web Admin
  • Check log
    => You will see that AD_User_auth_sponsor rule will match before AD_User_auth_admin rule.

Expected result(s): sponsor rule should not match when login in Web Admin.

@nqb
Copy link
Contributor Author

nqb commented Sep 18, 2018

I close this issue because I discover other unexpected results during my tests : I will open an issue related to sponsor and admin access through admin rules.

@nqb nqb closed this as completed Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants