projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ud-generate: sudopassword: allow dashes in hostnames
[mirror/userdir-ldap.git]
/
ud-generate
diff --git
a/ud-generate
b/ud-generate
index
41350d0
..
4cd5d42
100755
(executable)
--- 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']:
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)
if Match == None:
continue
uuid = Match.group(1)