Query the LDAP server if no locally defined group with that name was found
authorjoey <>
Sat, 11 Aug 2007 18:18:34 +0000 (18:18 +0000)
committerjoey <>
Sat, 11 Aug 2007 18:18:34 +0000 (18:18 +0000)
ud-roleadd

index db83f18..b04bba8 100755 (executable)
@@ -69,7 +69,10 @@ 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)