projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc20c0
)
minor nit
author
Peter Palfrader
<peter@palfrader.org>
Mon, 12 Mar 2012 13:00:41 +0000
(14:00 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Mon, 12 Mar 2012 13:00:41 +0000
(14:00 +0100)
ud-generate
patch
|
blob
|
history
diff --git
a/ud-generate
b/ud-generate
index
548fd4c
..
3a8fa32
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-423,9
+423,8
@@
def GenSSHtarballs(global_dir, userlist, ssh_userkeys, grouprevmap, target):
print "User %s is supposed to have their key exported to host %s but their primary group (gid: %d) isn't in LDAP" % (f, CurrentHost, userlist[f])
continue
- contents = ssh_userkeys[f]
lines = []
- for line in
contents
:
+ for line in
ssh_userkeys[f]
:
if line.startswith("allowed_hosts=") and ' ' in line:
machines, line = line.split('=', 1)[1].split(' ', 1)
if CurrentHost not in machines.split(','):