X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-sync-accounts-to-afs;h=41cc99913bba94ac125acc625d1fe0c2087ec68b;hb=refs%2Fheads%2Ffordsa;hp=4fccaa9d4fc35e35f0bdeaeb6f7e049c05aa6d6f;hpb=8276dbab194cd5ca492345a30fc370597dfa2946;p=mirror%2Fuserdir-ldap.git diff --git a/ud-sync-accounts-to-afs b/ud-sync-accounts-to-afs index 4fccaa9..41cc999 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 @@ -162,7 +162,7 @@ def do_accounts(): want = load_expected() have = load_existing() - if not options.user in have.by_name: + if options.user not in have.by_name: print >> sys.stderr, "Cannot find our user, '%s', in pts listentries"%(options.user) sys.exit(1) me = have.by_name[options.user]