X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-generate;fp=ud-generate;h=4cd5d42887b548d1a64985dc35afe6d9c13a7d7f;hp=41350d07093a1f31818c1e3e85ae6c4da67531ee;hb=3cd4b4094cb2c21072715b21fee4b988cc529215;hpb=f22595d6909859cae31bb8a33ad24b50e74cb89a diff --git a/ud-generate b/ud-generate index 41350d0..4cd5d42 100755 --- a/ud-generate +++ b/ud-generate @@ -307,7 +307,7 @@ def GenShadowSudo(accounts, File, untrusted, current_host): Pass = '*' if 'sudoPassword' in a: for entry in a['sudoPassword']: - Match = re.compile('^('+UUID_FORMAT+') (confirmed:[0-9a-f]{40}|unconfirmed) ([a-z0-9.,*]+) ([^ ]+)$').match(entry) + Match = re.compile('^('+UUID_FORMAT+') (confirmed:[0-9a-f]{40}|unconfirmed) ([a-z0-9.,*-]+) ([^ ]+)$').match(entry) if Match == None: continue uuid = Match.group(1)