projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return a real error when the group cannot be found out
[mirror/userdir-ldap.git]
/
userdir_ldap.py
diff --git
a/userdir_ldap.py
b/userdir_ldap.py
index
cfd2c45
..
a048299
100644
(file)
--- a/
userdir_ldap.py
+++ b/
userdir_ldap.py
@@
-412,8
+412,11
@@
def GetUID(l,Name,UnknownMap = {}):
return (None,None);
def Group2GID(name):
return (None,None);
def Group2GID(name):
- """Returns the numerical id of a common group"""
+ """
+ Returns the numerical id of a common group
+ on error returns -1
+ """
for g in DebianGroups.keys():
if name == g:
return DebianGroups[g]
for g in DebianGroups.keys():
if name == g:
return DebianGroups[g]
- return
name
+ return
-1