X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-useradd;h=8872507d3657d1a1db071ed3b0190fe43ec36772;hb=c61076ac9d401f7abf65d5e1eac7f5a666a32ba4;hp=fcda26f055120a3ec93e97dd172cc6ea8c26bdf7;hpb=290171c4fc06fe51a8770d553e6dfb6f174fd891;p=mirror%2Fuserdir-ldap.git diff --git a/ud-useradd b/ud-useradd index fcda26f..8872507 100755 --- a/ud-useradd +++ b/ud-useradd @@ -249,7 +249,7 @@ if GuestAccount: shadowExpire = int(time.time() / 3600 / 24) + exp res = raw_input("Hosts to grant access to: ") for h in res.split(): - if not '.' in h: h = h + '.' + HostDomain + if '.' not in h: h = h + '.' + HostDomain if exp > 0: h = h + " " + datetime.datetime.fromtimestamp( time.time() + exp * 24*3600 ).strftime("%Y%m%d") hostacl.append(h)