View | Details | Raw Unified | Return to bug 36634
Collapse All | Expand All

(-)services/univention-samba/python/share_restrictions.py (-1 / +1 lines)
Lines 300-306 Link Here
300
300
301
	# set share options to -> shares
301
	# set share options to -> shares
302
	def _set_options(self, value, share, option):
302
	def _set_options(self, value, share, option):
303
		if match and share and options and value:
303
		if share and option and value:
304
			if option not in self._shares[share]:
304
			if option not in self._shares[share]:
305
				self._shares[share][option] = set()
305
				self._shares[share][option] = set()
306
306
(-)services/univention-samba4/s4search-decode (-15 / +1 lines)
Lines 166-185 Link Here
166
				traceback.print_exc()
166
				traceback.print_exc()
167
167
168
168
169
def decode_pwdLastSet(value):
170
	print "# decoded (Note: timezone not converted to local time):"
171
	if long(value) == -1:
172
		print "# %s: Just set" % self.attrname
173
	elif long(value) == 0:
174
		print "# %s: Must change on next logon" % self.attrname
175
	else:
176
		try:
177
			print "# pwdLastSet: %s" % decode_100nanosectimestamp(value)
178
		except:
179
			print "# traceback during decoding:"
180
			traceback.print_exc()
181
182
183
class decode_drsblob():
169
class decode_drsblob():
184
170
185
	def __init__(self, blobtype):
171
	def __init__(self, blobtype):
Lines 203-209 Link Here
203
	'supplementalCredentials': decode_supplementalCredentials,
189
	'supplementalCredentials': decode_supplementalCredentials,
204
	'unicodePwd': decode_unicodePwd,
190
	'unicodePwd': decode_unicodePwd,
205
	'krb5Key': decode_krb5Key,
191
	'krb5Key': decode_krb5Key,
206
	'pwdLastSet': decode_pwdLastSet,
192
	'pwdLastSet': decode_lastDate("pwdLastSet"),
207
	'accountExpires': decode_accountExpires,
193
	'accountExpires': decode_accountExpires,
208
	'badPasswordTime': decode_lastDate('badPasswordTime'),
194
	'badPasswordTime': decode_lastDate('badPasswordTime'),
209
	'lastLogoff': decode_lastDate('lastLogoff'),
195
	'lastLogoff': decode_lastDate('lastLogoff'),

Return to bug 36634