From: joey <> Date: Sat, 11 Aug 2007 18:18:34 +0000 (+0000) Subject: Query the LDAP server if no locally defined group with that name was found X-Git-Tag: debian_userdir-ldap_0-3-14~1 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=0817bf289487078799dd6c6967795e744726cb92 Query the LDAP server if no locally defined group with that name was found --- diff --git a/ud-roleadd b/ud-roleadd index db83f18..b04bba8 100755 --- a/ud-roleadd +++ b/ud-roleadd @@ -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)