From: Peter Palfrader Date: Wed, 15 Sep 2010 15:47:33 +0000 (+0200) Subject: Allow - in usernames X-Git-Tag: userdir-ldap-0.3.79~24 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=454bfc602780c1eb98912615ccf35f312a97a9d2 Allow - in usernames --- 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