summaryrefslogtreecommitdiff
path: root/slapd-pivot.py
diff options
context:
space:
mode:
Diffstat (limited to 'slapd-pivot.py')
-rw-r--r--slapd-pivot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slapd-pivot.py b/slapd-pivot.py
index c27ee2e..156ab29 100644
--- a/slapd-pivot.py
+++ b/slapd-pivot.py
@@ -49,7 +49,7 @@ def drop_privileges():
group = int(group)
except ValueError:
try:
- group = grp.getgrgid(group)[2]
+ group = grp.getgrnam(group)[2]
except KeyError:
failure("invalid group: %s" % group)
os.setegid(group)