X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-sync-accounts-to-afs;h=1cc478bdecebf1a5b6cb7314ae8bea23cc453522;hp=4fccaa9d4fc35e35f0bdeaeb6f7e049c05aa6d6f;hb=HEAD;hpb=8276dbab194cd5ca492345a30fc370597dfa2946 diff --git a/ud-sync-accounts-to-afs b/ud-sync-accounts-to-afs index 4fccaa9..1cc478b 100755 --- a/ud-sync-accounts-to-afs +++ b/ud-sync-accounts-to-afs @@ -123,7 +123,7 @@ def filter_have(a): if n == 'anonymous': # keep account, so remove from the have list a.del_name(n) continue - m = re.match('[0-9a-z]+$', n) + m = re.match('[0-9a-z-]+$', n) if not m: # weird name, probably has dots like weasel.admin etc. a.del_name(n) continue