projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2ebda93
)
Return a real error when the group cannot be found out
author
joey
<>
Sat, 11 Aug 2007 12:53:37 +0000
(12:53 +0000)
committer
joey
<>
Sat, 11 Aug 2007 12:53:37 +0000
(12:53 +0000)
userdir_ldap.py
patch
|
blob
|
history
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):
- """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]
- return
name
+ return
-1