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:
df0f744
)
Query the LDAP server if no locally defined group with that name was found
author
joey
<>
Sat, 11 Aug 2007 18:18:34 +0000
(18:18 +0000)
committer
joey
<>
Sat, 11 Aug 2007 18:18:34 +0000
(18:18 +0000)
ud-roleadd
patch
|
blob
|
history
diff --git
a/ud-roleadd
b/ud-roleadd
index
db83f18
..
b04bba8
100755
(executable)
--- a/
ud-roleadd
+++ b/
ud-roleadd
@@
-69,7
+69,10
@@
if Res != "":
# GID
Res = raw_input("Group ID Number? ")
if Res != "":
# GID
Res = raw_input("Group ID Number? ")
if Res != "":
- gidNumber = Group2GID(Res)
+ gidNumber = Group2GID(l, Res)
+ if gidNumber == -1:
+ print "Can't figure out which gid %s is" % Res
+ sys.exit(1)
# UID
uidNumber = GetFreeID(l)
# UID
uidNumber = GetFreeID(l)