Return the group database entry
This commit is contained in:
parent
5a260d33db
commit
a45b7b7c23
@ -50,7 +50,7 @@ def has_right(owner, user, password):
|
|||||||
|
|
||||||
# Check whether the group exists
|
# Check whether the group exists
|
||||||
try:
|
try:
|
||||||
members = grp.getgrnam(GROUP_MEMBERSHIP)
|
members = grp.getgrnam(GROUP_MEMBERSHIP).gr_mem
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log.LOGGER.debug(
|
log.LOGGER.debug(
|
||||||
"The PAM membership required group (%s) doesn't exist" %
|
"The PAM membership required group (%s) doesn't exist" %
|
||||||
|
Loading…
Reference in New Issue
Block a user