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
(parent:
1220c31
)
Always return an integer
author
joey
<>
Sat, 11 Aug 2007 13:38:29 +0000
(13:38 +0000)
committer
joey
<>
Sat, 11 Aug 2007 13:38:29 +0000
(13:38 +0000)
userdir_ldap.py
patch
|
blob
|
history
diff --git
a/userdir_ldap.py
b/userdir_ldap.py
index
0ba37f4
..
c2b864d
100644
(file)
--- a/
userdir_ldap.py
+++ b/
userdir_ldap.py
@@
-423,6
+423,6
@@
def Group2GID(l, name):
filter = "(gid=%s)" % name
res = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,filter,["gidNumber"]);
if res:
- return
GetAttr(res[0], "gidNumber"
)
+ return
int(GetAttr(res[0], "gidNumber")
)
return -1